Fix out of bounds accesses

git-svn-id: svn://coreboot.org/openbios/openbios-devel@143 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2007-05-06 17:29:58 +00:00
parent 674ab21bdc
commit e774472da7
2 changed files with 2 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ first_cpu:
/* Zero out our BSS section. */
set _bss - 4, %o0 ! First address of BSS
set _estack, %o1 ! Last address of BSS
set _estack - 4, %o1 ! Last address of BSS
ba 2f
nop
1:

View File

@@ -211,7 +211,7 @@ entry:
/* Zero out our BSS section. */
setx _bss - 8, %o7, %o0 ! First address of BSS
setx _end, %o7, %o1 ! Last address of BSS
setx _end - 8, %o7, %o1 ! Last address of BSS
ba 2f
nop
1: