summaryrefslogtreecommitdiff
path: root/src/cimarron.c
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2007-04-11 13:37:02 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-04-11 13:37:52 -0600
commit8bfed84a1f972325cdf61876d7f7dfd0e8f0d4d5 (patch)
treef2fc2c5527a285a0cfa4d7a843026c22c6955482 /src/cimarron.c
parent2d7689990c19fd74d5fad11bcf6317a7874a6057 (diff)
Add Linux MSR suport for LX
Extend the GX MSR support to LX - this is to support the VSAless OFW, and share code.
Diffstat (limited to 'src/cimarron.c')
-rw-r--r--src/cimarron.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cimarron.c b/src/cimarron.c
index 76d8615..52da038 100644
--- a/src/cimarron.c
+++ b/src/cimarron.c
@@ -132,6 +132,7 @@
#define CIMARRON_MSR_VSA_IO 0
#define CIMARRON_MSR_ABSTRACTED_ASM 1
#define CIMARRON_MSR_KERNEL_ROUTINE 0
+#define CIMARRON_MSR_HOOKS 1
#define CIMARRON_INCLUDE_IO_MACROS
#define CIMARRON_IO_DIRECT_ACCESS 0
@@ -173,6 +174,14 @@ unsigned char *cim_vid_ptr = (unsigned char *)0;
unsigned char *cim_vip_ptr = (unsigned char *)0;
unsigned char *cim_vg_ptr = (unsigned char *)0;
+/* Define hooks for reading and writing MSRs - this is a major hack
+ * to share the MSR code with the GX code */
+
+#ifdef CIMARRON_MSR_HOOKS
+void (*cim_rdmsr)(unsigned long, unsigned long *, unsigned long *);
+void (*cim_wrmsr)(unsigned long, unsigned long, unsigned long);
+#endif
+
/*----------------------------------------------------------------------*/
/* INCLUDE RELEVANT CIMARRON HEADERS */
/*----------------------------------------------------------------------*/