Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
7e35952b
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看板
提交
7e35952b
编写于
7月 14, 2005
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move Origin crapola into a machine-specific header file.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
a0c3a5b5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
83 addition
and
37 deletion
+83
-37
arch/mips/kernel/head.S
arch/mips/kernel/head.S
+6
-37
include/asm-mips/mach-generic/kernel-entry-init.h
include/asm-mips/mach-generic/kernel-entry-init.h
+25
-0
include/asm-mips/mach-ip27/kernel-entry-init.h
include/asm-mips/mach-ip27/kernel-entry-init.h
+52
-0
未找到文件。
arch/mips/kernel/head.S
浏览文件 @
7e35952b
...
...
@@ -22,11 +22,8 @@
#include <asm/page.h>
#include <asm/mipsregs.h>
#include <asm/stackframe.h>
#ifdef CONFIG_SGI_IP27
#include <asm/sn/addrs.h>
#include <asm/sn/sn0/hubni.h>
#include <asm/sn/klkernvars.h>
#endif
#include <kernel-entry-init.h>
.
macro
ARC64_TWIDDLE_PC
#if defined(CONFIG_ARC64) || defined(CONFIG_MAPPED_KERNEL)
...
...
@@ -38,18 +35,6 @@
#endif
.
endm
#ifdef CONFIG_SGI_IP27
/
*
*
outputs
the
local
nasid
into
res
.
IP27
stuff
.
*/
.
macro
GET_NASID_ASM
res
dli
\
res
,
LOCAL_HUB_ADDR
(
NI_STATUS_REV_ID
)
ld
\
res
,
(
\
res
)
and
\
res
,
NSRI_NODEID_MASK
dsrl
\
res
,
NSRI_NODEID_SHFT
.
endm
#endif /* CONFIG_SGI_IP27 */
/
*
*
inputs
are
the
text
nasid
in
t1
,
data
nasid
in
t2
.
*/
...
...
@@ -142,13 +127,10 @@ EXPORT(_stext)
__INIT
NESTED
(
kernel_entry
,
16,
sp
)
#
kernel
entry
point
setup_c0_status_pri
#ifdef CONFIG_SGI_IP27
GET_NASID_ASM
t1
move
t2
,
t1
#
text
and
data
are
here
MAPPED_KERNEL_SETUP_TLB
#endif /* IP27 */
kernel_entry_setup
#
cpu
specific
setup
setup_c0_status_pri
ARC64_TWIDDLE_PC
...
...
@@ -185,20 +167,7 @@ NESTED(kernel_entry, 16, sp) # kernel entry point
*/
NESTED
(
smp_bootstrap
,
16,
sp
)
setup_c0_status_sec
#ifdef CONFIG_SGI_IP27
GET_NASID_ASM
t1
dli
t0
,
KLDIR_OFFSET
+
(
KLI_KERN_VARS
*
KLDIR_ENT_SIZE
)
+
\
KLDIR_OFF_POINTER
+
CAC_BASE
dsll
t1
,
NASID_SHFT
or
t0
,
t0
,
t1
ld
t0
,
0
(
t0
)
#
t0
points
to
kern_vars
struct
lh
t1
,
KV_RO_NASID_OFFSET
(
t0
)
lh
t2
,
KV_RW_NASID_OFFSET
(
t0
)
MAPPED_KERNEL_SETUP_TLB
ARC64_TWIDDLE_PC
#endif /* CONFIG_SGI_IP27 */
smp_slave_setup
j
start_secondary
END
(
smp_bootstrap
)
#endif /* CONFIG_SMP */
...
...
include/asm-mips/mach-generic/kernel-entry-init.h
0 → 100644
浏览文件 @
7e35952b
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2005 Embedded Alley Solutions, Inc
* Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
*/
#ifndef __ASM_MACH_GENERIC_KERNEL_ENTRY_H
#define __ASM_MACH_GENERIC_KERNEL_ENTRY_H
/* Intentionally empty macro, used in head.S. Override in
* arch/mips/mach-xxx/kernel-entry-init.h when necessary.
*/
.
macro
kernel_entry_setup
.
endm
/*
* Do SMP slave processor setup necessary before we can savely execute C code.
*/
.
macro
smp_slave_setup
.
endm
#endif
/* __ASM_MACH_GENERIC_KERNEL_ENTRY_H */
include/asm-mips/mach-ip27/kernel-entry-init.h
0 → 100644
浏览文件 @
7e35952b
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2000 Silicon Graphics, Inc.
* Copyright (C) 2005 Ralf Baechle <ralf@linux-mips.org>
*/
#ifndef __ASM_MACH_IP27_KERNEL_ENTRY_H
#define __ASM_MACH_IP27_KERNEL_ENTRY_H
#include <asm/sn/addrs.h>
#include <asm/sn/sn0/hubni.h>
#include <asm/sn/klkernvars.h>
/*
* Returns the local nasid into res.
*/
.
macro
GET_NASID_ASM
res
dli
\
res
,
LOCAL_HUB_ADDR
(
NI_STATUS_REV_ID
)
ld
\
res
,
(
\
res
)
and
\
res
,
NSRI_NODEID_MASK
dsrl
\
res
,
NSRI_NODEID_SHFT
.
endm
/*
* Intentionally empty macro, used in head.S. Override in
* arch/mips/mach-xxx/kernel-entry-init.h when necessary.
*/
.
macro
kernel_entry_setup
GET_NASID_ASM
t1
move
t2
,
t1
#
text
and
data
are
here
MAPPED_KERNEL_SETUP_TLB
.
endm
/*
* Do SMP slave processor setup necessary before we can savely execute C code.
*/
.
macro
smp_slave_setup
GET_NASID_ASM
t1
dli
t0
,
KLDIR_OFFSET
+
(
KLI_KERN_VARS
*
KLDIR_ENT_SIZE
)
+
\
KLDIR_OFF_POINTER
+
CAC_BASE
dsll
t1
,
NASID_SHFT
or
t0
,
t0
,
t1
ld
t0
,
0
(
t0
)
#
t0
points
to
kern_vars
struct
lh
t1
,
KV_RO_NASID_OFFSET
(
t0
)
lh
t2
,
KV_RW_NASID_OFFSET
(
t0
)
MAPPED_KERNEL_SETUP_TLB
ARC64_TWIDDLE_PC
.
endm
#endif
/* __ASM_MACH_IP27_KERNEL_ENTRY_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录