All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] MIPS: ftrace: Fix N32 save registers
@ 2021-01-31  8:14 Jinyang He
  2021-01-31  8:14 ` [PATCH 2/3] MIPS: ftrace: Combine ftrace_modify_code* into one function Jinyang He
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jinyang He @ 2021-01-31  8:14 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Steven Rostedt, Ingo Molnar
  Cc: Wu Zhangjin, linux-mips, linux-kernel, Huacai Chen, Jiaxun Yang,
	Tiezhu Yang

CONFIG_64BIT is confusing. N32 also pass parameters by a0~a7.

Signed-off-by: Jinyang He <hejinyang@loongson.cn>
---
 arch/mips/kernel/mcount.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S
index cff52b2..808257a 100644
--- a/arch/mips/kernel/mcount.S
+++ b/arch/mips/kernel/mcount.S
@@ -27,7 +27,7 @@
 	PTR_S	a1, PT_R5(sp)
 	PTR_S	a2, PT_R6(sp)
 	PTR_S	a3, PT_R7(sp)
-#ifdef CONFIG_64BIT
+#if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
 	PTR_S	a4, PT_R8(sp)
 	PTR_S	a5, PT_R9(sp)
 	PTR_S	a6, PT_R10(sp)
@@ -42,7 +42,7 @@
 	PTR_L	a1, PT_R5(sp)
 	PTR_L	a2, PT_R6(sp)
 	PTR_L	a3, PT_R7(sp)
-#ifdef CONFIG_64BIT
+#if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
 	PTR_L	a4, PT_R8(sp)
 	PTR_L	a5, PT_R9(sp)
 	PTR_L	a6, PT_R10(sp)
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-13 15:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-31  8:14 [PATCH 1/3] MIPS: ftrace: Fix N32 save registers Jinyang He
2021-01-31  8:14 ` [PATCH 2/3] MIPS: ftrace: Combine ftrace_modify_code* into one function Jinyang He
2021-01-31  8:14 ` [PATCH 3/3] MIPS: ftrace: Add DYNAMIC_FTRACE_WITH_REGS support Jinyang He
2021-02-01 14:56   ` Steven Rostedt
2021-02-02 12:21     ` Jinyang He
     [not found] ` <b1a5eae4-2032-4ace-aa48-a21893e47528@www.fastmail.com>
2021-02-01  1:12   ` [PATCH 1/3] MIPS: ftrace: Fix N32 save registers Jinyang He
2021-02-01  4:03     ` Jiaxun Yang
2021-02-13 15:17       ` Maciej W. Rozycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.