summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-04-23 20:33:45 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-04-23 20:33:45 +0000
commit88c398ab81d54c912a3db8e4c27abd1b52d7ff04 (patch)
tree462b3f066a4fb9a022be544765455263becb9353
parentf9389fe9fb7a3b1e7285d00a58bc26273c05077b (diff)
downloadrockbox-88c398ab81d54c912a3db8e4c27abd1b52d7ff04.tar.gz
rockbox-88c398ab81d54c912a3db8e4c27abd1b52d7ff04.zip
More cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@202 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--gdb/Makefile2
-rw-r--r--gdb/sh-stub.c16
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);
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"