commit 095df6c445c490f1b6f0af2f0e91b58bece9c1a8
parent 9493d9941e215a86acdc468fdbb399d8a55a0aeb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 20 Oct 2020 22:24:03 +0200
os9: Call taskmap in crt.s
This call modifies the memory mapping type in low memory
allowing an easier change to the memory map needed for
every process.
Change-Id: Ib60436c805b1c9f63c64ce5acc9d432c739eb8be
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/os9/arch/arm64/crt.s b/src/os9/arch/arm64/crt.s
@@ -59,6 +59,7 @@ EL1:
MSR VBAR_EL1,X10
ISB
+ BL taskmap
BL main
ADR X0,OUTSYNC
diff --git a/src/os9/arch/arm64/mmu.c b/src/os9/arch/arm64/mmu.c
@@ -238,8 +238,8 @@ taskmap(void)
uint64_t tcr;
tcr = sysrd(TCR_EL1);
- tcr &= ~(TG0(-1) | T0SZ(-1));
- tcr |= TG0(G4K) | T0SZ(24);
+ tcr &= ~T0SZ(-1);
+ tcr |= T0SZ(24);
syswr(TCR_EL1, tcr);
barrier(CODE);