it is said in the tutorial that: "it(grub) can even forward us important information such as memory maps, but we won't need that yet"
so i followed other tutorials on the web and added:
Code: Select all
void kernel_main(unsigned long magic, unsigned long addr)
{
terminal_initialize();
terminal_writelong(magic);
terminal_writelong(addr);
}
i'm currently getting these values:
magic - 0x00100810
addr - 0x007D4AC5
firstly , magic is not 0x1BADBOO2 so i think something is wrong.
secondly , if everything is correct , how do i move on getting some valueble info from grub ?
any help is deeply appreciated , thanks in advance !