diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-01-02 22:32:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-02 22:32:59 -0500 |
commit | 4d7b92ad572b4bd4d92fc80911641bb6cba3b99c (patch) | |
tree | 6257d1b4bad63a296f03abee8940222a979d8d2a /arch/sparc/kernel/kgdb_32.c | |
parent | ece93487c31607558f4b91f378fcee4b43956dbc (diff) |
sparc: add '32' suffix to reg_window, sigcontext, __siginfo_t
Renaming a few types to contain a 32 suffix makes the
type names compatible with sparc64 and thus makes sharing
between the two a lot easier.
Note: None of these definitions are expected part of the
stable ABI towards userspace.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/kgdb_32.c')
-rw-r--r-- | arch/sparc/kernel/kgdb_32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sparc/kernel/kgdb_32.c b/arch/sparc/kernel/kgdb_32.c index 757805ce02e..04df4edc007 100644 --- a/arch/sparc/kernel/kgdb_32.c +++ b/arch/sparc/kernel/kgdb_32.c | |||
@@ -14,14 +14,14 @@ extern unsigned long trapbase; | |||
14 | 14 | ||
15 | void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) | 15 | void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) |
16 | { | 16 | { |
17 | struct reg_window *win; | 17 | struct reg_window32 *win; |
18 | int i; | 18 | int i; |
19 | 19 | ||
20 | gdb_regs[GDB_G0] = 0; | 20 | gdb_regs[GDB_G0] = 0; |
21 | for (i = 0; i < 15; i++) | 21 | for (i = 0; i < 15; i++) |
22 | gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; | 22 | gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; |
23 | 23 | ||
24 | win = (struct reg_window *) regs->u_regs[UREG_FP]; | 24 | win = (struct reg_window32 *) regs->u_regs[UREG_FP]; |
25 | for (i = 0; i < 8; i++) | 25 | for (i = 0; i < 8; i++) |
26 | gdb_regs[GDB_L0 + i] = win->locals[i]; | 26 | gdb_regs[GDB_L0 + i] = win->locals[i]; |
27 | for (i = 0; i < 8; i++) | 27 | for (i = 0; i < 8; i++) |
@@ -43,7 +43,7 @@ void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) | |||
43 | void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) | 43 | void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) |
44 | { | 44 | { |
45 | struct thread_info *t = task_thread_info(p); | 45 | struct thread_info *t = task_thread_info(p); |
46 | struct reg_window *win; | 46 | struct reg_window32 *win; |
47 | int i; | 47 | int i; |
48 | 48 | ||
49 | for (i = GDB_G0; i < GDB_G6; i++) | 49 | for (i = GDB_G0; i < GDB_G6; i++) |
@@ -55,7 +55,7 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) | |||
55 | gdb_regs[GDB_SP] = t->ksp; | 55 | gdb_regs[GDB_SP] = t->ksp; |
56 | gdb_regs[GDB_O7] = 0; | 56 | gdb_regs[GDB_O7] = 0; |
57 | 57 | ||
58 | win = (struct reg_window *) t->ksp; | 58 | win = (struct reg_window32 *) t->ksp; |
59 | for (i = 0; i < 8; i++) | 59 | for (i = 0; i < 8; i++) |
60 | gdb_regs[GDB_L0 + i] = win->locals[i]; | 60 | gdb_regs[GDB_L0 + i] = win->locals[i]; |
61 | for (i = 0; i < 8; i++) | 61 | for (i = 0; i < 8; i++) |
@@ -77,7 +77,7 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) | |||
77 | 77 | ||
78 | void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) | 78 | void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) |
79 | { | 79 | { |
80 | struct reg_window *win; | 80 | struct reg_window32 *win; |
81 | int i; | 81 | int i; |
82 | 82 | ||
83 | for (i = 0; i < 15; i++) | 83 | for (i = 0; i < 15; i++) |
@@ -96,7 +96,7 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) | |||
96 | regs->npc = gdb_regs[GDB_NPC]; | 96 | regs->npc = gdb_regs[GDB_NPC]; |
97 | regs->y = gdb_regs[GDB_Y]; | 97 | regs->y = gdb_regs[GDB_Y]; |
98 | 98 | ||
99 | win = (struct reg_window *) regs->u_regs[UREG_FP]; | 99 | win = (struct reg_window32 *) regs->u_regs[UREG_FP]; |
100 | for (i = 0; i < 8; i++) | 100 | for (i = 0; i < 8; i++) |
101 | win->locals[i] = gdb_regs[GDB_L0 + i]; | 101 | win->locals[i] = gdb_regs[GDB_L0 + i]; |
102 | for (i = 0; i < 8; i++) | 102 | for (i = 0; i < 8; i++) |