patch-2.1.72 linux/include/asm-i386/system.h
Next file: linux/include/asm-m68k/byteorder.h
Previous file: linux/include/asm-i386/signal.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Fri Dec 5 09:52:41 1997
- Orig file:
v2.1.71/linux/include/asm-i386/system.h
- Orig date:
Tue Dec 2 09:49:40 1997
diff -u --recursive --new-file v2.1.71/linux/include/asm-i386/system.h linux/include/asm-i386/system.h
@@ -21,8 +21,8 @@
#define FIRST_LDT_ENTRY (FIRST_TSS_ENTRY+1)
#define _TSS(n) ((((unsigned long) n)<<4)+(FIRST_TSS_ENTRY<<3))
#define _LDT(n) ((((unsigned long) n)<<4)+(FIRST_LDT_ENTRY<<3))
-#define load_TR(n) __asm__("ltr %%ax": /* no output */ :"a" (_TSS(n)))
-#define load_ldt(n) __asm__("lldt %%ax": /* no output */ :"a" (_LDT(n)))
+#define load_TR(n) __asm__ __volatile__("ltr %%ax": /* no output */ :"a" (_TSS(n)))
+#define load_ldt(n) __asm__ __volatile__("lldt %%ax": /* no output */ :"a" (_LDT(n)))
#define store_TR(n) \
__asm__("str %%ax\n\t" \
"subl %2,%%eax\n\t" \
@@ -33,11 +33,9 @@
/* This special macro can be used to load a debugging register */
#define loaddebug(tsk,register) \
- __asm__("movl %0,%%edx\n\t" \
- "movl %%edx,%%db" #register "\n\t" \
+ __asm__("movl %0,%%db" #register \
: /* no output */ \
- :"m" (tsk->debugreg[register]) \
- :"dx");
+ :"r" (tsk->debugreg[register]))
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov