diff options
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/mips/loongson_1c/stackframe_fpu.h | 4 |
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 |
