[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190327131711.7484-1-qiaochong@loongson.cn>
Date: Wed, 27 Mar 2019 21:17:11 +0800
From: qiaochong <qiaochong@...ngson.cn>
To: Ralf Baechle <ralf@...ux-mips.org>,
Paul Burton <paul.burton@...s.com>,
James Hogan <jhogan@...nel.org>,
Daniel Thompson <daniel.thompson@...aro.org>,
Douglas Anderson <dianders@...omium.org>,
Will Deacon <will.deacon@....com>,
Christophe Leroy <christophe.leroy@....fr>
Cc: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
QiaoChong <qiaochong@...ngson.cn>
Subject: [PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.
KGDB_call_nmi_hook is called by other cpu through smp call.
MIPS smp call is processed in ipi irq handler and regs is saved in
handle_int.
So kgdb_call_nmi_hook get regs by get_irq_regs and regs will be passed
to kgdb_cpu_enter.
Signed-off-by: qiaochong <qiaochong@...ngson.cn>
---
arch/mips/kernel/kgdb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/kernel/kgdb.c b/arch/mips/kernel/kgdb.c
index 6e574c02e4c3b..6c438a0fd2075 100644
--- a/arch/mips/kernel/kgdb.c
+++ b/arch/mips/kernel/kgdb.c
@@ -214,7 +214,7 @@ void kgdb_call_nmi_hook(void *ignored)
old_fs = get_fs();
set_fs(KERNEL_DS);
- kgdb_nmicallback(raw_smp_processor_id(), NULL);
+ kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs());
set_fs(old_fs);
}
--
2.17.0
Powered by blists - more mailing lists