Skip to content

Commit

Permalink
Merge branch 'topic/kliemann/qemu_17' into 'master'
Browse files Browse the repository at this point in the history
Move __initialize_mmu to .boot

See merge request eng/toolchain/bb-runtimes!48
  • Loading branch information
jklmnn committed Oct 12, 2023
2 parents 95428e9 + 793a8ec commit 542446f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/s-mmu.ads
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ is

procedure Initialize with
Export,
Convention => C,
External_Name => "__initialize_mmu";
Convention => C,
External_Name => "__initialize_mmu",
Linker_Section => ".boot";

end System.MMU;
3 changes: 2 additions & 1 deletion src/s-mmu__aarch64.adb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ package body System.MMU is

type Level_3_Tables is array (Natural range <>) of Level_3_Table;

function Get_Level_1_Table return Address;
function Get_Level_1_Table return Address with
Inline_Always;
-- Retrieve the address of the level 1 translation table from the
-- TTBR0_EL1 register.

Expand Down

0 comments on commit 542446f

Please sign in to comment.