PERFORCE change 132230 for review

Kip Macy kmacy at FreeBSD.org
Mon Dec 31 22:35:04 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=132230

Change 132230 by kmacy at pandemonium:kmacy:xen31 on 2008/01/01 06:34:15

	don't use inline assembly so long as we're maintaining a separate ptom mappping

Affected files ...

.. //depot/projects/xen31/sys/i386/include/cpufunc.h#5 edit

Differences ...

==== //depot/projects/xen31/sys/i386/include/cpufunc.h#5 (text+ko) ====

@@ -417,8 +417,15 @@
 static __inline void
 load_cr3(u_int data)
 {
-
+#ifdef XEN
+	xen_load_cr3(data);
+#else
+	/*
+	 * Xen will actually trap the cr3 load - but we need to
+	 * pass it a machine address
+	 */
 	__asm __volatile("movl %0,%%cr3" : : "r" (data) : "memory");
+#endif
 }
 
 static __inline u_int


More information about the p4-projects mailing list