]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Verify all trap_per_cpu assembler offsets in trap_init()
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 8 Feb 2006 07:51:49 +0000 (23:51 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:11:59 +0000 (01:11 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/traps.c

index 1c4744c047abcc3697444b7b5c7aca24ee8c09e2..8f3fce24359dd5480dc94dae2103941f5596a9ec 100644 (file)
@@ -2182,7 +2182,18 @@ void __init trap_init(void)
                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_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_NONRESUM_MONDO_PA !=
+            offsetof(struct trap_per_cpu, nonresum_mondo_pa)) ||
+           (TRAP_PER_CPU_FAULT_INFO !=
+            offsetof(struct trap_per_cpu, fault_info)))
                trap_per_cpu_offsets_are_bolixed_dave();
 
        /* Attach to the address space of init_task.  On SMP we