1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-24 19:26:04 +00:00
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-22 00:04:53 +01: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;
}