• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版d8da1c402e125dc9f7676293f69abaa0d1207179 (tree)
时间2020-07-26 17:53:46
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

Add RXv2 support

更改概述

差异

--- a/arch/rx/cpu/rxv2/config.mk
+++ b/arch/rx/cpu/rxv2/config.mk
@@ -21,4 +21,4 @@
2121 #
2222 #
2323 USE_PRIVATE_LIBGCC = $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`)
24-PLATFORM_RELFLAGS += -ffixed-r8
24+PLATFORM_RELFLAGS += -ffixed-r12
--- a/arch/rx/cpu/rxv2/cpu.c
+++ b/arch/rx/cpu/rxv2/cpu.c
@@ -22,6 +22,7 @@
2222
2323 #include <common.h>
2424 #include <command.h>
25+#include <irq_func.h>
2526 #include <asm/processor.h>
2627 #include <asm/io.h>
2728 #include <asm/sections.h>
@@ -48,7 +49,7 @@ int cleanup_before_linux(void)
4849 return 0;
4950 }
5051
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[])
5253 {
5354 disable_interrupts();
5455 outw(0xa501, 0x000800c2);
--- a/arch/rx/cpu/rxv2/start.S
+++ b/arch/rx/cpu/rxv2/start.S
@@ -71,7 +71,11 @@ _start:
7171 mov.l #_etext,r2
7272 smovf
7373 #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
7579 bsr board_init_f
7680
7781 bra .