diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-08 02:51:49 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:11:59 -0500 |
commit | e088ad7ca3d09c96e63f1ce411a2ccba2688bf25 (patch) | |
tree | 43156b5b25c0b91d56fbcb959e1744966880057d /arch/sparc64/kernel/traps.c | |
parent | 7202c55c5c57d2ad4611a751544c9368d7fba93a (diff) |
[SPARC64]: Verify all trap_per_cpu assembler offsets in trap_init()
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/traps.c')
-rw-r--r-- | arch/sparc64/kernel/traps.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c index 1c4744c047ab..8f3fce24359d 100644 --- a/arch/sparc64/kernel/traps.c +++ b/arch/sparc64/kernel/traps.c | |||
@@ -2182,7 +2182,18 @@ void __init trap_init(void) | |||
2182 | thread_info_offsets_are_bolixed_dave(); | 2182 | thread_info_offsets_are_bolixed_dave(); |
2183 | 2183 | ||
2184 | if (TRAP_PER_CPU_THREAD != offsetof(struct trap_per_cpu, thread) || | 2184 | if (TRAP_PER_CPU_THREAD != offsetof(struct trap_per_cpu, thread) || |
2185 | TRAP_PER_CPU_PGD_PADDR != offsetof(struct trap_per_cpu, pgd_paddr)) | 2185 | (TRAP_PER_CPU_PGD_PADDR != |
2186 | offsetof(struct trap_per_cpu, pgd_paddr)) || | ||
2187 | (TRAP_PER_CPU_CPU_MONDO_PA != | ||
2188 | offsetof(struct trap_per_cpu, cpu_mondo_pa)) || | ||
2189 | (TRAP_PER_CPU_DEV_MONDO_PA != | ||
2190 | offsetof(struct trap_per_cpu, dev_mondo_pa)) || | ||
2191 | (TRAP_PER_CPU_RESUM_MONDO_PA != | ||
2192 | offsetof(struct trap_per_cpu, resum_mondo_pa)) || | ||
2193 | (TRAP_PER_CPU_NONRESUM_MONDO_PA != | ||
2194 | offsetof(struct trap_per_cpu, nonresum_mondo_pa)) || | ||
2195 | (TRAP_PER_CPU_FAULT_INFO != | ||
2196 | offsetof(struct trap_per_cpu, fault_info))) | ||
2186 | trap_per_cpu_offsets_are_bolixed_dave(); | 2197 | trap_per_cpu_offsets_are_bolixed_dave(); |
2187 | 2198 | ||
2188 | /* Attach to the address space of init_task. On SMP we | 2199 | /* Attach to the address space of init_task. On SMP we |