boot/efi/arm: enable FPU before jumping to kernel
Change-Id: I37bb2146102a207e97355e099f6b4160d644c326 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4701 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
17e8767959
commit
123aa1325c
@ -26,6 +26,20 @@ FUNCTION(arch_enter_kernel):
|
||||
mov r0,r1 // kernelArgs
|
||||
mov r1,#0 // currentCPU=0
|
||||
|
||||
// enable full access for coprocessors P10, P11
|
||||
// by setting the required flags in Access Control Register
|
||||
MRC p15, #0, r9, c1, c0, #2
|
||||
orr r9, r9, #0x00f00000
|
||||
MCR p15, #0, r9, c1, c0, #2
|
||||
|
||||
// flush prefetch buffer
|
||||
mov r9, #0
|
||||
MCR p15, #0, r9, c7, c5, #4
|
||||
|
||||
// enable FPU
|
||||
mov r9, #0x40000000
|
||||
FMXR FPEXC, r9
|
||||
|
||||
// flush TLB
|
||||
MCR p15, 0, r1, c8, c7, 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user