Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
82497789
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看板
提交
82497789
编写于
4月 01, 2009
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sparc64: Use BUILD_BUG_ON() in trap_init().
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
5a5488d3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
91 addition
and
80 deletion
+91
-80
arch/sparc/kernel/traps_64.c
arch/sparc/kernel/traps_64.c
+91
-80
未找到文件。
arch/sparc/kernel/traps_64.c
浏览文件 @
82497789
...
...
@@ -2531,86 +2531,97 @@ extern void tsb_config_offsets_are_bolixed_dave(void);
void
__init
trap_init
(
void
)
{
/* Compile time sanity check. */
if
(
TI_TASK
!=
offsetof
(
struct
thread_info
,
task
)
||
TI_FLAGS
!=
offsetof
(
struct
thread_info
,
flags
)
||
TI_CPU
!=
offsetof
(
struct
thread_info
,
cpu
)
||
TI_FPSAVED
!=
offsetof
(
struct
thread_info
,
fpsaved
)
||
TI_KSP
!=
offsetof
(
struct
thread_info
,
ksp
)
||
TI_FAULT_ADDR
!=
offsetof
(
struct
thread_info
,
fault_address
)
||
TI_KREGS
!=
offsetof
(
struct
thread_info
,
kregs
)
||
TI_UTRAPS
!=
offsetof
(
struct
thread_info
,
utraps
)
||
TI_EXEC_DOMAIN
!=
offsetof
(
struct
thread_info
,
exec_domain
)
||
TI_REG_WINDOW
!=
offsetof
(
struct
thread_info
,
reg_window
)
||
TI_RWIN_SPTRS
!=
offsetof
(
struct
thread_info
,
rwbuf_stkptrs
)
||
TI_GSR
!=
offsetof
(
struct
thread_info
,
gsr
)
||
TI_XFSR
!=
offsetof
(
struct
thread_info
,
xfsr
)
||
TI_USER_CNTD0
!=
offsetof
(
struct
thread_info
,
user_cntd0
)
||
TI_USER_CNTD1
!=
offsetof
(
struct
thread_info
,
user_cntd1
)
||
TI_KERN_CNTD0
!=
offsetof
(
struct
thread_info
,
kernel_cntd0
)
||
TI_KERN_CNTD1
!=
offsetof
(
struct
thread_info
,
kernel_cntd1
)
||
TI_PCR
!=
offsetof
(
struct
thread_info
,
pcr_reg
)
||
TI_PRE_COUNT
!=
offsetof
(
struct
thread_info
,
preempt_count
)
||
TI_NEW_CHILD
!=
offsetof
(
struct
thread_info
,
new_child
)
||
TI_SYS_NOERROR
!=
offsetof
(
struct
thread_info
,
syscall_noerror
)
||
TI_RESTART_BLOCK
!=
offsetof
(
struct
thread_info
,
restart_block
)
||
TI_KUNA_REGS
!=
offsetof
(
struct
thread_info
,
kern_una_regs
)
||
TI_KUNA_INSN
!=
offsetof
(
struct
thread_info
,
kern_una_insn
)
||
TI_FPREGS
!=
offsetof
(
struct
thread_info
,
fpregs
)
||
(
TI_FPREGS
&
(
64
-
1
)))
thread_info_offsets_are_bolixed_dave
();
if
(
TRAP_PER_CPU_THREAD
!=
offsetof
(
struct
trap_per_cpu
,
thread
)
||
(
TRAP_PER_CPU_PGD_PADDR
!=
offsetof
(
struct
trap_per_cpu
,
pgd_paddr
))
||
(
TRAP_PER_CPU_CPU_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
cpu_mondo_pa
))
||
(
TRAP_PER_CPU_DEV_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
dev_mondo_pa
))
||
(
TRAP_PER_CPU_RESUM_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
resum_mondo_pa
))
||
(
TRAP_PER_CPU_RESUM_KBUF_PA
!=
offsetof
(
struct
trap_per_cpu
,
resum_kernel_buf_pa
))
||
(
TRAP_PER_CPU_NONRESUM_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
nonresum_mondo_pa
))
||
(
TRAP_PER_CPU_NONRESUM_KBUF_PA
!=
offsetof
(
struct
trap_per_cpu
,
nonresum_kernel_buf_pa
))
||
(
TRAP_PER_CPU_FAULT_INFO
!=
offsetof
(
struct
trap_per_cpu
,
fault_info
))
||
(
TRAP_PER_CPU_CPU_MONDO_BLOCK_PA
!=
offsetof
(
struct
trap_per_cpu
,
cpu_mondo_block_pa
))
||
(
TRAP_PER_CPU_CPU_LIST_PA
!=
offsetof
(
struct
trap_per_cpu
,
cpu_list_pa
))
||
(
TRAP_PER_CPU_TSB_HUGE
!=
offsetof
(
struct
trap_per_cpu
,
tsb_huge
))
||
(
TRAP_PER_CPU_TSB_HUGE_TEMP
!=
offsetof
(
struct
trap_per_cpu
,
tsb_huge_temp
))
||
(
TRAP_PER_CPU_IRQ_WORKLIST_PA
!=
offsetof
(
struct
trap_per_cpu
,
irq_worklist_pa
))
||
(
TRAP_PER_CPU_CPU_MONDO_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
cpu_mondo_qmask
))
||
(
TRAP_PER_CPU_DEV_MONDO_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
dev_mondo_qmask
))
||
(
TRAP_PER_CPU_RESUM_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
resum_qmask
))
||
(
TRAP_PER_CPU_NONRESUM_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
nonresum_qmask
))
||
(
TRAP_PER_CPU_PER_CPU_BASE
!=
offsetof
(
struct
trap_per_cpu
,
__per_cpu_base
)))
trap_per_cpu_offsets_are_bolixed_dave
();
if
((
TSB_CONFIG_TSB
!=
offsetof
(
struct
tsb_config
,
tsb
))
||
(
TSB_CONFIG_RSS_LIMIT
!=
offsetof
(
struct
tsb_config
,
tsb_rss_limit
))
||
(
TSB_CONFIG_NENTRIES
!=
offsetof
(
struct
tsb_config
,
tsb_nentries
))
||
(
TSB_CONFIG_REG_VAL
!=
offsetof
(
struct
tsb_config
,
tsb_reg_val
))
||
(
TSB_CONFIG_MAP_VADDR
!=
offsetof
(
struct
tsb_config
,
tsb_map_vaddr
))
||
(
TSB_CONFIG_MAP_PTE
!=
offsetof
(
struct
tsb_config
,
tsb_map_pte
)))
tsb_config_offsets_are_bolixed_dave
();
BUILD_BUG_ON
(
TI_TASK
!=
offsetof
(
struct
thread_info
,
task
)
||
TI_FLAGS
!=
offsetof
(
struct
thread_info
,
flags
)
||
TI_CPU
!=
offsetof
(
struct
thread_info
,
cpu
)
||
TI_FPSAVED
!=
offsetof
(
struct
thread_info
,
fpsaved
)
||
TI_KSP
!=
offsetof
(
struct
thread_info
,
ksp
)
||
TI_FAULT_ADDR
!=
offsetof
(
struct
thread_info
,
fault_address
)
||
TI_KREGS
!=
offsetof
(
struct
thread_info
,
kregs
)
||
TI_UTRAPS
!=
offsetof
(
struct
thread_info
,
utraps
)
||
TI_EXEC_DOMAIN
!=
offsetof
(
struct
thread_info
,
exec_domain
)
||
TI_REG_WINDOW
!=
offsetof
(
struct
thread_info
,
reg_window
)
||
TI_RWIN_SPTRS
!=
offsetof
(
struct
thread_info
,
rwbuf_stkptrs
)
||
TI_GSR
!=
offsetof
(
struct
thread_info
,
gsr
)
||
TI_XFSR
!=
offsetof
(
struct
thread_info
,
xfsr
)
||
TI_USER_CNTD0
!=
offsetof
(
struct
thread_info
,
user_cntd0
)
||
TI_USER_CNTD1
!=
offsetof
(
struct
thread_info
,
user_cntd1
)
||
TI_KERN_CNTD0
!=
offsetof
(
struct
thread_info
,
kernel_cntd0
)
||
TI_KERN_CNTD1
!=
offsetof
(
struct
thread_info
,
kernel_cntd1
)
||
TI_PCR
!=
offsetof
(
struct
thread_info
,
pcr_reg
)
||
TI_PRE_COUNT
!=
offsetof
(
struct
thread_info
,
preempt_count
)
||
TI_NEW_CHILD
!=
offsetof
(
struct
thread_info
,
new_child
)
||
TI_SYS_NOERROR
!=
offsetof
(
struct
thread_info
,
syscall_noerror
)
||
TI_RESTART_BLOCK
!=
offsetof
(
struct
thread_info
,
restart_block
)
||
TI_KUNA_REGS
!=
offsetof
(
struct
thread_info
,
kern_una_regs
)
||
TI_KUNA_INSN
!=
offsetof
(
struct
thread_info
,
kern_una_insn
)
||
TI_FPREGS
!=
offsetof
(
struct
thread_info
,
fpregs
)
||
(
TI_FPREGS
&
(
64
-
1
)));
BUILD_BUG_ON
(
TRAP_PER_CPU_THREAD
!=
offsetof
(
struct
trap_per_cpu
,
thread
)
||
(
TRAP_PER_CPU_PGD_PADDR
!=
offsetof
(
struct
trap_per_cpu
,
pgd_paddr
))
||
(
TRAP_PER_CPU_CPU_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
cpu_mondo_pa
))
||
(
TRAP_PER_CPU_DEV_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
dev_mondo_pa
))
||
(
TRAP_PER_CPU_RESUM_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
resum_mondo_pa
))
||
(
TRAP_PER_CPU_RESUM_KBUF_PA
!=
offsetof
(
struct
trap_per_cpu
,
resum_kernel_buf_pa
))
||
(
TRAP_PER_CPU_NONRESUM_MONDO_PA
!=
offsetof
(
struct
trap_per_cpu
,
nonresum_mondo_pa
))
||
(
TRAP_PER_CPU_NONRESUM_KBUF_PA
!=
offsetof
(
struct
trap_per_cpu
,
nonresum_kernel_buf_pa
))
||
(
TRAP_PER_CPU_FAULT_INFO
!=
offsetof
(
struct
trap_per_cpu
,
fault_info
))
||
(
TRAP_PER_CPU_CPU_MONDO_BLOCK_PA
!=
offsetof
(
struct
trap_per_cpu
,
cpu_mondo_block_pa
))
||
(
TRAP_PER_CPU_CPU_LIST_PA
!=
offsetof
(
struct
trap_per_cpu
,
cpu_list_pa
))
||
(
TRAP_PER_CPU_TSB_HUGE
!=
offsetof
(
struct
trap_per_cpu
,
tsb_huge
))
||
(
TRAP_PER_CPU_TSB_HUGE_TEMP
!=
offsetof
(
struct
trap_per_cpu
,
tsb_huge_temp
))
||
(
TRAP_PER_CPU_IRQ_WORKLIST_PA
!=
offsetof
(
struct
trap_per_cpu
,
irq_worklist_pa
))
||
(
TRAP_PER_CPU_CPU_MONDO_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
cpu_mondo_qmask
))
||
(
TRAP_PER_CPU_DEV_MONDO_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
dev_mondo_qmask
))
||
(
TRAP_PER_CPU_RESUM_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
resum_qmask
))
||
(
TRAP_PER_CPU_NONRESUM_QMASK
!=
offsetof
(
struct
trap_per_cpu
,
nonresum_qmask
))
||
(
TRAP_PER_CPU_PER_CPU_BASE
!=
offsetof
(
struct
trap_per_cpu
,
__per_cpu_base
)));
BUILD_BUG_ON
((
TSB_CONFIG_TSB
!=
offsetof
(
struct
tsb_config
,
tsb
))
||
(
TSB_CONFIG_RSS_LIMIT
!=
offsetof
(
struct
tsb_config
,
tsb_rss_limit
))
||
(
TSB_CONFIG_NENTRIES
!=
offsetof
(
struct
tsb_config
,
tsb_nentries
))
||
(
TSB_CONFIG_REG_VAL
!=
offsetof
(
struct
tsb_config
,
tsb_reg_val
))
||
(
TSB_CONFIG_MAP_VADDR
!=
offsetof
(
struct
tsb_config
,
tsb_map_vaddr
))
||
(
TSB_CONFIG_MAP_PTE
!=
offsetof
(
struct
tsb_config
,
tsb_map_pte
)));
/* Attach to the address space of init_task. On SMP we
* do this in smp.c:smp_callin for other cpus.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录