ref: 50e48c6ae580ca6d19f462650a3fcbced63de99c
parent: 72a31a886a6891c575a5deb7135f19e86cc35fba
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Aug 17 23:16:11 EDT 2014
pc, pc64: fix off by one error in _multibootentry
--- a/sys/src/9/pc/l.s
+++ b/sys/src/9/pc/l.s
@@ -67,9 +67,9 @@
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
--- a/sys/src/9/pc64/l.s
+++ b/sys/src/9/pc64/l.s
@@ -62,9 +62,9 @@
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
--
⑨