diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-06 03:34:33 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-11-06 21:13:55 -0500 |
commit | 808bde2537b6c683af25a2e911c1d88dc80a445e (patch) | |
tree | 0bae142d7ba521da7308fe8615559598eb73d4e0 /arch/sh/kernel/kgdb_stub.c | |
parent | 98c6942975dc73138df61070dd8cfbcbe67f3d96 (diff) |
sh: Fix up kgdb build with modular sh-sci.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/kgdb_stub.c')
-rw-r--r-- | arch/sh/kernel/kgdb_stub.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/sh/kernel/kgdb_stub.c b/arch/sh/kernel/kgdb_stub.c index 2fdc700dfd6e..d453c3a1c79f 100644 --- a/arch/sh/kernel/kgdb_stub.c +++ b/arch/sh/kernel/kgdb_stub.c | |||
@@ -102,6 +102,7 @@ | |||
102 | #include <linux/init.h> | 102 | #include <linux/init.h> |
103 | #include <linux/console.h> | 103 | #include <linux/console.h> |
104 | #include <linux/sysrq.h> | 104 | #include <linux/sysrq.h> |
105 | #include <linux/module.h> | ||
105 | #include <asm/system.h> | 106 | #include <asm/system.h> |
106 | #include <asm/cacheflush.h> | 107 | #include <asm/cacheflush.h> |
107 | #include <asm/current.h> | 108 | #include <asm/current.h> |
@@ -116,7 +117,9 @@ kgdb_debug_hook_t *kgdb_debug_hook; | |||
116 | kgdb_bus_error_hook_t *kgdb_bus_err_hook; | 117 | kgdb_bus_error_hook_t *kgdb_bus_err_hook; |
117 | 118 | ||
118 | int (*kgdb_getchar)(void); | 119 | int (*kgdb_getchar)(void); |
120 | EXPORT_SYMBOL_GPL(kgdb_getchar); | ||
119 | void (*kgdb_putchar)(int); | 121 | void (*kgdb_putchar)(int); |
122 | EXPORT_SYMBOL_GPL(kgdb_putchar); | ||
120 | 123 | ||
121 | static void put_debug_char(int c) | 124 | static void put_debug_char(int c) |
122 | { | 125 | { |
@@ -136,7 +139,7 @@ static int get_debug_char(void) | |||
136 | #define NUMREGBYTES (MAXREG*4) | 139 | #define NUMREGBYTES (MAXREG*4) |
137 | #define OUTBUFMAX (NUMREGBYTES*2+512) | 140 | #define OUTBUFMAX (NUMREGBYTES*2+512) |
138 | 141 | ||
139 | enum regs { | 142 | enum { |
140 | R0 = 0, R1, R2, R3, R4, R5, R6, R7, | 143 | R0 = 0, R1, R2, R3, R4, R5, R6, R7, |
141 | R8, R9, R10, R11, R12, R13, R14, R15, | 144 | R8, R9, R10, R11, R12, R13, R14, R15, |
142 | PC, PR, GBR, VBR, MACH, MACL, SR, | 145 | PC, PR, GBR, VBR, MACH, MACL, SR, |
@@ -176,9 +179,13 @@ int kgdb_nofault; /* Boolean to ignore bus errs (i.e. in GDB) */ | |||
176 | 179 | ||
177 | /* SCI/UART settings, used in kgdb_console_setup() */ | 180 | /* SCI/UART settings, used in kgdb_console_setup() */ |
178 | int kgdb_portnum = CONFIG_KGDB_DEFPORT; | 181 | int kgdb_portnum = CONFIG_KGDB_DEFPORT; |
182 | EXPORT_SYMBOL_GPL(kgdb_portnum); | ||
179 | int kgdb_baud = CONFIG_KGDB_DEFBAUD; | 183 | int kgdb_baud = CONFIG_KGDB_DEFBAUD; |
184 | EXPORT_SYMBOL_GPL(kgdb_baud); | ||
180 | char kgdb_parity = CONFIG_KGDB_DEFPARITY; | 185 | char kgdb_parity = CONFIG_KGDB_DEFPARITY; |
186 | EXPORT_SYMBOL_GPL(kgdb_parity); | ||
181 | char kgdb_bits = CONFIG_KGDB_DEFBITS; | 187 | char kgdb_bits = CONFIG_KGDB_DEFBITS; |
188 | EXPORT_SYMBOL_GPL(kgdb_bits); | ||
182 | 189 | ||
183 | /* Jump buffer for setjmp/longjmp */ | 190 | /* Jump buffer for setjmp/longjmp */ |
184 | static jmp_buf rem_com_env; | 191 | static jmp_buf rem_com_env; |