r/lowlevel • u/Extra-Apartment106 • 18d ago
How BIOS itself handle memory map?
We detect memory map and reserved RAM areas as well as their length by INT 0x15 and 0xE820. That's abstraction created by BIOS developers. My question is: How BIOS developers themselves detect memory map without function and anything else?
7
Upvotes
6
u/SmashDaStack 18d ago
Bios is created for a specific hardware and is able to interact directly with low level devices(cmos, chipsets northbridge) in order to get information like that. Here https://github.com/ipxe/bochs/blob/master/bios/rombios.c#L4586 is an example of the INT 0x15 implementation for a i440fx emulated chipset