29 lines
546 B
C
29 lines
546 B
C
|
|
#ifndef KMULTIBOOT_H
|
||
|
|
#define KMULTIBOOT_H
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
uint32_t flags;
|
||
|
|
uint32_t mem_lower;
|
||
|
|
uint32_t mem_upper;
|
||
|
|
uint32_t boot_device;
|
||
|
|
uint32_t cmdline;
|
||
|
|
uint32_t mods_count;
|
||
|
|
uint32_t mods_addr;
|
||
|
|
uint32_t num;
|
||
|
|
uint32_t size;
|
||
|
|
uint32_t addr;
|
||
|
|
uint32_t shndx;
|
||
|
|
uint32_t mmap_length;
|
||
|
|
uint32_t mmap_addr;
|
||
|
|
} multiboot_info;
|
||
|
|
|
||
|
|
typedef struct __attribute__((packed)) {
|
||
|
|
uint32_t size;
|
||
|
|
uint64_t addr;
|
||
|
|
uint64_t len;
|
||
|
|
uint32_t type;
|
||
|
|
} multiboot_mmap_entry;
|
||
|
|
|
||
|
|
#endif
|