aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/cpudata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/cpudata.h')
-rw-r--r--include/asm-sparc64/cpudata.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-sparc64/cpudata.h b/include/asm-sparc64/cpudata.h
index 998145b92653..a3dc4afc4b21 100644
--- a/include/asm-sparc64/cpudata.h
+++ b/include/asm-sparc64/cpudata.h
@@ -6,6 +6,8 @@
6#ifndef _SPARC64_CPUDATA_H 6#ifndef _SPARC64_CPUDATA_H
7#define _SPARC64_CPUDATA_H 7#define _SPARC64_CPUDATA_H
8 8
9#include <asm/hypervisor.h>
10
9#ifndef __ASSEMBLY__ 11#ifndef __ASSEMBLY__
10 12
11#include <linux/percpu.h> 13#include <linux/percpu.h>
@@ -57,6 +59,9 @@ struct trap_per_cpu {
57 59
58/* D-cache line 2 */ 60/* D-cache line 2 */
59 unsigned long __pad2[4]; 61 unsigned long __pad2[4];
62
63/* Dcache lines 3 and 4 */
64 struct hv_fault_status fault_info;
60} __attribute__((aligned(64))); 65} __attribute__((aligned(64)));
61extern struct trap_per_cpu trap_block[NR_CPUS]; 66extern struct trap_per_cpu trap_block[NR_CPUS];
62extern void init_cur_cpu_trap(void); 67extern void init_cur_cpu_trap(void);
@@ -88,8 +93,9 @@ extern struct gl_2insn_patch_entry __gl_2insn_patch, __gl_2insn_patch_end;
88 93
89#define TRAP_PER_CPU_THREAD 0x00 94#define TRAP_PER_CPU_THREAD 0x00
90#define TRAP_PER_CPU_PGD_PADDR 0x08 95#define TRAP_PER_CPU_PGD_PADDR 0x08
96#define TRAP_PER_CPU_FAULT_INFO 0x20
91 97
92#define TRAP_BLOCK_SZ_SHIFT 6 98#define TRAP_BLOCK_SZ_SHIFT 7
93 99
94#include <asm/scratchpad.h> 100#include <asm/scratchpad.h>
95 101