diff options
-rw-r--r-- | gdb/Makefile | 2 | ||||
-rw-r--r-- | gdb/sh-stub.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/gdb/Makefile b/gdb/Makefile index f61088effc..e4a3154a52 100644 --- a/gdb/Makefile +++ b/gdb/Makefile | |||
@@ -14,7 +14,7 @@ LIBS = -lgcc | |||
14 | sh-elf-as -o $@ $< | 14 | sh-elf-as -o $@ $< |
15 | 15 | ||
16 | .c.o: | 16 | .c.o: |
17 | sh-elf-gcc -O -I../firmware/drivers -m1 -Wall -c -o $@ $< | 17 | sh-elf-gcc -O -I../firmware/drivers -m1 -Wall -Wstrict-prototypes -c -o $@ $< |
18 | 18 | ||
19 | $(TARGET).out: $(TARGET).elf | 19 | $(TARGET).out: $(TARGET).elf |
20 | sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out | 20 | sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out |
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); | |||
224 | static int computeSignal (int exceptionVector); | 224 | static int computeSignal (int exceptionVector); |
225 | void handle_buserror (void); | 225 | void handle_buserror (void); |
226 | void handle_exception (int exceptionVector); | 226 | void handle_exception (int exceptionVector); |
227 | void init_serial(); | 227 | void init_serial(void); |
228 | 228 | ||
229 | void serial_putc (char ch); | 229 | void serial_putc (char ch); |
230 | char serial_getc (void); | 230 | char serial_getc (void); |
@@ -365,8 +365,8 @@ int init_stack[init_stack_size] __attribute__ ((section ("stack"))) = {0}; | |||
365 | int stub_stack[stub_stack_size] __attribute__ ((section ("stack"))) = {0}; | 365 | int stub_stack[stub_stack_size] __attribute__ ((section ("stack"))) = {0}; |
366 | 366 | ||
367 | 367 | ||
368 | void INIT (); | 368 | void INIT (void); |
369 | void start (); | 369 | void 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 */ |
938 | typedef struct | 938 | typedef 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 | ||
1107 | void sr() | 1107 | void 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 | ||
1173 | void rr() | 1173 | void rr(void) |
1174 | { | 1174 | { |
1175 | asm(" .align 2 \n" | 1175 | asm(" .align 2 \n" |
1176 | " .global _resume\n" | 1176 | " .global _resume\n" |