Detecting Memory (x86): Difference between revisions

m
[unchecked revision][unchecked revision]
(int 0x12, clear CF)
Line 288:
==Memory Map Via GRUB==
 
[[GRUB]], or any bootloader implementing [http://www.gnu.org/software/grub/manual/multiboot/multiboot.html The Multiboot Specification] provides a convenient way of detecting the amount of RAM your machine has. Rather than re-invent the wheel, you can ride on the hard work that others have done by utilizing the multiboot_info structure. When GRUB runs, it loads this structure into memory and leaves the address of this structure in the EBX register. You may also view this structure at the GRUB command-line with the GRUB command <tt>displaymem</tt> and GRUB2 command <tt>lsmmap</tt>.
 
The methods it uses are:
Anonymous user