Skip to content
Commit cc21aba5 authored by Luuk Bosma's avatar Luuk Bosma Committed by Johan Hedberg
Browse files

arch: arm: aarch32: clear CPACR for every CPU that has a FPU



Upon reset, the Co-Processor Access Control Register is, normally,
0x00000000. However, it might be left un-cleared by firmware running
before Zephyr boot.
This restores the register back to reset value, even if CONFIG_FLOAT
is not set.
Clearing before setting supports switching between Full access
and Privileged access only.

Refactor enable_floating_point to support initialize
floating point registers for every CPU that has a FPU.

Signed-off-by: default avatarLuuk Bosma <l.bosma@interay.com>
parent 2c70df32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment