mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Avoid the region used for thread0's trapframe when setting up the stack
for ia64_init. If we use this area for ia64_init's stack, it ends up containing garbage which causes cpu_fork to die horribly later.
This commit is contained in:
parent
2c19b38f62
commit
56f6eed759
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83520
@ -86,7 +86,7 @@ ENTRY(__start, 1)
|
||||
srlz.i
|
||||
;;
|
||||
srlz.d
|
||||
mov r9=KSTACK_PAGES*PAGE_SIZE-SIZEOF_PCB-16
|
||||
mov r9=KSTACK_PAGES*PAGE_SIZE-SIZEOF_PCB-SIZEOF_TRAPFRAME-16
|
||||
;;
|
||||
movl gp=__gp // find kernel globals
|
||||
add sp=r9,r11 // proc0's stack
|
||||
|
@ -86,7 +86,7 @@ ENTRY(__start, 1)
|
||||
srlz.i
|
||||
;;
|
||||
srlz.d
|
||||
mov r9=KSTACK_PAGES*PAGE_SIZE-SIZEOF_PCB-16
|
||||
mov r9=KSTACK_PAGES*PAGE_SIZE-SIZEOF_PCB-SIZEOF_TRAPFRAME-16
|
||||
;;
|
||||
movl gp=__gp // find kernel globals
|
||||
add sp=r9,r11 // proc0's stack
|
||||
|
Loading…
Reference in New Issue
Block a user