pc, pc64: fix off by one error in _multibootentry

This commit is contained in:
cinap_lenrek 2014-08-18 03:16:11 +02:00
parent f128c6eab0
commit 0d5491fb08
2 changed files with 2 additions and 2 deletions

View file

@ -67,9 +67,9 @@ TEXT _multibootentry(SB), $0
SUBL DI, CX
ADDL CX, SI
ADDL CX, DI
INCL CX /* one more for post decrement */
STD
REP; MOVSB
CLD
ADDL $KZERO, BX
MOVL BX, multiboot-KZERO(SB)
MOVL $_startPADDR(SB), AX

View file

@ -62,9 +62,9 @@ TEXT _multibootentry<>(SB), 1, $-4
SUBL DI, CX
ADDL CX, SI
ADDL CX, DI
INCL CX /* one more for post decrement */
STD
REP; MOVSB
CLD
MOVL BX, multibootptr-KZERO(SB)
MOVL $_protected<>-KZERO(SB), AX
JMP* AX