Anonymous user
Detecting Memory (x86): Difference between revisions
Jump to navigation
Jump to search
m
rename the grub mmap to explicitly say "entry", since it's an entry rather than a whole map.
[unchecked revision] | [unchecked revision] |
(→Getting an E820 Memory Map: line break) |
m (rename the grub mmap to explicitly say "entry", since it's an entry rather than a whole map.) |
||
Line 348:
<source lang="c">
typedef struct
unsigned int size;
unsigned int base_addr_low,base_addr_high;
Line 355:
// You can also use: unsigned long long int length; if supported.
unsigned int type;
} mmap_entry_t;
int main(multiboot_info* mbt, unsigned int magic) {
...
while(
// do something with the entry
}
...
|