diff options
author | Matthias Blaicher <matthias@blaicher.com> | 2012-11-05 09:44:22 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-11-05 11:33:49 +0000 |
commit | e89cae8dbc79e8ed2e894cad83773e30db190135 (patch) | |
tree | 5ab44ff4ecb1057e67ad64edbf5ae863a518a5a6 /src/target | |
parent | 8104b58dbc55c7300b343231cc5bd430063d5721 (diff) |
rtos: Add FPU detection to ChibiOS/RT
The stacking of ChibiOS/RT depends on the usage of an FPU. If the
FPU is enabled the FPU registers are also saved on context switch.
This patch adds automatic detection of FPU for armv7m targets.
Note: With this patch, openocd will only output an error message
warning that the FPU is enabled.
For further FPU support, the correct stacking information
also needs to be added.
Change-Id: I0984cbd9180f247ba2fa610e74a6413cc54239ea
Signed-off-by: Matthias Blaicher <matthias@blaicher.com>
Reviewed-on: http://openocd.zylin.com/961
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/cortex_m.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/target/cortex_m.h b/src/target/cortex_m.h index a10368d5..743bd13d 100644 --- a/src/target/cortex_m.h +++ b/src/target/cortex_m.h @@ -59,6 +59,11 @@ #define FP_COMP6 0xE0002020 #define FP_COMP7 0xE0002024 +#define FPU_CPACR 0xE000ED88 +#define FPU_FPCCR 0xE000EF34 +#define FPU_FPCAR 0xE000EF38 +#define FPU_FPDSCR 0xE000EF3C + /* DCB_DHCSR bit and field definitions */ #define DBGKEY (0xA05F << 16) #define C_DEBUGEN (1 << 0) |