Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
5f8b1178
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
5f8b1178
编写于
11月 03, 2005
作者:
R
Russell King
提交者:
Russell King
11月 03, 2005
浏览文件
操作
浏览文件
下载
差异文件
[ARM] Merge SMP tree
上级
24bcc2f4
7e5e6e9a
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
16 addition
and
2 deletion
+16
-2
arch/arm/Makefile
arch/arm/Makefile
+1
-0
arch/arm/lib/bitops.h
arch/arm/lib/bitops.h
+1
-1
arch/arm/mm/Kconfig
arch/arm/mm/Kconfig
+12
-0
include/asm-arm/mmu_context.h
include/asm-arm/mmu_context.h
+2
-1
未找到文件。
arch/arm/Makefile
浏览文件 @
5f8b1178
...
@@ -38,6 +38,7 @@ comma = ,
...
@@ -38,6 +38,7 @@ comma = ,
# macro, but instead defines a whole series of macros which makes
# macro, but instead defines a whole series of macros which makes
# testing for a specific architecture or later rather impossible.
# testing for a specific architecture or later rather impossible.
arch-$(CONFIG_CPU_32v6)
:=
-D__LINUX_ARM_ARCH__
=
6
$(
call
cc-option,-march
=
armv6,-march
=
armv5t
-Wa
$(comma)
-march
=
armv6
)
arch-$(CONFIG_CPU_32v6)
:=
-D__LINUX_ARM_ARCH__
=
6
$(
call
cc-option,-march
=
armv6,-march
=
armv5t
-Wa
$(comma)
-march
=
armv6
)
arch-$(CONFIG_CPU_32v6K)
:=
-D__LINUX_ARM_ARCH__
=
6
$(
call
cc-option,-march
=
armv6k,-march
=
armv5t
-Wa
$(comma)
-march
=
armv6k
)
arch-$(CONFIG_CPU_32v5)
:=
-D__LINUX_ARM_ARCH__
=
5
$(
call
cc-option,-march
=
armv5te,-march
=
armv4
)
arch-$(CONFIG_CPU_32v5)
:=
-D__LINUX_ARM_ARCH__
=
5
$(
call
cc-option,-march
=
armv5te,-march
=
armv4
)
arch-$(CONFIG_CPU_32v4)
:=
-D__LINUX_ARM_ARCH__
=
4
-march
=
armv4
arch-$(CONFIG_CPU_32v4)
:=
-D__LINUX_ARM_ARCH__
=
4
-march
=
armv4
arch-$(CONFIG_CPU_32v3)
:=
-D__LINUX_ARM_ARCH__
=
3
-march
=
armv3
arch-$(CONFIG_CPU_32v3)
:=
-D__LINUX_ARM_ARCH__
=
3
-march
=
armv3
...
...
arch/arm/lib/bitops.h
浏览文件 @
5f8b1178
#include <linux/config.h>
#include <linux/config.h>
#if __LINUX_ARM_ARCH__ >= 6 && defined(CONFIG_CPU_
MPCORE
)
#if __LINUX_ARM_ARCH__ >= 6 && defined(CONFIG_CPU_
32v6K
)
.
macro
bitop
,
instr
.
macro
bitop
,
instr
mov
r2
,
#
1
mov
r2
,
#
1
and
r3
,
r0
,
#
7
@
Get
bit
offset
and
r3
,
r0
,
#
7
@
Get
bit
offset
...
...
arch/arm/mm/Kconfig
浏览文件 @
5f8b1178
...
@@ -250,6 +250,18 @@ config CPU_V6
...
@@ -250,6 +250,18 @@ config CPU_V6
select CPU_COPY_V6
select CPU_COPY_V6
select CPU_TLB_V6
select CPU_TLB_V6
# ARMv6k
config CPU_32v6K
bool "Support ARM V6K processor extensions" if !SMP
depends on CPU_V6
default y if SMP
help
Say Y here if your ARMv6 processor supports the 'K' extension.
This enables the kernel to use some instructions not present
on previous processors, and as such a kernel build with this
enabled will not boot on processors with do not support these
instructions.
# Figure out what processor architecture version we should be using.
# Figure out what processor architecture version we should be using.
# This defines the compiler instruction set which depends on the machine type.
# This defines the compiler instruction set which depends on the machine type.
config CPU_32v3
config CPU_32v3
...
...
include/asm-arm/mmu_context.h
浏览文件 @
5f8b1178
...
@@ -86,6 +86,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
...
@@ -86,6 +86,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
cpu_set
(
cpu
,
next
->
cpu_vm_mask
);
cpu_set
(
cpu
,
next
->
cpu_vm_mask
);
check_context
(
next
);
check_context
(
next
);
cpu_switch_mm
(
next
->
pgd
,
next
);
cpu_switch_mm
(
next
->
pgd
,
next
);
if
(
cache_is_vivt
())
cpu_clear
(
cpu
,
prev
->
cpu_vm_mask
);
cpu_clear
(
cpu
,
prev
->
cpu_vm_mask
);
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录