Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
345c52e0
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
345c52e0
编写于
8月 02, 2010
作者:
J
Jesper Nilsson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CRIS: Additional mmu settings for ARTPEC-3
Signed-off-by:
N
Jesper Nilsson
<
jesper.nilsson@axis.com
>
上级
cd4f2011
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
40 addition
and
2 deletion
+40
-2
arch/cris/arch-v32/kernel/head.S
arch/cris/arch-v32/kernel/head.S
+40
-2
未找到文件。
arch/cris/arch-v32/kernel/head.S
浏览文件 @
345c52e0
...
...
@@ -69,7 +69,13 @@ secondary_cpu_entry: /* Entry point for secondary CPUs */
;;
;; Note; 3 cycles is needed for a bank-select to take effect. Further;
;; bank 1 is the instruction MMU, bank 2 is the data MMU.
#ifndef CONFIG_ETRAX_VCS_SIM
#ifdef CONFIG_CRIS_MACH_ARTPEC3
move.d
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_e
,
8
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_c
,
4
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_d
,
5
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_b
,
0xb
),
$r0
#elif !defined(CONFIG_ETRAX_VCS_SIM)
move.d
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_e
,
8
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_c
,
4
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_b
,
0xb
),
$r0
...
...
@@ -88,7 +94,39 @@ secondary_cpu_entry: /* Entry point for secondary CPUs */
;; Enable certain page protections and setup linear mapping
;; for f,e,c,b,4,0.
#ifndef CONFIG_ETRAX_VCS_SIM
;; ARTPEC-3:
;; c,d used for linear kernel mapping, up to 512 MB
;; e used for vmalloc
;; f unused, but page mapped to get page faults
;; ETRAX FS:
;; c used for linear kernel mapping, up to 256 MB
;; d used for vmalloc
;; e,f used for memory-mapped NOR flash
#ifdef CONFIG_CRIS_MACH_ARTPEC3
move.d
REG_STATE
(
mmu
,
rw_mm_cfg
,
we
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
acc
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
ex
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
inv
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_f
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_e
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_d
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_c
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_b
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_a
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_9
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_8
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_7
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_6
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_5
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_4
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_3
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_2
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_1
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_0
,
linear
),
$r2
#elif !defined(CONFIG_ETRAX_VCS_SIM)
move.d
REG_STATE
(
mmu
,
rw_mm_cfg
,
we
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
acc
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
ex
,
on
)
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录