Skip to content

Commit

Permalink
entry: Enable access to Cortex-A72's floating-point & NEON units.
Browse files Browse the repository at this point in the history
Signed-off-by: TunaCici <[email protected]>
  • Loading branch information
TunaCici committed Feb 15, 2024
1 parent 3452f47 commit 236e630
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Kernel/Arch/ARM64/Entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ _start:
mov x3, #0x00

/* Register vector tables */
adr x0, vector_table
msr vbar_el1, x0
adr x0, vector_table
msr vbar_el1, x0

/* Enable access to FPU & Advanced SIMD (NEON) */
mrs x0, CPACR_EL1
orr x0, x0, #(0x3 << 20)
msr CPACR_EL1, x0
isb
1:
cmp x1, x2
b.gt 2f
Expand Down

0 comments on commit 236e630

Please sign in to comment.