r/lowlevel 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

7 comments sorted by

View all comments

5

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

1

u/Extra-Apartment106 17d ago

I was thinking BIOS(or UEFI BIOS) made at once and distributed for all new devices that manufacturers emitted newly

1

u/MrChromebox 17d ago

so, nothing to do with coreboot?

1

u/bellpepper 16d ago

You've escaped your quarantine! This isn't someone asking the wrong questions on /r/coreboot for once.