mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2025-02-04 06:12:49 +00:00
21 lines
385 B
C
21 lines
385 B
C
#include "utils.h"
|
|
#include "core_ctx.h"
|
|
#include "log.h"
|
|
#include "platform/uart.h"
|
|
#include "traps.h"
|
|
|
|
int main(void)
|
|
{
|
|
enableTraps();
|
|
|
|
if (currentCoreCtx->coreId == 0) {
|
|
uartInit(115200);
|
|
serialLog("Hello from Thermosphere!\n");
|
|
__builtin_trap();
|
|
}
|
|
else {
|
|
serialLog("Core %u booted\n", currentCoreCtx->coreId);
|
|
}
|
|
|
|
return 0;
|
|
}
|