Ignore:
Timestamp:
07/05/22 18:35:28 (3 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
6e74ceb
Parents:
22015c0
git-author:
Kinsey Moore <kinsey.moore@…> (07/05/22 18:35:28)
git-committer:
Joel Sherrill <joel@…> (07/06/22 15:22:08)
Message:

bsps/aarch64: Use MMU pages appropriately

There were two bugs with MMU page use that were partially hiding each
other. The linker script page table section was 4x the size it needed to
be and the page table allocation routine was allocating pages PTRSIZE
times larger than it needed to. On ILP32, this resulted in incorrect but
functional allocation. On LP64, this resulted in allocation failures
earlier than expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/aarch64/include/bsp/aarch64-mmu.h

    r22015c0 r2f6ee01  
    146146{
    147147  /* First page table is already in use as TTB0 */
    148   static uintptr_t *current_page_table =
    149     (uintptr_t *) bsp_translation_table_base;
     148  static uintptr_t current_page_table =
     149    (uintptr_t) bsp_translation_table_base;
    150150
    151151  current_page_table += MMU_PAGE_SIZE;
Note: See TracChangeset for help on using the changeset viewer.