After initializing some paging structures (without enabling paging), and setting up the physical memory allocator, I want to test this allocator...
Now I have this some code like this here:
Code: Select all
void init_mm(void)
{
init_paging();
init_phys_alloc();
printk("test1\n");
printk("test2\n");
printk("test3\n");
printk("test4\n");
}
mbchk also sais that it has no Multiboot header...if I remove the printk() functions, everything is fine again and GRUB loads my kernel (mbchk also sais it's ok)
What the heck is happening here? I'm linking to ELF and I *do* have a multiboot header...
Somebody can help?