Initialize the registers for the next call to Int386 in GetBiosMemoryMap.

svn path=/trunk/; revision=3797
This commit is contained in:
Hartmut Birr 2002-11-27 20:31:17 +00:00
parent dd6e3b8b31
commit 6dc09f22d2

View file

@ -202,6 +202,13 @@ U32 GetBiosMemoryMap(BIOS_MEMORY_MAP BiosMemoryMap[32])
DbgPrint((DPRINT_MEMORY, "End Of System Memory Map!\n\n"));
break;
}
// setup the register for the next call
Regs.x.eax = 0x0000E820;
Regs.x.edx = 0x534D4150; // ('SMAP')
Regs.x.ebx = 0x00000001;
Regs.x.ecx = sizeof(BIOS_MEMORY_MAP);
Regs.w.es = BIOSCALLBUFSEGMENT;
Regs.w.di = BIOSCALLBUFOFFSET;
}
return MapCount;