Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
a0e2066f
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a0e2066f
编写于
9月 21, 2009
作者:
P
Peter Tyser
提交者:
Wolfgang Denk
10月 03, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppc: Remove board.c relocation fixups
Signed-off-by:
N
Peter Tyser
<
ptyser@xes-inc.com
>
上级
24461519
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
50 deletion
+0
-50
lib_ppc/board.c
lib_ppc/board.c
+0
-50
未找到文件。
lib_ppc/board.c
浏览文件 @
a0e2066f
...
...
@@ -627,13 +627,8 @@ void board_init_f (ulong bootflag)
*/
void
board_init_r
(
gd_t
*
id
,
ulong
dest_addr
)
{
cmd_tbl_t
*
cmdtp
;
char
*
s
;
bd_t
*
bd
;
extern
void
malloc_bin_reloc
(
void
);
#ifndef CONFIG_ENV_IS_NOWHERE
extern
char
*
env_name_spec
;
#endif
ulong
malloc_start
;
#ifndef CONFIG_SYS_NO_FLASH
...
...
@@ -646,18 +641,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
gd
->
flags
|=
GD_FLG_RELOC
;
/* tell others: relocation done */
/* The Malloc area is immediately below the monitor copy in DRAM */
#if defined(CONFIG_RELOC_FIXUP_WORKS)
gd
->
reloc_off
=
0
;
malloc_start
=
dest_addr
-
TOTAL_MALLOC_LEN
;
#else
gd
->
reloc_off
=
dest_addr
-
CONFIG_SYS_MONITOR_BASE
;
malloc_start
=
CONFIG_SYS_MONITOR_BASE
+
gd
->
reloc_off
-
TOTAL_MALLOC_LEN
;
#endif
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
gd
->
cpu
+=
gd
->
reloc_off
;
#endif
#ifdef CONFIG_SERIAL_MULTI
serial_initialize
();
...
...
@@ -682,38 +666,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
monitor_flash_len
=
(
ulong
)
&
__init_end
-
dest_addr
;
/*
* We have to relocate the command table manually
*/
for
(
cmdtp
=
&
__u_boot_cmd_start
;
cmdtp
!=
&
__u_boot_cmd_end
;
cmdtp
++
)
{
ulong
addr
;
addr
=
(
ulong
)
(
cmdtp
->
cmd
)
+
gd
->
reloc_off
;
#if 0
printf ("Command \"%s\": 0x%08lx => 0x%08lx\n",
cmdtp->name, (ulong) (cmdtp->cmd), addr);
#endif
cmdtp
->
cmd
=
(
int
(
*
)(
struct
cmd_tbl_s
*
,
int
,
int
,
char
*
[]))
addr
;
addr
=
(
ulong
)(
cmdtp
->
name
)
+
gd
->
reloc_off
;
cmdtp
->
name
=
(
char
*
)
addr
;
if
(
cmdtp
->
usage
)
{
addr
=
(
ulong
)(
cmdtp
->
usage
)
+
gd
->
reloc_off
;
cmdtp
->
usage
=
(
char
*
)
addr
;
}
#ifdef CONFIG_SYS_LONGHELP
if
(
cmdtp
->
help
)
{
addr
=
(
ulong
)(
cmdtp
->
help
)
+
gd
->
reloc_off
;
cmdtp
->
help
=
(
char
*
)
addr
;
}
#endif
}
/* there are some other pointer constants we must deal with */
#ifndef CONFIG_ENV_IS_NOWHERE
env_name_spec
+=
gd
->
reloc_off
;
#endif
WATCHDOG_RESET
();
#ifdef CONFIG_LOGBUFFER
...
...
@@ -721,7 +673,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
#endif
#ifdef CONFIG_POST
post_output_backlog
();
post_reloc
();
#endif
WATCHDOG_RESET
();
...
...
@@ -752,7 +703,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
asm
(
"sync ; isync"
);
mem_malloc_init
(
malloc_start
,
TOTAL_MALLOC_LEN
);
malloc_bin_reloc
();
#if !defined(CONFIG_SYS_NO_FLASH)
puts
(
"FLASH: "
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录