#ifndef __HOS_KERNEL_H__ #define __HOS_KERNEL_H__ __HOS_KERNEL_H__ #include "hos_defines.h" #include "multiboot.h" typedef struct { void *vid_addr; // address of LFB, 0 if console mode u32_t width; // width in pixels or columns if vid_mem == 0 u32_t height; // height in pixels or columns if vid_mem == 0 u32_t vid_mem; // amount of memory for video buffer u32_t bpp; // bits per pixel - 16/24/32 } __attribute__ ((packed)) real_mode_param_t; /* returns true to callee if we should jump to a real mode module */ int k_mbsave(mb_info_t *mbinfo, unsigned int mb_magic); void k_init(); void isr(); void k_enter_critical(); // functions for implementing "atomic actions" void k_leave_critical(); #endif