summaryrefslogtreecommitdiff
path: root/gdb/sh-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sh-stub.c')
-rw-r--r--gdb/sh-stub.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c
index 6bd5a7ddc4..4def26b797 100644
--- a/gdb/sh-stub.c
+++ b/gdb/sh-stub.c
@@ -224,7 +224,7 @@ static void putpacket (register char *buffer);
224static int computeSignal (int exceptionVector); 224static int computeSignal (int exceptionVector);
225void handle_buserror (void); 225void handle_buserror (void);
226void handle_exception (int exceptionVector); 226void handle_exception (int exceptionVector);
227void init_serial(); 227void init_serial(void);
228 228
229void serial_putc (char ch); 229void serial_putc (char ch);
230char serial_getc (void); 230char serial_getc (void);
@@ -365,8 +365,8 @@ int init_stack[init_stack_size] __attribute__ ((section ("stack"))) = {0};
365int stub_stack[stub_stack_size] __attribute__ ((section ("stack"))) = {0}; 365int stub_stack[stub_stack_size] __attribute__ ((section ("stack"))) = {0};
366 366
367 367
368void INIT (); 368void INIT (void);
369void start (); 369void start (void);
370 370
371#define CPU_BUS_ERROR_VEC 9 371#define CPU_BUS_ERROR_VEC 9
372#define DMA_BUS_ERROR_VEC 10 372#define DMA_BUS_ERROR_VEC 10
@@ -937,11 +937,11 @@ void breakpoint (void)
937/* SH1/SH2 exception vector table format */ 937/* SH1/SH2 exception vector table format */
938typedef struct 938typedef struct
939{ 939{
940 void (*func_cold) (); 940 void (*func_cold) (void);
941 int *stack_cold; 941 int *stack_cold;
942 void (*func_warm) (); 942 void (*func_warm) (void);
943 int *stack_warm; 943 int *stack_warm;
944 void (*(handler[128 - 4])) (); 944 void (*(handler[128 - 4])) (void);
945} vec_type; 945} vec_type;
946 946
947/* vectable is the SH1/SH2 vector table. It must be at address 0 947/* vectable is the SH1/SH2 vector table. It must be at address 0
@@ -1104,7 +1104,7 @@ void INIT (void)
1104 blink(); 1104 blink();
1105} 1105}
1106 1106
1107void sr() 1107void sr(void)
1108{ 1108{
1109 /* Calling Reset does the same as pressing the button */ 1109 /* Calling Reset does the same as pressing the button */
1110 asm (".global _Reset\n" 1110 asm (".global _Reset\n"
@@ -1170,7 +1170,7 @@ void sr()
1170 " .long _handle_exception"); 1170 " .long _handle_exception");
1171} 1171}
1172 1172
1173void rr() 1173void rr(void)
1174{ 1174{
1175 asm(" .align 2 \n" 1175 asm(" .align 2 \n"
1176 " .global _resume\n" 1176 " .global _resume\n"