mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-04 20:18:32 +01:00
thermosphere: enable traps, works around qemu brk bug
This commit is contained in:
parent
ad6db14526
commit
a291bddcc1
@ -133,7 +133,7 @@ all: $(BUILD)
|
||||
|
||||
ifeq ($(PLATFORM), qemu)
|
||||
QEMUFLAGS := -nographic -machine virt,secure=on,virtualization=on,gic-version=2 -cpu cortex-a57 -smp 4 -m 1024\
|
||||
-bios bl1.bin -d unimp -semihosting-config enable,target=native -serial mon:stdio
|
||||
-bios bl1.bin -d unimp,int -semihosting-config enable,target=native -serial mon:stdio
|
||||
|
||||
# NOTE: copy bl1.bin, bl2.bin, bl31.bin from your own build of Arm Trusted Firmware!
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user