Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
80924ac5
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看板
提交
80924ac5
编写于
10月 04, 2010
作者:
R
Russell King
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: cleanup lookup_machine_type data and ensure these are placed in __HEAD
Signed-off-by:
N
Russell King
<
rmk+kernel@arm.linux.org.uk
>
上级
c083c660
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
11 deletion
+15
-11
arch/arm/kernel/head-common.S
arch/arm/kernel/head-common.S
+15
-11
未找到文件。
arch/arm/kernel/head-common.S
浏览文件 @
80924ac5
...
...
@@ -24,6 +24,7 @@
*
and
hope
for
the
best
(
useful
if
bootloader
fails
to
pass
a
proper
*
machine
ID
for
example
)
.
*/
__HEAD
__error_a
:
#ifdef CONFIG_DEBUG_LL
mov
r4
,
r1
@
preserve
machine
ID
...
...
@@ -33,7 +34,7 @@ __error_a:
bl
printhex8
adr
r0
,
str_a2
bl
printascii
adr
r3
,
4
f
adr
r3
,
__lookup_machine_type_data
ldmia
r3
,
{
r4
,
r5
,
r6
}
@
get
machine
desc
list
sub
r4
,
r3
,
r4
@
get
offset
between
virt
&
phys
add
r5
,
r5
,
r4
@
convert
virt
addresses
to
...
...
@@ -61,15 +62,6 @@ str_a3: .asciz "\nPlease check your kernel config and/or bootloader.\n"
.
align
#endif
/*
*
Look
in
<
asm
/
procinfo
.
h
>
and
arch
/
arm
/
kernel
/
arch
.
[
ch
]
for
*
more
information
about
the
__proc_info
and
__arch_info
structures
.
*/
.
align
2
4
:
.
long
.
.
long
__arch_info_begin
.
long
__arch_info_end
/*
*
Lookup
machine
architecture
in
the
linker
-
build
list
of
architectures
.
*
Note
that
we
can
't use the absolute addresses for the __arch_info
...
...
@@ -82,7 +74,7 @@ str_a3: .asciz "\nPlease check your kernel config and/or bootloader.\n"
*
r5
=
mach_info
pointer
in
physical
address
space
*/
__lookup_machine_type
:
adr
r3
,
4
b
adr
r3
,
__lookup_machine_type_data
ldmia
r3
,
{
r4
,
r5
,
r6
}
sub
r3
,
r3
,
r4
@
get
offset
between
virt
&
phys
add
r5
,
r5
,
r3
@
convert
virt
addresses
to
...
...
@@ -97,6 +89,18 @@ __lookup_machine_type:
2
:
mov
pc
,
lr
ENDPROC
(
__lookup_machine_type
)
/*
*
Look
in
arch
/
arm
/
kernel
/
arch
.
[
ch
]
for
information
about
the
*
__arch_info
structures
.
*/
.
align
2
.
type
__lookup_machine_type_data
,
%
object
__lookup_machine_type_data
:
.
long
.
.
long
__arch_info_begin
.
long
__arch_info_end
.
size
__lookup_machine_type_data
,
.
-
__lookup_machine_type_data
/*
Determine
validity
of
the
r2
atags
pointer
.
The
heuristic
requires
*
that
the
pointer
be
aligned
,
in
the
first
16
k
of
physical
RAM
and
*
that
the
ATAG_CORE
marker
is
first
and
present
.
Future
revisions
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录