summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-09-14 17:06:11 +0800
committerGitHub <[email protected]>2017-09-14 17:06:11 +0800
commit0d193254f8600a36b5df604974beccf7491572e2 (patch)
tree944e37e154f14fc888b3594d22911d5ec8e55388 /libcpu
parent6d07c084c7232e09d13c918b6ca918f39cbe15f9 (diff)
parent96f3600bdecf127033a6f95b9f6fd6510cfb88ba (diff)
Merge pull request #845 from caogos/master
[BSP] Add FPU option for loongson1c.
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/mips/loongson_1c/stackframe_fpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpu/mips/loongson_1c/stackframe_fpu.h b/libcpu/mips/loongson_1c/stackframe_fpu.h
index 58e9271833..93b8ef10c3 100644
--- a/libcpu/mips/loongson_1c/stackframe_fpu.h
+++ b/libcpu/mips/loongson_1c/stackframe_fpu.h
@@ -37,6 +37,7 @@
.macro SAVE_FPU
.set push
.set noreorder
+#ifdef RT_USING_FPU
move k1, sp /* �����ֳ� */
and k0, k1, 0xFFFFFFF8 /* 8�ֽڶ��� */
PTR_SUBU sp, k0, PT_FPU_SIZE /* ����ջ�� */
@@ -57,6 +58,7 @@
s.d $f28, PT_FPU_R28(sp)
s.d $f30, PT_FPU_R30(sp)
move sp, k1 /* �ָ��ֳ� */
+#endif
.set reorder
.set pop
.endm
@@ -65,6 +67,7 @@
.macro RESTORE_FPU
.set push
.set noreorder
+#ifdef RT_USING_FPU
move k1, sp /* �����ֳ� */
and k0, k1, 0xFFFFFFF8 /* 8�ֽڶ��� */
PTR_SUBU sp, k0, PT_FPU_SIZE /* ����ջ��*/
@@ -85,6 +88,7 @@
l.d $f28, PT_FPU_R28(sp)
l.d $f30, PT_FPU_R30(sp)
move sp, k1 /* �ָ��ֳ� */
+#endif
.set reorder
.set pop
.endm