diff options
| author | Grissiom <[email protected]> | 2013-05-31 18:32:21 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-05-31 18:32:21 +0800 |
| commit | ec1203bfab2d8d518cb9991f57a4c8d30ec79dc9 (patch) | |
| tree | 150263510c5bfea8acd126b3ca885abb16e25259 /bsp/rm48x50/application/reg_test.asm | |
| parent | 939c58c2957df263f6a46040987db2671c0dcb96 (diff) | |
rm48x50: turn on VFP support
This support Common VFPv2 sub-architecture.
Diffstat (limited to 'bsp/rm48x50/application/reg_test.asm')
| -rw-r--r-- | bsp/rm48x50/application/reg_test.asm | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/bsp/rm48x50/application/reg_test.asm b/bsp/rm48x50/application/reg_test.asm index e8614c92cb..6b68164604 100644 --- a/bsp/rm48x50/application/reg_test.asm +++ b/bsp/rm48x50/application/reg_test.asm @@ -70,19 +70,11 @@ .def vRegTestTask1 .ref ulRegTest1Counter .ref rt_thread_delay - .if (0) - .ref vPortTaskUsesFPU - .endif ;__TI_VFP_SUPPORT__ .text .arm vRegTestTask1: - .if (0) - ; Let the port layer know that this task needs its FPU context saving. - BL vPortTaskUsesFPU - .endif - ; Fill each general purpose register with a known value. mov r0, #0xFF mov r1, #0x11 @@ -99,7 +91,7 @@ vRegTestTask1: mov r12, #0xCC mov r14, #0xEE - .if (0) + .if (__TI_VFP_SUPPORT__) ; Fill each FPU register with a known value. vmov d0, r0, r1 vmov d1, r2, r3 @@ -128,7 +120,7 @@ vRegTestLoop1: BL rt_thread_delay LDMFD sp!, {r0-r3, r12} - .if (0) + .if (__TI_VFP_SUPPORT__) ; Check all the VFP registers still contain the values set above. ; First save registers that are clobbered by the test. STMFD sp!, { r0-r1 } @@ -285,11 +277,6 @@ vRegTestError1: .arm ; vRegTestTask2: - .if (0) - ; Let the port layer know that this task needs its FPU context saving. - BL vPortTaskUsesFPU - .endif - ; Fill each general purpose register with a known value. mov r0, #0xFF000000 mov r1, #0x11000000 @@ -306,7 +293,7 @@ vRegTestTask2: mov r12, #0xCC000000 mov r14, #0xEE000000 - .if (0) + .if (__TI_VFP_SUPPORT__) ; Fill each FPU register with a known value. vmov d0, r0, r1 @@ -329,7 +316,7 @@ vRegTestTask2: vRegTestLoop2: - .if (0) + .if (__TI_VFP_SUPPORT__) ; Check all the VFP registers still contain the values set above. ; First save registers that are clobbered by the test. STMFD sp!, { r0-r1 } |
