Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
4b3db1cd
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,发现更多精彩内容 >>
提交
4b3db1cd
编写于
4月 11, 2013
作者:
B
Benoît Thébaudeau
提交者:
Albert ARIBAUD
4月 12, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
arm: relocate_code(): Remove useless relocation offset computation
Signed-off-by:
N
Benoît Thébaudeau
<
benoit.thebaudeau@advansee.com
>
上级
1dd1276f
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
39 addition
and
66 deletion
+39
-66
arch/arm/cpu/arm1136/start.S
arch/arm/cpu/arm1136/start.S
+3
-5
arch/arm/cpu/arm1176/start.S
arch/arm/cpu/arm1176/start.S
+3
-5
arch/arm/cpu/arm720t/start.S
arch/arm/cpu/arm720t/start.S
+3
-5
arch/arm/cpu/arm920t/start.S
arch/arm/cpu/arm920t/start.S
+3
-5
arch/arm/cpu/arm925t/start.S
arch/arm/cpu/arm925t/start.S
+3
-5
arch/arm/cpu/arm926ejs/start.S
arch/arm/cpu/arm926ejs/start.S
+3
-6
arch/arm/cpu/arm946es/start.S
arch/arm/cpu/arm946es/start.S
+3
-5
arch/arm/cpu/arm_intcm/start.S
arch/arm/cpu/arm_intcm/start.S
+3
-5
arch/arm/cpu/armv7/start.S
arch/arm/cpu/armv7/start.S
+3
-5
arch/arm/cpu/ixp/start.S
arch/arm/cpu/ixp/start.S
+3
-5
arch/arm/cpu/pxa/start.S
arch/arm/cpu/pxa/start.S
+3
-5
arch/arm/cpu/s3c44b0/start.S
arch/arm/cpu/s3c44b0/start.S
+3
-5
arch/arm/cpu/sa1100/start.S
arch/arm/cpu/sa1100/start.S
+3
-5
未找到文件。
arch/arm/cpu/arm1136/start.S
浏览文件 @
4b3db1cd
...
...
@@ -185,16 +185,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_image_copy_end_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -203,7 +202,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/arm1176/start.S
浏览文件 @
4b3db1cd
...
...
@@ -248,16 +248,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -266,7 +265,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/arm720t/start.S
浏览文件 @
4b3db1cd
...
...
@@ -163,16 +163,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -181,7 +180,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/arm920t/start.S
浏览文件 @
4b3db1cd
...
...
@@ -202,16 +202,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -220,7 +219,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/arm925t/start.S
浏览文件 @
4b3db1cd
...
...
@@ -192,16 +192,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -210,7 +209,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/arm926ejs/start.S
浏览文件 @
4b3db1cd
...
...
@@ -209,17 +209,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy
loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -228,7 +226,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/arm946es/start.S
浏览文件 @
4b3db1cd
...
...
@@ -167,16 +167,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -185,7 +184,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/arm_intcm/start.S
浏览文件 @
4b3db1cd
...
...
@@ -163,16 +163,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -181,7 +180,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/armv7/start.S
浏览文件 @
4b3db1cd
...
...
@@ -175,16 +175,15 @@ ENTRY(relocate_code)
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_image_copy_end_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -192,7 +191,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/ixp/start.S
浏览文件 @
4b3db1cd
...
...
@@ -265,16 +265,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -283,7 +282,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/pxa/start.S
浏览文件 @
4b3db1cd
...
...
@@ -187,16 +187,15 @@ relocate_code:
#endif
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -205,7 +204,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/s3c44b0/start.S
浏览文件 @
4b3db1cd
...
...
@@ -148,16 +148,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -166,7 +165,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
arch/arm/cpu/sa1100/start.S
浏览文件 @
4b3db1cd
...
...
@@ -152,16 +152,15 @@ relocate_code:
mov
r6
,
r2
/*
save
addr
of
destination
*/
adr
r0
,
_start
cmp
r0
,
r6
moveq
r9
,
#
0
/*
no
relocation
.
relocation
offset
(
r9
)
=
0
*/
subs
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
beq
relocate_done
/*
skip
relocation
*/
mov
r1
,
r6
/*
r1
<-
scratch
for
copy_loop
*/
ldr
r3
,
_bss_start_ofs
add
r2
,
r0
,
r3
/*
r2
<-
source
end
address
*/
copy_loop
:
ldmia
r0
!,
{
r
9
-
r10
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
9
-
r10
}
/*
copy
to
target
address
[
r1
]
*/
ldmia
r0
!,
{
r
10
-
r11
}
/*
copy
from
source
address
[
r0
]
*/
stmia
r1
!,
{
r
10
-
r11
}
/*
copy
to
target
address
[
r1
]
*/
cmp
r0
,
r2
/*
until
source
end
address
[
r2
]
*/
blo
copy_loop
...
...
@@ -170,7 +169,6 @@ copy_loop:
*
fix
.
rel
.
dyn
relocations
*/
ldr
r0
,
_TEXT_BASE
/*
r0
<-
Text
base
*/
sub
r9
,
r6
,
r0
/*
r9
<-
relocation
offset
*/
ldr
r10
,
_dynsym_start_ofs
/*
r10
<-
sym
table
ofs
*/
add
r10
,
r10
,
r0
/*
r10
<-
sym
table
in
FLASH
*/
ldr
r2
,
_rel_dyn_start_ofs
/*
r2
<-
rel
dyn
start
ofs
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录