Skip to content

Commit

Permalink
arm64: save and restore fpu regs in jmp when ARCH_FPU enabled
Browse files Browse the repository at this point in the history
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
  • Loading branch information
zhangyuan21 authored and xiaoxiang781216 committed Aug 10, 2023
1 parent b5f266d commit b705103
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/libc/machine/arm64/gnu/arch_setjmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@
REG_PAIR (x29, x30, 80); \
REG_ONE (x16, 96)

#define FPR_LAYOUT \
#ifdef CONFIG_ARCH_FPU
# define FPR_LAYOUT \
REG_PAIR ( d8, d9, 112); \
REG_PAIR (d10, d11, 128); \
REG_PAIR (d12, d13, 144); \
REG_PAIR (d14, d15, 160);
#else
# define FPR_LAYOUT
#endif

// int setjmp (jmp_buf)
.global setjmp
Expand Down

0 comments on commit b705103

Please sign in to comment.