summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/cpudata.h
diff options
context:
space:
mode:
authorDavid S. Miller2006-02-06 06:29:28 +0100
committerDavid S. Miller2006-03-20 10:11:48 +0100
commit936f482af1743141d637483ec10eb881537c26dc (patch)
tree913da89a4d9f4038c510c9ecf2f5957b0f6d167f /include/asm-sparc64/cpudata.h
parent[SPARC64]: Fill dead cycles on trap entry with real work. (diff)
downloadkernel-qcow2-linux-936f482af1743141d637483ec10eb881537c26dc.tar.gz
kernel-qcow2-linux-936f482af1743141d637483ec10eb881537c26dc.tar.xz
kernel-qcow2-linux-936f482af1743141d637483ec10eb881537c26dc.zip
[SPARC64]: Add initial code to twiddle %gl on trap entry/exit.
Instead of setting/clearing PSTATE_AG we have to change the %gl register value on sun4v. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/cpudata.h')
-rw-r--r--include/asm-sparc64/cpudata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-sparc64/cpudata.h b/include/asm-sparc64/cpudata.h
index 4f28a85c1043..8666440c89af 100644
--- a/include/asm-sparc64/cpudata.h
+++ b/include/asm-sparc64/cpudata.h
@@ -73,6 +73,11 @@ struct cpuid_patch_entry {
extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end;
#endif
+struct gl_1insn_patch_entry {
+ unsigned int addr;
+ unsigned int insn;
+};
+extern struct gl_1insn_patch_entry __gl_1insn_patch, __gl_1insn_patch_end;
#endif /* !(__ASSEMBLY__) */
#define TRAP_PER_CPU_THREAD 0x00