thermosphere: enable traps, works around qemu brk bug
This commit is contained in:
@@ -2,15 +2,17 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user