2018-01-26 08:43:22 +00:00
|
|
|
#include "kernel/ke/boot.h"
|
2018-02-18 04:00:54 +00:00
|
|
|
#include "kernel/ke/bug_check.h"
|
2016-07-09 03:01:33 +00:00
|
|
|
|
2018-02-18 04:00:54 +00:00
|
|
|
/**
|
|
|
|
* Kernel entry point
|
|
|
|
* @param boot_info passed by the bootloader
|
|
|
|
*/
|
2018-03-24 00:58:24 +00:00
|
|
|
void SXAPI ke_main(struct boot_info *boot_info)
|
2016-06-15 07:29:46 +00:00
|
|
|
{
|
2018-03-24 00:58:24 +00:00
|
|
|
sx_status status = STATUS_SUCCESS;
|
2018-02-18 04:06:57 +00:00
|
|
|
status = hal_init(boot_info);
|
|
|
|
if (!sx_success(status))
|
|
|
|
{
|
|
|
|
ke_panic(status);
|
|
|
|
}
|
2018-02-18 04:00:54 +00:00
|
|
|
ke_trap();
|
2016-06-15 07:29:46 +00:00
|
|
|
}
|
2018-03-24 00:58:24 +00:00
|
|
|
|