First free memory address after multiboot data
Posted: Thu Aug 11, 2016 6:18 am
Hi,
I'm struggling with finding the first free physical memory address after the multiboot data including modules etc.
This is the multiboot struct i'm using:
And I'm booting with the latest version of GRUB 2.
Can anyone help me out?
Thanks!
I'm struggling with finding the first free physical memory address after the multiboot data including modules etc.
This is the multiboot struct i'm using:
Code: Select all
struct {
uint32_t flags;
uint32_t mem_lower;
uint32_t mem_upper;
uint32_t boot_device;
uint32_t cmdline;
uint32_t mods_count;
uint32_t mods_addr;
uint32_t num;
uint32_t size;
uint32_t addr;
uint32_t shndx;
uint32_t mmap_length;
uint32_t mmap_addr;
uint32_t drives_length;
uint32_t drives_addr;
uint32_t config_table;
uint32_t boot_loader_name;
uint32_t apm_table;
uint32_t vbe_control_info;
uint32_t vbe_mode_info;
uint32_t vbe_mode;
uint32_t vbe_interface_seg;
uint32_t vbe_interface_off;
uint32_t vbe_interface_len;
}
Can anyone help me out?
Thanks!