30 lines
834 B
C
30 lines
834 B
C
// kernel.h
|
|
// Author: Josh Holtrop
|
|
// Date: 08/16/04
|
|
// Modified: 01/04/05
|
|
|
|
#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 - 15/16/24/32
|
|
} __attribute__ ((packed)) real_mode_param_t;
|
|
|
|
/* returns true to callee if we should jump to a real mode module */
|
|
mb_module_t *k_mbsave(mb_info_t *mbinfo, unsigned int mb_magic);
|
|
void _init();
|
|
void isr();
|
|
void k_enter_critical(); // functions for implementing "atomic actions"
|
|
void k_leave_critical();
|
|
void k_check(int val, char *msg);
|
|
|
|
#endif
|
|
|