QDNix
Quick’n’dirty *NIX
multiboot.c
1 #include <machine/multiboot.h>
2 #include <libkern/printk.h>
3 
4 int
5 multiboot_entry(Multiboot *boot_info)
6 {
7  if (boot_info->flags | MULTIBOOT_INFO_MMAP)
8  {
9  printk("mmap found\n");
10  }
11  if (boot_info->flags | MULTIBOOT_INFO_DRIVES)
12  {
13  printk("has drives info\n");
14  }
15  return (0);
16 }