aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/cpudata.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-08 01:53:56 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:11:58 -0500
commit7202c55c5c57d2ad4611a751544c9368d7fba93a (patch)
tree282219004791550b35f7de50d449d96f396be8f6 /include/asm-sparc64/cpudata.h
parent3bfd6f3e77f58479ec53aa91d0b078abbb4c0868 (diff)
[SPARC64]: Add sun4v mondo queue bases to struct trap_per_cpu.
Also, correct TRAP_PER_CPU_FAULT_INFO define, it should be 0x40 not 0x20. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/cpudata.h')
-rw-r--r--include/asm-sparc64/cpudata.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/include/asm-sparc64/cpudata.h b/include/asm-sparc64/cpudata.h
index 8a171ad77274..492314b53475 100644
--- a/include/asm-sparc64/cpudata.h
+++ b/include/asm-sparc64/cpudata.h
@@ -53,15 +53,18 @@ DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
53 */ 53 */
54struct thread_info; 54struct thread_info;
55struct trap_per_cpu { 55struct trap_per_cpu {
56/* D-cache line 1 */ 56/* D-cache line 1: Basic thread information */
57 struct thread_info *thread; 57 struct thread_info *thread;
58 unsigned long pgd_paddr; 58 unsigned long pgd_paddr;
59 unsigned long __pad1[2]; 59 unsigned long __pad1[2];
60 60
61/* D-cache line 2 */ 61/* D-cache line 2: Sun4V Mondo Queue pointers */
62 unsigned long __pad2[4]; 62 unsigned long cpu_mondo_pa;
63 unsigned long dev_mondo_pa;
64 unsigned long resum_mondo_pa;
65 unsigned long nonresum_mondo_pa;
63 66
64/* Dcache lines 3 and 4 */ 67/* Dcache lines 3 and 4: Hypervisor Fault Status */
65 struct hv_fault_status fault_info; 68 struct hv_fault_status fault_info;
66} __attribute__((aligned(64))); 69} __attribute__((aligned(64)));
67extern struct trap_per_cpu trap_block[NR_CPUS]; 70extern struct trap_per_cpu trap_block[NR_CPUS];
@@ -95,11 +98,15 @@ extern struct sun4v_2insn_patch_entry __sun4v_2insn_patch,
95 98
96#endif /* !(__ASSEMBLY__) */ 99#endif /* !(__ASSEMBLY__) */
97 100
98#define TRAP_PER_CPU_THREAD 0x00 101#define TRAP_PER_CPU_THREAD 0x00
99#define TRAP_PER_CPU_PGD_PADDR 0x08 102#define TRAP_PER_CPU_PGD_PADDR 0x08
100#define TRAP_PER_CPU_FAULT_INFO 0x20 103#define TRAP_PER_CPU_CPU_MONDO_PA 0x20
104#define TRAP_PER_CPU_DEV_MONDO_PA 0x28
105#define TRAP_PER_CPU_RESUM_MONDO_PA 0x30
106#define TRAP_PER_CPU_NONRESUM_MONDO_PA 0x38
107#define TRAP_PER_CPU_FAULT_INFO 0x40
101 108
102#define TRAP_BLOCK_SZ_SHIFT 7 109#define TRAP_BLOCK_SZ_SHIFT 7
103 110
104#include <asm/scratchpad.h> 111#include <asm/scratchpad.h>
105 112