Still need to document a lot of functions, but I cleaned up and explained a lot of the code via comments.
28 lines
568 B
C
28 lines
568 B
C
/* kmultiboot.h
|
|
* Kernel Multiboot
|
|
*
|
|
* Data needed for multiboot compatibility.
|
|
*/
|
|
#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;
|
|
} mb_info_t;
|
|
|
|
typedef struct multiboot_mmap_entry {
|
|
uint32_t ssize; //size of the entry
|
|
uint64_t addr; //physical location of memory
|
|
uint64_t msize;
|
|
uint32_t type;
|
|
} __attribute__((packed)) mb_mmap_entry_t;
|
|
|
|
#endif
|