On Thu, Aug 02, 2018 at 01:39:51PM +0800, Alan Kao wrote: > FP codes have been separated from common part in previous patches. > This patch add the CONFIG_FPU option and some stubs to support > no-FPU systems.
I think the subject should be 'allow to disable FPU support'. As discussed in the other thread we should be able to detect systems without FPU and handle them fine even with FPU support built in. Even with that I think this patch is otherwise fine and the detection can be layered on top. One more nitpick below: > +#else > +#define save_fp_state(task, regs) (0) > +#define restore_fp_state(task, regs) (0) > +#define fstate_save(task, regs) do { } while (0) > +#define fstate_restore(task, regs) do { } while (0) > +#define __switch_to_aux(__prev, __next) do { } while (0) > +#define DEFAULT_SSTATUS (SR_SPIE | SR_FS_OFF) > +#endif Please move the stubs for functions that are static in signal.c into signal.c as well - you already have a CONFIG_FPU ifdef block in that file anyway.