Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
73fa1362
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看板
提交
73fa1362
编写于
3月 30, 2017
作者:
I
Ingo Molnar
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'x86/cpu' into x86/mm, before applying dependent patch
Signed-off-by:
N
Ingo Molnar
<
mingo@kernel.org
>
上级
fdd3d8ce
6415813b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
24 deletion
+13
-24
arch/x86/include/asm/processor.h
arch/x86/include/asm/processor.h
+2
-9
arch/x86/kernel/cpu/proc.c
arch/x86/kernel/cpu/proc.c
+2
-3
arch/x86/kernel/setup.c
arch/x86/kernel/setup.c
+4
-7
arch/x86/mm/init_32.c
arch/x86/mm/init_32.c
+5
-4
arch/x86/xen/enlighten.c
arch/x86/xen/enlighten.c
+0
-1
未找到文件。
arch/x86/include/asm/processor.h
浏览文件 @
73fa1362
...
...
@@ -80,7 +80,7 @@ extern u16 __read_mostly tlb_lld_1g[NR_INFO];
/*
* CPU type and hardware bug flags. Kept separately for each CPU.
* Members of this structure are referenced in head.S, so think twice
* Members of this structure are referenced in head
_32
.S, so think twice
* before touching them. [mj]
*/
...
...
@@ -89,14 +89,7 @@ struct cpuinfo_x86 {
__u8
x86_vendor
;
/* CPU vendor */
__u8
x86_model
;
__u8
x86_mask
;
#ifdef CONFIG_X86_32
char
wp_works_ok
;
/* It doesn't on 386's */
/* Problems on some 486Dx4's and old 386's: */
char
rfu
;
char
pad0
;
char
pad1
;
#else
#ifdef CONFIG_X86_64
/* Number of 4K pages in DTLB/ITLB combined(in pages): */
int
x86_tlbsize
;
#endif
...
...
arch/x86/kernel/cpu/proc.c
浏览文件 @
73fa1362
...
...
@@ -31,14 +31,13 @@ static void show_cpuinfo_misc(struct seq_file *m, struct cpuinfo_x86 *c)
"fpu
\t\t
: %s
\n
"
"fpu_exception
\t
: %s
\n
"
"cpuid level
\t
: %d
\n
"
"wp
\t\t
:
%
s
\n
"
,
"wp
\t\t
:
ye
s
\n
"
,
static_cpu_has_bug
(
X86_BUG_FDIV
)
?
"yes"
:
"no"
,
static_cpu_has_bug
(
X86_BUG_F00F
)
?
"yes"
:
"no"
,
static_cpu_has_bug
(
X86_BUG_COMA
)
?
"yes"
:
"no"
,
static_cpu_has
(
X86_FEATURE_FPU
)
?
"yes"
:
"no"
,
static_cpu_has
(
X86_FEATURE_FPU
)
?
"yes"
:
"no"
,
c
->
cpuid_level
,
c
->
wp_works_ok
?
"yes"
:
"no"
);
c
->
cpuid_level
);
}
#else
static
void
show_cpuinfo_misc
(
struct
seq_file
*
m
,
struct
cpuinfo_x86
*
c
)
...
...
arch/x86/kernel/setup.c
浏览文件 @
73fa1362
...
...
@@ -173,14 +173,11 @@ static struct resource bss_resource = {
#ifdef CONFIG_X86_32
/* cpu data as detected by the assembly code in head.S */
struct
cpuinfo_x86
new_cpu_data
=
{
.
wp_works_ok
=
-
1
,
};
/* cpu data as detected by the assembly code in head_32.S */
struct
cpuinfo_x86
new_cpu_data
;
/* common cpu data for all cpus */
struct
cpuinfo_x86
boot_cpu_data
__read_mostly
=
{
.
wp_works_ok
=
-
1
,
};
struct
cpuinfo_x86
boot_cpu_data
__read_mostly
;
EXPORT_SYMBOL
(
boot_cpu_data
);
unsigned
int
def_to_bigsmp
;
...
...
arch/x86/mm/init_32.c
浏览文件 @
73fa1362
...
...
@@ -726,15 +726,17 @@ void __init paging_init(void)
*/
static
void
__init
test_wp_bit
(
void
)
{
int
wp_works_ok
;
printk
(
KERN_INFO
"Checking if this processor honours the WP bit even in supervisor mode..."
);
/* Any page-aligned address will do, the test is non-destructive */
__set_fixmap
(
FIX_WP_TEST
,
__pa
(
&
swapper_pg_dir
),
PAGE_KERNEL_RO
);
boot_cpu_data
.
wp_works_ok
=
do_test_wp_bit
();
wp_works_ok
=
do_test_wp_bit
();
clear_fixmap
(
FIX_WP_TEST
);
if
(
!
boot_cpu_data
.
wp_works_ok
)
{
if
(
!
wp_works_ok
)
{
printk
(
KERN_CONT
"No.
\n
"
);
panic
(
"Linux doesn't support CPUs with broken WP."
);
}
else
{
...
...
@@ -821,8 +823,7 @@ void __init mem_init(void)
BUG_ON
(
VMALLOC_START
>=
VMALLOC_END
);
BUG_ON
((
unsigned
long
)
high_memory
>
VMALLOC_START
);
if
(
boot_cpu_data
.
wp_works_ok
<
0
)
test_wp_bit
();
test_wp_bit
();
}
#ifdef CONFIG_MEMORY_HOTPLUG
...
...
arch/x86/xen/enlighten.c
浏览文件 @
73fa1362
...
...
@@ -1595,7 +1595,6 @@ asmlinkage __visible void __init xen_start_kernel(void)
/* set up basic CPUID stuff */
cpu_detect
(
&
new_cpu_data
);
set_cpu_cap
(
&
new_cpu_data
,
X86_FEATURE_FPU
);
new_cpu_data
.
wp_works_ok
=
1
;
new_cpu_data
.
x86_capability
[
CPUID_1_EDX
]
=
cpuid_edx
(
1
);
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录