2018-03-24 00:58:24 +00:00
|
|
|
#ifndef KERNEL_HAL_BOOT_H
|
|
|
|
#define KERNEL_HAL_BOOT_H
|
2016-07-09 03:01:33 +00:00
|
|
|
|
2018-01-26 08:43:22 +00:00
|
|
|
#include "type.h"
|
|
|
|
#include "kernel/hal/intr.h"
|
|
|
|
#include "kernel/hal/mem.h"
|
2018-02-18 04:00:54 +00:00
|
|
|
#include "status.h"
|
2018-01-26 08:43:22 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Required OS boot info
|
|
|
|
*/
|
2016-07-01 09:15:07 +00:00
|
|
|
|
2018-03-24 00:58:24 +00:00
|
|
|
struct boot_info
|
2016-06-15 07:29:46 +00:00
|
|
|
{
|
2018-02-18 04:06:57 +00:00
|
|
|
void *krnl_end;
|
2018-03-24 00:58:24 +00:00
|
|
|
struct intr_info intr_info;
|
2018-02-18 04:06:57 +00:00
|
|
|
char cpu_vd_str[13];
|
2018-03-24 00:58:24 +00:00
|
|
|
};
|
2016-06-15 07:29:46 +00:00
|
|
|
|
2018-03-24 00:58:24 +00:00
|
|
|
sx_status SXAPI hal_init(void *m_info);
|
2016-07-09 03:01:33 +00:00
|
|
|
|
2018-03-24 00:58:24 +00:00
|
|
|
#endif
|