boot/efi/arm: initialize TTBCR when starting the kernel
Change-Id: I5ecaa0a91c8677f7d1ac6a512de6de8b2eaa597c Reviewed-on: https://review.haiku-os.org/c/haiku/+/4852 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
parent
a8dc67c795
commit
6f62f45641
@ -46,6 +46,9 @@ FUNCTION(arch_enter_kernel):
|
||||
// set TTBR0
|
||||
MCR p15, 0, r5, c2, c0, 0
|
||||
|
||||
// initialize TTBCR to zero (no LPAE, use only TTBR0)
|
||||
MCR p15, 0, r1, c2, c0, 2
|
||||
|
||||
// flush TLB (again)
|
||||
MCR p15, 0, r1, c8, c7, 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user