Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/multiboot/multiboot.h

    r1f5c9c96 rd99c1d2  
    3636#define KERN_MULTIBOOT_H_
    3737
    38 #define MULTIBOOT_HEADER_MAGIC  0x1badb002
    39 #define MULTIBOOT_HEADER_FLAGS  0x00010003
    40 
    41 #define MULTIBOOT_LOADER_MAGIC  0x2badb002
    42 
    43 #ifndef __ASM__
    44 
    4538#include <typedefs.h>
    4639#include <arch/boot/memmap.h>
    47 
    48 /** Convert 32-bit multiboot address to a pointer. */
    49 #define MULTIBOOT_PTR(mba)  ((void *) (uintptr_t) (mba))
    5040
    5141/** Multiboot 32-bit address. */
    5242typedef uint32_t mbaddr_t;
    5343
    54 /** Multiboot module structure */
     44/** Multiboot mod structure */
    5545typedef struct {
    5646        mbaddr_t start;
     
    5848        mbaddr_t string;
    5949        uint32_t reserved;
    60 } __attribute__((packed)) multiboot_module_t;
     50} __attribute__ ((packed)) multiboot_mod_t;
    6151
    6252/** Multiboot mmap structure */
     
    6454        uint32_t size;
    6555        e820memmap_t mm_info;
    66 } __attribute__((packed)) multiboot_memmap_t;
     56} __attribute__ ((packed)) multiboot_mmap_t;
    6757
    6858/** Multiboot information structure */
     
    8474       
    8575        /* ... */
    86 } __attribute__((packed)) multiboot_info_t;
     76} __attribute__ ((packed)) multiboot_info_t;
    8777
    8878enum multiboot_info_flags {
    89         MULTIBOOT_INFO_FLAGS_MEM     = 0x01,
    90         MULTIBOOT_INFO_FLAGS_BOOT    = 0x02,
    91         MULTIBOOT_INFO_FLAGS_CMDLINE = 0x04,
    92         MULTIBOOT_INFO_FLAGS_MODS    = 0x08,
    93         MULTIBOOT_INFO_FLAGS_SYMS1   = 0x10,
    94         MULTIBOOT_INFO_FLAGS_SYMS2   = 0x20,
    95         MULTIBOOT_INFO_FLAGS_MMAP    = 0x40
     79        MBINFO_FLAGS_MEM     = 0x01,
     80        MBINFO_FLAGS_BOOT    = 0x02,
     81        MBINFO_FLAGS_CMDLINE = 0x04,
     82        MBINFO_FLAGS_MODS    = 0x08,
     83        MBINFO_FLAGS_SYMS1   = 0x10,
     84        MBINFO_FLAGS_SYMS2   = 0x20,
     85        MBINFO_FLAGS_MMAP    = 0x40
    9686       
    9787        /* ... */
    9888};
    9989
    100 extern void multiboot_extract_command(char *, size_t, const char *);
     90#define MULTIBOOT_LOADER_MAGIC  0x2BADB002
     91
     92/** Convert 32-bit multiboot address to a pointer. */
     93#define MULTIBOOT_PTR(mba) ((void *)(uintptr_t) (mba))
     94
    10195extern void multiboot_info_parse(uint32_t, const multiboot_info_t *);
    102 
    103 #endif /* __ASM__ */
    10496
    10597#endif
Note: See TracChangeset for help on using the changeset viewer.