os-core/kernel/leos/leos.c

43 lines
754 B
C
Raw Normal View History

2019-05-29 11:10:01 +02:00
/******************************************************************************
*
* Copyright (c) 2017-2019 by Löwenware Ltd
* Please, refer LICENSE file for legal information
*
******************************************************************************/
/**
2020-01-15 10:56:04 +01:00
* @file main.c
2019-05-29 11:10:01 +02:00
* @author Ilja Kartašov <ik@lowenware.com>
* @brief
*
* @see https://lowenware.com/
*/
2020-01-15 10:56:04 +01:00
#include <leos/log.h>
#include <leos/arch.h>
#include <leos/irq.h>
#include <leos/leos.h>
2020-01-17 10:13:01 +01:00
#include <drivers/timer/timer.h>
2019-05-29 11:10:01 +02:00
void
2020-01-15 10:56:04 +01:00
Leos_run(void)
{
Log_init();
2019-05-29 11:10:01 +02:00
2020-01-15 10:56:04 +01:00
Log_putS("Starting Lowe OS (EL");
Log_putI(AArch64_getEL(), 10);
Log_putS(")\r\n");
2020-01-17 10:13:01 +01:00
AArch64_init();
2020-01-15 10:56:04 +01:00
Timer_init();
IRQ_init();
IRQ_enable();
for (;;) {
__asm__("WFE");
}
}