More cleanup

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@202 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-04-23 20:33:45 +00:00
parent f9389fe9fb
commit 88c398ab81
2 changed files with 9 additions and 9 deletions

View file

@ -14,7 +14,7 @@ LIBS = -lgcc
sh-elf-as -o $@ $< sh-elf-as -o $@ $<
.c.o: .c.o:
sh-elf-gcc -O -I../firmware/drivers -m1 -Wall -c -o $@ $< sh-elf-gcc -O -I../firmware/drivers -m1 -Wall -Wstrict-prototypes -c -o $@ $<
$(TARGET).out: $(TARGET).elf $(TARGET).out: $(TARGET).elf
sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out

View file

@ -224,7 +224,7 @@ static void putpacket (register char *buffer);
static int computeSignal (int exceptionVector); static int computeSignal (int exceptionVector);
void handle_buserror (void); void handle_buserror (void);
void handle_exception (int exceptionVector); void handle_exception (int exceptionVector);
void init_serial(); void init_serial(void);
void serial_putc (char ch); void serial_putc (char ch);
char serial_getc (void); char serial_getc (void);
@ -365,8 +365,8 @@ int init_stack[init_stack_size] __attribute__ ((section ("stack"))) = {0};
int stub_stack[stub_stack_size] __attribute__ ((section ("stack"))) = {0}; int stub_stack[stub_stack_size] __attribute__ ((section ("stack"))) = {0};
void INIT (); void INIT (void);
void start (); void start (void);
#define CPU_BUS_ERROR_VEC 9 #define CPU_BUS_ERROR_VEC 9
#define DMA_BUS_ERROR_VEC 10 #define DMA_BUS_ERROR_VEC 10
@ -937,11 +937,11 @@ void breakpoint (void)
/* SH1/SH2 exception vector table format */ /* SH1/SH2 exception vector table format */
typedef struct typedef struct
{ {
void (*func_cold) (); void (*func_cold) (void);
int *stack_cold; int *stack_cold;
void (*func_warm) (); void (*func_warm) (void);
int *stack_warm; int *stack_warm;
void (*(handler[128 - 4])) (); void (*(handler[128 - 4])) (void);
} vec_type; } vec_type;
/* vectable is the SH1/SH2 vector table. It must be at address 0 /* vectable is the SH1/SH2 vector table. It must be at address 0
@ -1104,7 +1104,7 @@ void INIT (void)
blink(); blink();
} }
void sr() void sr(void)
{ {
/* Calling Reset does the same as pressing the button */ /* Calling Reset does the same as pressing the button */
asm (".global _Reset\n" asm (".global _Reset\n"
@ -1170,7 +1170,7 @@ void sr()
" .long _handle_exception"); " .long _handle_exception");
} }
void rr() void rr(void)
{ {
asm(" .align 2 \n" asm(" .align 2 \n"
" .global _resume\n" " .global _resume\n"