Displaying 6 results from an estimated 6 matches for "mach_msr".
2007 Apr 18
2
[RFC, PATCH 17/24] i386 Vmi msr patch
...==========================================================
--- linux-2.6.16-rc5.orig/include/asm-i386/msr.h 2006-03-08 10:31:10.000000000 -0800
+++ linux-2.6.16-rc5/include/asm-i386/msr.h 2006-03-08 10:32:07.000000000 -0800
@@ -1,22 +1,14 @@
#ifndef __ASM_MSR_H
#define __ASM_MSR_H
+#include <mach_msr.h>
+
/*
* Access to machine-specific registers (available on 586 and better only)
* Note: the rd* operations modify the parameters directly (without using
* pointer indirection), this allows gcc to optimize better
*/
-#define rdmsr(msr,val1,val2) \
- __asm__ __volatile__("rdmsr&q...
2007 Apr 18
2
[RFC, PATCH 17/24] i386 Vmi msr patch
...==========================================================
--- linux-2.6.16-rc5.orig/include/asm-i386/msr.h 2006-03-08 10:31:10.000000000 -0800
+++ linux-2.6.16-rc5/include/asm-i386/msr.h 2006-03-08 10:32:07.000000000 -0800
@@ -1,22 +1,14 @@
#ifndef __ASM_MSR_H
#define __ASM_MSR_H
+#include <mach_msr.h>
+
/*
* Access to machine-specific registers (available on 586 and better only)
* Note: the rd* operations modify the parameters directly (without using
* pointer indirection), this allows gcc to optimize better
*/
-#define rdmsr(msr,val1,val2) \
- __asm__ __volatile__("rdmsr&q...
2007 Apr 18
3
[PATCH] abstract out bits of ldt.c
Chris Wright wrote:
>* Zachary Amsden (zach@vmware.com) wrote:
>
>
>>Does Xen assume page aligned descriptor tables? I assume from this
>>
>>
>
>Yes.
>
>
>
>>patch and snippets I have gathered from others, that is a yes, and other
>>things here imply that DT pages are not shadowed. If so, Xen itself
>>must have live segments
2007 Apr 18
3
[PATCH] abstract out bits of ldt.c
Chris Wright wrote:
>* Zachary Amsden (zach@vmware.com) wrote:
>
>
>>Does Xen assume page aligned descriptor tables? I assume from this
>>
>>
>
>Yes.
>
>
>
>>patch and snippets I have gathered from others, that is a yes, and other
>>things here imply that DT pages are not shadowed. If so, Xen itself
>>must have live segments
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...k.h 2006-03-12 19:57:48.000000000 -0800
+++ linux-2.6.16-rc6/include/asm-i386/mach-default/mach_schedclock.h 2006-03-12 19:57:48.000000000 -0800
@@ -0,0 +1,18 @@
+
+/*
+ * Machine specific sched_clock routines.
+ */
+
+#ifndef __ASM_MACH_SCHEDCLOCK_H
+#define __ASM_MACH_SCHEDCLOCK_H
+
+#include <mach_msr.h>
+
+static inline unsigned long long sched_clock_cycles(void)
+{
+ unsigned long long cycles;
+ rdtscll(cycles);
+ return cycles;
+}
+
+#endif /* __ASM_MACH_SCHEDCLOCK_H */
Index: linux-2.6.16-rc6/include/linux/kernel_stat.h
===================================================================
-...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...k.h 2006-03-12 19:57:48.000000000 -0800
+++ linux-2.6.16-rc6/include/asm-i386/mach-default/mach_schedclock.h 2006-03-12 19:57:48.000000000 -0800
@@ -0,0 +1,18 @@
+
+/*
+ * Machine specific sched_clock routines.
+ */
+
+#ifndef __ASM_MACH_SCHEDCLOCK_H
+#define __ASM_MACH_SCHEDCLOCK_H
+
+#include <mach_msr.h>
+
+static inline unsigned long long sched_clock_cycles(void)
+{
+ unsigned long long cycles;
+ rdtscll(cycles);
+ return cycles;
+}
+
+#endif /* __ASM_MACH_SCHEDCLOCK_H */
Index: linux-2.6.16-rc6/include/linux/kernel_stat.h
===================================================================
-...