Atmosphere/thermosphere/src/main.c

22 lines
383 B
C
Raw Normal View History

#include "utils.h"
#include "core_ctx.h"
#include "debug_log.h"
2019-07-21 23:04:53 +00:00
#include "platform/uart.h"
#include "traps.h"
int main(void)
{
enableTraps();
if (currentCoreCtx->coreId == 0) {
uartInit(115200);
DEBUG("Hello from Thermosphere!\n");
__builtin_trap();
}
else {
DEBUG("Core %u booted\n", currentCoreCtx->coreId);
}
return 0;
}