aboutsummaryrefslogtreecommitdiff
path: root/demo_functionality.c
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-17 17:01:41 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-17 17:01:41 +0100
commit7dbdf1ee0a064e9b2c5fedd7bd4e2b67f0532b09 (patch)
tree1ff297ee593d14151d200ec6e4db30f360dabfd0 /demo_functionality.c
parent37821a7d49e78132e7bdf12e04a9ed339588650c (diff)
downloadrpi-MMU-example-7dbdf1ee0a064e9b2c5fedd7bd4e2b67f0532b09.tar.gz
rpi-MMU-example-7dbdf1ee0a064e9b2c5fedd7bd4e2b67f0532b09.zip
make things work again on real hw (setting system mode moved to boot.S)
Diffstat (limited to 'demo_functionality.c')
-rw-r--r--demo_functionality.c7
1 files changed, 2 insertions, 5 deletions
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 \