mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-27 21:42:48 +02:00
22 lines
383 B
C
22 lines
383 B
C
#include "utils.h"
|
|
#include "core_ctx.h"
|
|
#include "debug_log.h"
|
|
#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;
|
|
}
|