diff --git a/arch/arm64/kernel/cpu.c b/arch/arm64/kernel/cpu.c index ff03e229..488b2f80 100644 --- a/arch/arm64/kernel/cpu.c +++ b/arch/arm64/kernel/cpu.c @@ -1434,6 +1434,13 @@ save_fp_regs(struct thread *thread) } } +void copy_fp_regs(struct thread *from, struct thread *to) +{ + if ((from->fp_regs != NULL) && (check_and_allocate_fp_regs(to) == 0)) { + memcpy(to->fp_regs, from->fp_regs, sizeof(fp_regs_struct)); + } +} + void clear_fp_regs(struct thread *thread) {