Is it fair to assume that 0xe820 is supported?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Griwes
Member
Member
Posts: 374
Joined: Sat Jul 30, 2011 10:07 am
Libera.chat IRC: Griwes
Location: Wrocław/Racibórz, Poland
Contact:

Is it fair to assume that 0xe820 is supported?

Post by Griwes »

Is it fair to assume that, on PC BIOS based machines with CPU supporting long mode, INT 0x15, AX=0xE820 is supported?
Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Is it fair to assume that 0xe820 is supported?

Post by bluemoon »

Yes and no.

Yes, PC supporting long mode with BIOS should support E820 and it's fair to hang and blame the user if such function is absent.
However, No, PC supporting long mode may not have BIOS at all, it may boot with EFI (hopefully with BIOS emulation in these years, but not always, e.g. mac do not provide BIOS).

PS. yes I know mac is not called PC but the hardware is comparable.
User avatar
Griwes
Member
Member
Posts: 374
Joined: Sat Jul 30, 2011 10:07 am
Libera.chat IRC: Griwes
Location: Wrocław/Racibórz, Poland
Contact:

Re: Is it fair to assume that 0xe820 is supported?

Post by Griwes »

In original post I mentioned (U)EFI, but decided to remove that part, as it didn't bring anything to the topic - "on PC BIOS based machines".
Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
Post Reply