flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Detecting memory for later allocation |
Author |
|
smiddy 21 Jul 2014, 22:43
What I use is Interrupt 15h E820h: http://www.uruk.org/orig-grub/mem64mb.html
You can structure your map based on the information within it the most easiest from my experience. |
|||
21 Jul 2014, 22:43 |
|
Aulendil 22 Jul 2014, 05:40
Thanks
|
|||
22 Jul 2014, 05:40 |
|
Aulendil 22 Jul 2014, 12:10
Is there any example FASM code that is a good starting point? I've had a very quick play with that interrupt and it keeps returning 64 from a base address of zero.
|
|||
22 Jul 2014, 12:10 |
|
smiddy 23 Jul 2014, 04:13
Search for E820, there are a lot of hits. Here's one I did:
http://board.flatassembler.net/topic.php?t=6217 Smiddy |
|||
23 Jul 2014, 04:13 |
|
cod3b453 26 Jul 2014, 20:37
Something to be aware of is E820 is not complete - some legacy regions (BIOS/VGA), MMIO and other ROM locations are not included. Looking at my code, I have a mix of hard-coded legacy regions [as listed in those links] following by the E820 map and finally the PCI enumeration (some are duplicates of the legacy and E820 but this should take precedence - though I've never encountered a case where these were different).
|
|||
26 Jul 2014, 20:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.