Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
81b66995
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
81b66995
编写于
9月 17, 2008
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Consolidate struct sh_cpuinfo definitions across _32/_64 split.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
8a80a5e9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
39 addition
and
61 deletion
+39
-61
arch/sh/include/asm/processor.h
arch/sh/include/asm/processor.h
+39
-1
arch/sh/include/asm/processor_32.h
arch/sh/include/asm/processor_32.h
+0
-19
arch/sh/include/asm/processor_64.h
arch/sh/include/asm/processor_64.h
+0
-41
未找到文件。
arch/sh/include/asm/processor.h
浏览文件 @
81b66995
...
...
@@ -3,6 +3,7 @@
#include <asm/cpu-features.h>
#include <asm/segment.h>
#include <asm/cache.h>
#ifndef __ASSEMBLY__
/*
...
...
@@ -43,8 +44,45 @@ enum cpu_type {
CPU_SH_NONE
};
/*
* TLB information structure
*
* Defined for both I and D tlb, per-processor.
*/
struct
tlb_info
{
unsigned
long
long
next
;
unsigned
long
long
first
;
unsigned
long
long
last
;
unsigned
int
entries
;
unsigned
int
step
;
unsigned
long
flags
;
};
struct
sh_cpuinfo
{
unsigned
int
type
;
int
cut_major
,
cut_minor
;
unsigned
long
loops_per_jiffy
;
unsigned
long
asid_cache
;
struct
cache_info
icache
;
/* Primary I-cache */
struct
cache_info
dcache
;
/* Primary D-cache */
struct
cache_info
scache
;
/* Secondary cache */
/* TLB info */
struct
tlb_info
itlb
;
struct
tlb_info
dtlb
;
unsigned
long
flags
;
}
__attribute__
((
aligned
(
L1_CACHE_BYTES
)));
extern
struct
sh_cpuinfo
cpu_data
[];
#define boot_cpu_data cpu_data[0]
#define current_cpu_data cpu_data[smp_processor_id()]
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
/* Forward decl */
struct
sh_cpuinfo
;
struct
seq_operations
;
extern
struct
pt_regs
fake_swapper_regs
;
...
...
arch/sh/include/asm/processor_32.h
浏览文件 @
81b66995
...
...
@@ -13,7 +13,6 @@
#include <linux/linkage.h>
#include <asm/page.h>
#include <asm/types.h>
#include <asm/cache.h>
#include <asm/ptrace.h>
/*
...
...
@@ -27,24 +26,6 @@
#define CCN_CVR 0xff000040
#define CCN_PRR 0xff000044
struct
sh_cpuinfo
{
unsigned
int
type
;
int
cut_major
,
cut_minor
;
unsigned
long
loops_per_jiffy
;
unsigned
long
asid_cache
;
struct
cache_info
icache
;
/* Primary I-cache */
struct
cache_info
dcache
;
/* Primary D-cache */
struct
cache_info
scache
;
/* Secondary cache */
unsigned
long
flags
;
}
__attribute__
((
aligned
(
L1_CACHE_BYTES
)));
extern
struct
sh_cpuinfo
cpu_data
[];
#define boot_cpu_data cpu_data[0]
#define current_cpu_data cpu_data[smp_processor_id()]
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
asmlinkage
void
__init
sh_cpu_init
(
void
);
/*
...
...
arch/sh/include/asm/processor_64.h
浏览文件 @
81b66995
...
...
@@ -17,7 +17,6 @@
#include <linux/compiler.h>
#include <asm/page.h>
#include <asm/types.h>
#include <asm/cache.h>
#include <asm/ptrace.h>
#include <cpu/registers.h>
...
...
@@ -36,46 +35,6 @@ __asm__("gettr tr0, %1\n\t" \
: "1" (__dummy)); \
pc; })
/*
* TLB information structure
*
* Defined for both I and D tlb, per-processor.
*/
struct
tlb_info
{
unsigned
long
long
next
;
unsigned
long
long
first
;
unsigned
long
long
last
;
unsigned
int
entries
;
unsigned
int
step
;
unsigned
long
flags
;
};
struct
sh_cpuinfo
{
enum
cpu_type
type
;
unsigned
long
loops_per_jiffy
;
unsigned
long
asid_cache
;
unsigned
int
cpu_clock
,
master_clock
,
bus_clock
,
module_clock
;
/* Cache info */
struct
cache_info
icache
;
struct
cache_info
dcache
;
struct
cache_info
scache
;
/* TLB info */
struct
tlb_info
itlb
;
struct
tlb_info
dtlb
;
unsigned
long
flags
;
};
extern
struct
sh_cpuinfo
cpu_data
[];
#define boot_cpu_data cpu_data[0]
#define current_cpu_data cpu_data[smp_processor_id()]
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
#endif
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录