Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
362607df
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
362607df
编写于
13年前
作者:
R
Russell King
浏览文件
操作
浏览文件
下载
差异文件
Merge first four commits of 'zImage_fixes' of
git://git.linaro.org/people/nico/linux
into fixes
上级
52fe1163
ea9df3b1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
26 addition
and
12 deletion
+26
-12
arch/arm/boot/compressed/Makefile
arch/arm/boot/compressed/Makefile
+1
-1
arch/arm/boot/compressed/head.S
arch/arm/boot/compressed/head.S
+24
-11
arch/arm/boot/compressed/vmlinux.lds.in
arch/arm/boot/compressed/vmlinux.lds.in
+1
-0
未找到文件。
arch/arm/boot/compressed/Makefile
浏览文件 @
362607df
...
...
@@ -74,7 +74,7 @@ ZTEXTADDR := $(CONFIG_ZBOOT_ROM_TEXT)
ZBSSADDR
:=
$(CONFIG_ZBOOT_ROM_BSS)
else
ZTEXTADDR
:=
0
ZBSSADDR
:=
ALIGN
(
4
)
ZBSSADDR
:=
ALIGN
(
8
)
endif
SEDFLAGS
=
s/TEXT_START/
$(ZTEXTADDR)
/
;
s/BSS_START/
$(ZBSSADDR)
/
...
...
This diff is collapsed.
Click to expand it.
arch/arm/boot/compressed/head.S
浏览文件 @
362607df
...
...
@@ -179,15 +179,14 @@ not_angel:
bl
cache_on
restart
:
adr
r0
,
LC0
ldmia
r0
,
{
r1
,
r2
,
r3
,
r
5
,
r
6
,
r9
,
r11
,
r12
}
ldr
sp
,
[
r0
,
#
32
]
ldmia
r0
,
{
r1
,
r2
,
r3
,
r6
,
r9
,
r11
,
r12
}
ldr
sp
,
[
r0
,
#
28
]
/
*
*
We
might
be
running
at
a
different
address
.
We
need
*
to
fix
up
various
pointers
.
*/
sub
r0
,
r0
,
r1
@
calculate
the
delta
offset
add
r5
,
r5
,
r0
@
_start
add
r6
,
r6
,
r0
@
_edata
#ifndef CONFIG_ZBOOT_ROM
...
...
@@ -206,31 +205,40 @@ restart: adr r0, LC0
/*
*
Check
to
see
if
we
will
overwrite
ourselves
.
*
r4
=
final
kernel
address
*
r5
=
start
of
this
image
*
r9
=
size
of
decompressed
image
*
r10
=
end
of
this
image
,
including
bss
/
stack
/
malloc
space
if
non
XIP
*
We
basically
want
:
*
r4
>=
r10
->
OK
*
r4
+
image
length
<=
r5
->
OK
*
r4
-
16
k
page
directory
>=
r10
->
OK
*
r4
+
image
length
<=
current
position
(
pc
)
->
OK
*/
add
r10
,
r10
,
#
16384
cmp
r4
,
r10
bhs
wont_overwrite
add
r10
,
r4
,
r9
cmp
r10
,
r5
ARM
(
cmp
r10
,
pc
)
THUMB
(
mov
lr
,
pc
)
THUMB
(
cmp
r10
,
lr
)
bls
wont_overwrite
/*
*
Relocate
ourselves
past
the
end
of
the
decompressed
kernel
.
*
r5
=
start
of
this
image
*
r6
=
_edata
*
r10
=
end
of
the
decompressed
kernel
*
Because
we
always
copy
ahead
,
we
need
to
do
it
from
the
end
and
go
*
backward
in
case
the
source
and
destination
overlap
.
*/
/
*
Round
up
to
next
256
-
byte
boundary
.
*/
add
r10
,
r10
,
#
256
/
*
*
Bump
to
the
next
256
-
byte
boundary
with
the
size
of
*
the
relocation
code
added
.
This
avoids
overwriting
*
ourself
when
the
offset
is
small
.
*/
add
r10
,
r10
,
#((
reloc_code_end
-
restart
+
256
)
&
~
255
)
bic
r10
,
r10
,
#
255
/
*
Get
start
of
code
we
want
to
copy
and
align
it
down
.
*/
adr
r5
,
restart
bic
r5
,
r5
,
#
31
sub
r9
,
r6
,
r5
@
size
to
copy
add
r9
,
r9
,
#
31
@
rounded
up
to
a
multiple
bic
r9
,
r9
,
#
31
@
...
of
32
bytes
...
...
@@ -245,6 +253,11 @@ restart: adr r0, LC0
/
*
Preserve
offset
to
relocated
code
.
*/
sub
r6
,
r9
,
r6
#ifndef CONFIG_ZBOOT_ROM
/
*
cache_clean_flush
may
use
the
stack
,
so
relocate
it
*/
add
sp
,
sp
,
r6
#endif
bl
cache_clean_flush
adr
r0
,
BSYM
(
restart
)
...
...
@@ -333,7 +346,6 @@ not_relocated: mov r0, #0
LC0
:
.
word
LC0
@
r1
.
word
__bss_start
@
r2
.
word
_end
@
r3
.
word
_start
@
r5
.
word
_edata
@
r6
.
word
_image_size
@
r9
.
word
_got_start
@
r11
...
...
@@ -1062,6 +1074,7 @@ memdump: mov r12, r0
#endif
.
ltorg
reloc_code_end
:
.
align
.
section
".stack"
,
"aw"
,
%
nobits
...
...
This diff is collapsed.
Click to expand it.
arch/arm/boot/compressed/vmlinux.lds.in
浏览文件 @
362607df
...
...
@@ -54,6 +54,7 @@ SECTIONS
.bss : { *(.bss) }
_end = .;
. = ALIGN(8); /* the stack must be 64-bit aligned */
.stack : { *(.stack) }
.stab 0 : { *(.stab) }
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部