#pragma once #ifdef __cplusplus extern "C" { #endif typedef struct { // kernel command line char cmdline[64]; // memory map unsigned bitmap[1024 * 32]; // module unsigned module_start; unsigned module_end; char module_cmdline[64]; } boot_info_t; _Static_assert((1024 * 32 * sizeof(unsigned) * 8) == (1024 * 1024), "bitmap size check"); #ifdef __cplusplus } #endif