From 81dea357540c0e5e8c74faa26471307fff58c15f Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Mon, 17 Apr 2017 03:59:45 +0200 Subject: [PATCH] Minor stuff --- source/screen.c | 3 --- source/screen.h | 2 +- source/start.s | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/screen.c b/source/screen.c index 7bd44be..2537297 100644 --- a/source/screen.c +++ b/source/screen.c @@ -47,9 +47,6 @@ static const u32 brightness[4] = {0x5F, 0x4C, 0x39, 0x26}; void __attribute__((naked)) arm11Stub(void) { - //Disable interrupts - __asm(".word 0xF10C01C0"); - WAIT_FOR_ARM9(); } diff --git a/source/screen.h b/source/screen.h index b8d8d5c..ce22660 100644 --- a/source/screen.h +++ b/source/screen.h @@ -33,7 +33,7 @@ #define ARESCREENSINITIALIZED (PDN_GPU_CNT != 1) -#define ARM11_STUB_ADDRESS 0x1FFFFD00 +#define ARM11_STUB_ADDRESS 0x1FFFFF00 #define WAIT_FOR_ARM9() *arm11Entry = 0; while(!*arm11Entry); ((void (*)())*arm11Entry)(); #define SCREEN_TOP_WIDTH 400 diff --git a/source/start.s b/source/start.s index 7c6181e..675fc89 100644 --- a/source/start.s +++ b/source/start.s @@ -91,6 +91,7 @@ start: mov r1, #0x340 str r1, [r0] + @ Clear BSS ldr r0, =__bss_start mov r1, #0 ldr r2, =__bss_end