From cb84a6c7eae9e35c66eff51d507f7b4dae2c51b5 Mon Sep 17 00:00:00 2001 From: Aurora Date: Mon, 21 Mar 2016 04:58:20 +0100 Subject: [PATCH] Added interrupts disabling to the deinit function Did not cause any issues, but it is better this way --- source/draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/draw.c b/source/draw.c index 26e851d..062b508 100644 --- a/source/draw.c +++ b/source/draw.c @@ -15,7 +15,8 @@ static const struct fb { } *const fb = (struct fb *)0x23FFFE00; void __attribute__((naked)) shutdownLCD(void){ - + //Disable interrupts + __asm(".word 0xF10C01C0"); vu32 *const arm11 = (u32 *)0x1FFFFFF8; //Clear ARM11 entry offset