diff options
author | Stefan Agner <stefan@agner.ch> | 2014-07-03 17:08:21 +0400 |
---|---|---|
committer | Frantisek Burian <BuFran@seznam.cz> | 2014-10-15 21:31:02 +0400 |
commit | 511f16e8c736cef5d42eea43400812239d792ce5 (patch) | |
tree | 3277d753bab2cf16bce4fb92504fdce0f10ddf2c | |
parent | c83e16926e039c664ae296b1235cf26fedf6e55f (diff) |
vf6xx: enable floating-point coprocessor
-rw-r--r-- | lib/vf6xx/vector_chipset.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vf6xx/vector_chipset.c b/lib/vf6xx/vector_chipset.c index 3a4f4070..476960c7 100644 --- a/lib/vf6xx/vector_chipset.c +++ b/lib/vf6xx/vector_chipset.c @@ -33,4 +33,7 @@ static inline void pre_main(void) /* Set Vector Table Offset to our memory based vector table */ SCB_VTOR = (uint32_t)&vector_table; + + /* Enable access to Floating-Point coprocessor. */ + SCB_CPACR |= SCB_CPACR_FULL * (SCB_CPACR_CP10 | SCB_CPACR_CP11); } |