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