2019-07-18 23:43:49 +02:00
|
|
|
#include "utils.h"
|
2019-07-29 22:38:44 +02:00
|
|
|
#include "core_ctx.h"
|
2019-07-19 01:45:56 +02:00
|
|
|
#include "log.h"
|
2019-07-22 01:04:53 +02:00
|
|
|
#include "platform/uart.h"
|
2019-07-30 02:16:25 +02:00
|
|
|
#include "traps.h"
|
2019-07-18 23:43:49 +02:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2019-07-30 02:16:25 +02:00
|
|
|
enableTraps();
|
|
|
|
|
2019-07-29 22:38:44 +02:00
|
|
|
if (currentCoreCtx->coreId == 0) {
|
|
|
|
uartInit(115200);
|
|
|
|
serialLog("Hello from Thermosphere!\n");
|
|
|
|
__builtin_trap();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
serialLog("Core %u booted\n", currentCoreCtx->coreId);
|
|
|
|
}
|
2019-07-19 01:45:56 +02:00
|
|
|
|
2019-07-18 23:43:49 +02:00
|
|
|
return 0;
|
|
|
|
}
|