summaryrefslogtreecommitdiff
path: root/src/cimarron.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cimarron.c')
-rw-r--r--src/cimarron.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cimarron.c b/src/cimarron.c
index 76d8615..65df4d2 100644
--- a/src/cimarron.c
+++ b/src/cimarron.c
@@ -130,8 +130,9 @@
#define CIMARRON_INCLUDE_MSR_MACROS
#define CIMARRON_MSR_DIRECT_ASM 0
#define CIMARRON_MSR_VSA_IO 0
-#define CIMARRON_MSR_ABSTRACTED_ASM 1
+#define CIMARRON_MSR_ABSTRACTED_ASM 0
#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 */
/*----------------------------------------------------------------------*/