1
0
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:
Doug Rabson 2001-09-15 18:23:51 +00:00
parent 2c19b38f62
commit 56f6eed759
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83520
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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