Last one, now it is compiling.
----
Fixed to use 'mov' instead of 'movl' when dealing with segments.
Signed-off-by: Flavio B. Leitner <fbl@xxxxxxxxxxxxxxxx>
===== linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mmu_context.h 1.16 vs
edited =====
--- 1.16/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mmu_context.h
2005-06-01 12:37:20 -04:00
+++ edited/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mmu_context.h
2005-06-29 18:03:08 -04:00
@@ -34,7 +34,7 @@
* are always kernel segments while inside the kernel. Must
* happen before reload of cr3/ldt (i.e., not in __switch_to).
*/
- __asm__ __volatile__ ( "movl %%fs,%0 ; movl %%gs,%1"
+ __asm__ __volatile__ ( "mov %%fs,%0 ; mov %%gs,%1"
: "=m" (*(int *)¤t->thread.fs),
"=m" (*(int *)¤t->thread.gs));
__asm__ __volatile__ ( "movl %0,%%fs ; movl %0,%%gs"
===== linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/system.h 1.21 vs edited
=====
--- 1.21/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/system.h
2005-06-16 07:43:56 -04:00
+++ edited/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/system.h
2005-06-29 17:37:46 -04:00
@@ -84,7 +84,7 @@
#define loadsegment(seg,value) \
asm volatile("\n" \
"1:\t" \
- "movl %0,%%" #seg "\n" \
+ "mov %0,%%" #seg "\n" \
"2:\n" \
".section .fixup,\"ax\"\n" \
"3:\t" \
@@ -102,7 +102,7 @@
* Save a segment register away
*/
#define savesegment(seg, value) \
- asm volatile("movl %%" #seg ",%0":"=m" (*(int *)&(value)))
+ asm volatile("mov %%" #seg ",%0":"=m" (*(int *)&(value)))
/*
* Clear and set 'TS' bit respectively
----
--
Flávio Bruno Leitner <fbl@xxxxxxxxxxxxxxxx>
[0EA2 7F40 4CF4 1E63 4AF6 33C0 3E10 E205 F251 EDDA]
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|