Guest User

Untitled

a guest
Feb 16th, 2013
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.63 KB | None | 0 0
  1. /*************************************************************
  2. * MULTIBOOT Header
  3. * These data are placed at the beginning of the kernel file
  4. * Grub 2 needs these data to boot properly
  5. * see multiboot specification
  6. *************************************************************/
  7. #pragma code_seg(".a$0")
  8. __declspec(allocate(".a$0"))
  9. multiboot_header _MultibootHeader = {
  10.  
  11.    MULTIBOOT_HEADER_MAGIC,
  12.    MULTIBOOT_HEADER_FLAGS,
  13.    CHECKSUM,
  14.    HEADER_ADDRESS,
  15.    LOADBASE,
  16.    0, //load end address
  17.    0, //bss end address
  18.    (unsigned long)DNA_Startup,
  19.    0,
  20.    800,
  21.    600,
  22.    8
  23. };
  24. #pragma comment(linker, "/merge:.text=.a")
Advertisement
Add Comment
Please, Sign In to add comment