9boot: fix more e820

This commit is contained in:
cinap_lenrek 2011-11-11 09:21:53 +01:00
parent d4b7ca211d
commit ad620f4fc9
2 changed files with 2 additions and 4 deletions

View file

@ -14,6 +14,7 @@ TEXT e820(SB), $0
CMPB CL, $24 CMPB CL, $24
JZ _ret JZ _ret
MOVL $1, AX MOVL $1, AX
MOVL p+8(SP), DI
MOVL AX, 20(DI) MOVL AX, 20(DI)
_ret: _ret:
MOVL BX, AX MOVL BX, AX
@ -21,6 +22,7 @@ _ret:
_bad: _bad:
CALL16(pmode32(SB)) CALL16(pmode32(SB))
XORL AX, AX XORL AX, AX
MOVL p+8(SP), DI
MOVL AX, 0(DI) MOVL AX, 0(DI)
MOVL AX, 4(DI) MOVL AX, 4(DI)
MOVL AX, 8(DI) MOVL AX, 8(DI)

View file

@ -344,10 +344,6 @@ e820conf(void)
s = confend; s = confend;
do{ do{
e.base = 0;
e.len = 0;
e.typ = 0;
e.ext = 1;
bx = e820(bx, &e); bx = e820(bx, &e);
if(e.typ == 1 && e.len != 0 && (e.ext & 3) == 1){ if(e.typ == 1 && e.len != 0 && (e.ext & 3) == 1){
if(confend == s){ if(confend == s){