diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-03 08:45:55 -0400 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-04 07:01:12 -0400 |
commit | ab43d14dab1c112b74aae1c2d684a19a26c34c43 (patch) | |
tree | e8f22ac08198f95f46d315f5fd7bc09f2c030cb9 /arch/cris/arch-v32/kernel | |
parent | e336285db2593bf443b53647d8f6d8006e471d89 (diff) |
CRIS: kgdb: Fix compilation errors
Paths were not correct and pack_hex_byte() takes two arguments.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v32/kernel')
-rw-r--r-- | arch/cris/arch-v32/kernel/kgdb.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/cris/arch-v32/kernel/kgdb.c b/arch/cris/arch-v32/kernel/kgdb.c index c981fd663323..6b653323d796 100644 --- a/arch/cris/arch-v32/kernel/kgdb.c +++ b/arch/cris/arch-v32/kernel/kgdb.c | |||
@@ -174,10 +174,10 @@ | |||
174 | #include <asm/ptrace.h> | 174 | #include <asm/ptrace.h> |
175 | 175 | ||
176 | #include <asm/irq.h> | 176 | #include <asm/irq.h> |
177 | #include <arch/hwregs/reg_map.h> | 177 | #include <hwregs/reg_map.h> |
178 | #include <arch/hwregs/reg_rdwr.h> | 178 | #include <hwregs/reg_rdwr.h> |
179 | #include <arch/hwregs/intr_vect_defs.h> | 179 | #include <hwregs/intr_vect_defs.h> |
180 | #include <arch/hwregs/ser_defs.h> | 180 | #include <hwregs/ser_defs.h> |
181 | 181 | ||
182 | /* From entry.S. */ | 182 | /* From entry.S. */ |
183 | extern void gdb_handle_exception(void); | 183 | extern void gdb_handle_exception(void); |
@@ -988,26 +988,26 @@ stub_is_stopped(int sigval) | |||
988 | } | 988 | } |
989 | /* Only send PC, frame and stack pointer. */ | 989 | /* Only send PC, frame and stack pointer. */ |
990 | read_register(PC, ®_cont); | 990 | read_register(PC, ®_cont); |
991 | ptr = pack_hex_byte(PC); | 991 | ptr = pack_hex_byte(ptr, PC); |
992 | *ptr++ = ':'; | 992 | *ptr++ = ':'; |
993 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[PC]); | 993 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[PC]); |
994 | *ptr++ = ';'; | 994 | *ptr++ = ';'; |
995 | 995 | ||
996 | read_register(R8, ®_cont); | 996 | read_register(R8, ®_cont); |
997 | ptr = pack_hex_byte(R8); | 997 | ptr = pack_hex_byte(ptr, R8); |
998 | *ptr++ = ':'; | 998 | *ptr++ = ':'; |
999 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[R8]); | 999 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[R8]); |
1000 | *ptr++ = ';'; | 1000 | *ptr++ = ';'; |
1001 | 1001 | ||
1002 | read_register(SP, ®_cont); | 1002 | read_register(SP, ®_cont); |
1003 | ptr = pack_hex_byte(SP); | 1003 | ptr = pack_hex_byte(ptr, SP); |
1004 | *ptr++ = ':'; | 1004 | *ptr++ = ':'; |
1005 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[SP]); | 1005 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[SP]); |
1006 | *ptr++ = ';'; | 1006 | *ptr++ = ';'; |
1007 | 1007 | ||
1008 | /* Send ERP as well; this will save us an entire register fetch in some cases. */ | 1008 | /* Send ERP as well; this will save us an entire register fetch in some cases. */ |
1009 | read_register(ERP, ®_cont); | 1009 | read_register(ERP, ®_cont); |
1010 | ptr = pack_hex_byte(ERP); | 1010 | ptr = pack_hex_byte(ptr, ERP); |
1011 | *ptr++ = ':'; | 1011 | *ptr++ = ':'; |
1012 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[ERP]); | 1012 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[ERP]); |
1013 | *ptr++ = ';'; | 1013 | *ptr++ = ';'; |