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