diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-11 01:28:14 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-11 01:28:14 +0100 |
commit | 0f20294f13ebd740f860338f7fa646ebe4ef97dd (patch) | |
tree | 58a70315b6ece29441e4c0e5ef2d68ab7af8df05 | |
parent | 3409da67262e5773f372e8035cc480b446b7df03 (diff) | |
download | rpi-MMU-example-0f20294f13ebd740f860338f7fa646ebe4ef97dd.tar.gz rpi-MMU-example-0f20294f13ebd740f860338f7fa646ebe4ef97dd.zip |
update short descriptor generic struct
-rw-r--r-- | kernel.c | 4 | ||||
-rw-r--r-- | translation_table_descriptors.h | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -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 = diff --git a/translation_table_descriptors.h b/translation_table_descriptors.h index 6aebe31..b7065f2 100644 --- a/translation_table_descriptors.h +++ b/translation_table_descriptors.h @@ -157,11 +157,11 @@ typedef union { uint32_t raw; uint8_t descriptor_type; - + + short_page_table_descriptor_t page_table_fields; short_section_descriptor_t section_fields; short_supersection_descriptor_t supersection_fields; - // more to come here (e.g. short_supersection_descriptor_t) -} short_descriptor_t; +} short_descriptor_lvl1_t; //// possible values of descriptor_type field: |