aboutsummaryrefslogtreecommitdiff
path: root/kernel.c
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-11-11 01:28:14 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-11-11 01:28:14 +0100
commit0f20294f13ebd740f860338f7fa646ebe4ef97dd (patch)
tree58a70315b6ece29441e4c0e5ef2d68ab7af8df05 /kernel.c
parent3409da67262e5773f372e8035cc480b446b7df03 (diff)
downloadrpi-MMU-example-0f20294f13ebd740f860338f7fa646ebe4ef97dd.tar.gz
rpi-MMU-example-0f20294f13ebd740f860338f7fa646ebe4ef97dd.zip
update short descriptor generic struct
Diffstat (limited to 'kernel.c')
-rw-r--r--kernel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel.c b/kernel.c
index 765b770..e087ccc 100644
--- a/kernel.c
+++ b/kernel.c
@@ -86,8 +86,8 @@ void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags)
// flat map all memory
uart_puts("preparing translation table\n\r");
- short_descriptor_t *translation_table =
- (short_descriptor_t*) translation_table_base;
+ short_descriptor_lvl1_t *translation_table =
+ (short_descriptor_lvl1_t*) translation_table_base;
for (uint32_t i = 0; i < 4096; i++)
translation_table[i].section_fields =