Commit aaf93205 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by Ioannis Glaropoulos
Browse files

kconfig: Rename CONFIG_FP_SHARING to CONFIG_FPU_SHARING



This commit renames the Kconfig `FP_SHARING` symbol to `FPU_SHARING`,
since this symbol specifically refers to the hardware FPU sharing
support by means of FPU context preservation, and the "FP" prefix is
not fully descriptive of that; leaving room for ambiguity.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
parent 4aeea753
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -543,7 +543,7 @@ config FPU
	  those platforms is dependent on the availability of the toolchain-
	  provided software floating point library.

config FP_SHARING
config FPU_SHARING
	bool "FPU register sharing"
	depends on FPU
	help
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ GEN_OFFSET_SYM(_callee_saved_stack_t, r30);
GEN_OFFSET_SYM(_callee_saved_stack_t, r58);
GEN_OFFSET_SYM(_callee_saved_stack_t, r59);
#endif
#ifdef CONFIG_FP_SHARING
#ifdef CONFIG_FPU_SHARING
GEN_OFFSET_SYM(_callee_saved_stack_t, fpu_status);
GEN_OFFSET_SYM(_callee_saved_stack_t, fpu_ctrl);
#ifdef CONFIG_FP_FPU_DA
+2 −2
Original line number Diff line number Diff line
@@ -262,7 +262,7 @@ FUNC_NORETURN void arch_user_mode_enter(k_thread_entry_t user_entry,

#endif

#if defined(CONFIG_FPU) && defined(CONFIG_FP_SHARING)
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
int arch_float_disable(struct k_thread *thread)
{
	unsigned int key;
@@ -295,4 +295,4 @@ int arch_float_enable(struct k_thread *thread)

	return 0;
}
#endif /* CONFIG_FPU && CONFIG_FP_SHARING */
#endif /* CONFIG_FPU && CONFIG_FPU_SHARING */
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ struct _callee_saved_stack {
	u32_t r59;
#endif

#ifdef CONFIG_FP_SHARING
#ifdef CONFIG_FPU_SHARING
	u32_t fpu_status;
	u32_t fpu_ctrl;
#ifdef CONFIG_FP_FPU_DA
+2 −2
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@
	st r59, [sp, ___callee_saved_stack_t_r59_OFFSET]
#endif

#ifdef CONFIG_FP_SHARING
#ifdef CONFIG_FPU_SHARING
	ld_s r13, [r2, ___thread_base_t_user_options_OFFSET]
	/* K_FP_REGS is bit 1 */
	bbit0 r13, 1, 1f
@@ -99,7 +99,7 @@
	ld r59, [sp, ___callee_saved_stack_t_r59_OFFSET]
#endif

#ifdef CONFIG_FP_SHARING
#ifdef CONFIG_FPU_SHARING
	ld_s r13, [r2, ___thread_base_t_user_options_OFFSET]
	/* K_FP_REGS is bit 1 */
	bbit0 r13, 1, 2f
Loading