From 7dbdf1ee0a064e9b2c5fedd7bd4e2b67f0532b09 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 17 Dec 2019 17:01:41 +0100 Subject: make things work again on real hw (setting system mode moved to boot.S) --- demo_functionality.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'demo_functionality.c') diff --git a/demo_functionality.c b/demo_functionality.c index 60b0bfa..3375550 100644 --- a/demo_functionality.c +++ b/demo_functionality.c @@ -26,11 +26,11 @@ void demo_paging_support(void) uart_puts(paging); } -void demo_mode_to_system(void) +void demo_current_mode(void) { // get content of current program status register to check the current - // processor mode + // processor mode (should be system, as we set it in boot.S) PSR_t CPSR = read_CPSR(); char *mode_name; @@ -51,9 +51,6 @@ void demo_mode_to_system(void) uart_puts("current mode: "); uart_puts(mode_name); - - uart_puts("setting mode to system (PL1)...\r\n"); - set_system_mode(); } #define TRANSLATION_TABLE \ -- cgit v1.2.3