Detecting Memory (x86): Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m →Memory Map Via GRUB: Changed "real kilobytes"(=1024) to "kibibytes" (=1024) see wikipedia for further information |
mNo edit summary |
||
Line 446:
uint32_t LengthL; // length QWORD
uint32_t LengthH;
uint32_t Type; // entry
uint32_t ACPI; //
}__attribute__((packed)) SMAP_entry_t;
// load memory map to buffer - note: regparm(3) avoids stack issues with gcc in
int __attribute__((noinline)) __attribute__((regparm(3))) detectMemory(SMAP_entry_t* buffer, int maxentries)
{
|