diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-08-18 03:16:11 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-08-18 03:16:11 +0200 |
commit | 0d5491fb083510fda1dc3c8a9fa15d45dc0fabcc (patch) | |
tree | 13d87b12bcfab011f70e9eedc5522d4c0d66382c /sys | |
parent | f128c6eab00bb4ebb40d0afddf7824e5bc2e179a (diff) |
pc, pc64: fix off by one error in _multibootentry
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/9/pc/l.s | 2 | ||||
-rw-r--r-- | sys/src/9/pc64/l.s | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/l.s b/sys/src/9/pc/l.s index 0808bd5c2..663107e7a 100644 --- a/sys/src/9/pc/l.s +++ b/sys/src/9/pc/l.s @@ -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 diff --git a/sys/src/9/pc64/l.s b/sys/src/9/pc64/l.s index f4c066a3c..78171a114 100644 --- a/sys/src/9/pc64/l.s +++ b/sys/src/9/pc64/l.s @@ -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 |