修订版 | d8da1c402e125dc9f7676293f69abaa0d1207179 (tree) |
---|---|
时间 | 2020-07-26 17:53:46 |
作者 | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
Add RXv2 support
@@ -21,4 +21,4 @@ | ||
21 | 21 | # |
22 | 22 | # |
23 | 23 | USE_PRIVATE_LIBGCC = $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) |
24 | -PLATFORM_RELFLAGS += -ffixed-r8 | |
24 | +PLATFORM_RELFLAGS += -ffixed-r12 |
@@ -22,6 +22,7 @@ | ||
22 | 22 | |
23 | 23 | #include <common.h> |
24 | 24 | #include <command.h> |
25 | +#include <irq_func.h> | |
25 | 26 | #include <asm/processor.h> |
26 | 27 | #include <asm/io.h> |
27 | 28 | #include <asm/sections.h> |
@@ -48,7 +49,7 @@ int cleanup_before_linux(void) | ||
48 | 49 | return 0; |
49 | 50 | } |
50 | 51 | |
51 | -int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) | |
52 | +int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]) | |
52 | 53 | { |
53 | 54 | disable_interrupts(); |
54 | 55 | outw(0xa501, 0x000800c2); |
@@ -71,7 +71,11 @@ _start: | ||
71 | 71 | mov.l #_etext,r2 |
72 | 72 | smovf |
73 | 73 | #endif |
74 | - mov.l #0,r1 | |
74 | + mov r0,r1 | |
75 | + bsr board_init_f_alloc_reserve | |
76 | + mov r1,r0 | |
77 | + bsr board_init_f_init_reserve | |
78 | + mov #0,r1 | |
75 | 79 | bsr board_init_f |
76 | 80 | |
77 | 81 | bra . |