This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, csky] Update linux-unwind.h for kernel
- From: 瞿仙淼 <xianmiao_qu at c-sky dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: yunhai_shang <yunhai_shang at c-sky dot com>, Han Mao <han_mao at c-sky dot com>, Sandra Loosemore <sandra at codesourcery dot com>
- Date: Fri, 16 Nov 2018 09:27:13 +0800
- Subject: [PATCH, csky] Update linux-unwind.h for kernel
Hi,
I have submitted a patch to update linux-unwind for kernel
Index: libgcc/ChangeLog
===================================================================
--- libgcc/ChangeLog (revision 266199)
+++ libgcc/ChangeLog (working copy)
@@ -1,5 +1,11 @@
2018-11-15 Xianmiao Qu <xianmiao_qu@c-sky.com>
+ * config/csky/linux-unwind.h (sc_pt_regs): Update for kernel.
+ (sc_pt_regs_lr): Update for kernel.
+ (sc_pt_regs_tls): Update for kernel.
+
+2018-11-15 Xianmiao Qu <xianmiao_qu@c-sky.com>
+
* config/csky/linux-unwind.h: Fix coding style.
2018-11-13 Xianmiao Qu <xianmiao_qu@c-sky.com>
Index: libgcc/config/csky/linux-unwind.h
===================================================================
--- libgcc/config/csky/linux-unwind.h (revision 266199)
+++ libgcc/config/csky/linux-unwind.h (working copy)
@@ -47,9 +47,9 @@
#define MOVI_R7_139_V2_PART0 0xea07
#define MOVI_R7_139_V2_PART1 139
-#define sc_pt_regs(x) (sc->sc_##x)
-#define sc_pt_regs_lr (sc->sc_r15)
-#define sc_pt_regs_tls(x) (sc->sc_exregs[15])
+#define sc_pt_regs(x) (sc->sc_pt_regs.x)
+#define sc_pt_regs_lr (sc->sc_pt_regs.lr)
+#define sc_pt_regs_tls(x) sc_pt_regs(x)
#define MD_FALLBACK_FRAME_STATE_FOR csky_fallback_frame_state