43 lines
754 B
C
43 lines
754 B
C
/******************************************************************************
|
|
*
|
|
* Copyright (c) 2017-2019 by Löwenware Ltd
|
|
* Please, refer LICENSE file for legal information
|
|
*
|
|
******************************************************************************/
|
|
|
|
/**
|
|
* @file main.c
|
|
* @author Ilja Kartašov <ik@lowenware.com>
|
|
* @brief
|
|
*
|
|
* @see https://lowenware.com/
|
|
*/
|
|
|
|
#include <leos/log.h>
|
|
#include <leos/arch.h>
|
|
#include <leos/irq.h>
|
|
#include <leos/leos.h>
|
|
#include <drivers/timer/timer.h>
|
|
|
|
|
|
void
|
|
Leos_run(void)
|
|
{
|
|
Log_init();
|
|
|
|
Log_putS("Starting Lowe OS (EL");
|
|
Log_putI(AArch64_getEL(), 10);
|
|
Log_putS(")\r\n");
|
|
|
|
AArch64_init();
|
|
|
|
Timer_init();
|
|
IRQ_init();
|
|
IRQ_enable();
|
|
|
|
for (;;) {
|
|
__asm__("WFE");
|
|
}
|
|
}
|
|
|