SOURCES (LINUX_2_6): linux-2.6-ldr-str-segment-asm.patch (NEW) - f...

Jakub Bogusz qboosh w pld-linux.org
Pią, 15 Kwi 2005, 14:03:59 CEST


On Fri, Apr 15, 2005 at 01:56:37PM +0200, pluto wrote:
> Author: pluto                        Date: Fri Apr 15 11:56:37 2005 GMT
> Module: SOURCES                       Tag: LINUX_2_6
> ---- Log message:
> - fix asm. syntax (invalid operand to mov instruction).

> @@ -0,0 +1,61 @@
> +This patch fixes error messages from binutils-2.16.90.0.1.
> +
> +  {standard input}: Assembler messages:
> +  {standard input}:xxxx: Error: suffix or operands invalid for `mov'
> +
> +--- linux-2.6.11.7/include/asm-i386/system.h.orig	2005-04-07 20:57:08.000000000 +0200
> ++++ linux-2.6.11.7/include/asm-i386/system.h	2005-04-15 13:10:35.000000000 +0200
> +@@ -81,7 +81,7 @@
> + #define loadsegment(seg,value)			\
> + 	asm volatile("\n"			\
> + 		"1:\t"				\
> +-		"movl %0,%%" #seg "\n"		\
> ++		"movw %0,%%" #seg "\n"		\
> + 		"2:\n"				\
> + 		".section .fixup,\"ax\"\n"	\
> + 		"3:\t"				\
> +@@ -99,7 +99,7 @@
> +  * Save a segment register away
> +  */
> + #define savesegment(seg, value) \
> +-	asm volatile("movl %%" #seg ",%0":"=m" (*(int *)&(value)))
> ++	asm volatile("movw %%" #seg ",%0":"=m" (*(int *)&(value)))
> + 
> + /*
> +  * Clear and set 'TS' bit respectively

O ile pamiętam ogłoszenie o nowych binutils, to ma być po prostu mov.
movw dodaje niepotrzebny prefix 0x66.


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




Więcej informacji o liście dyskusyjnej pld-devel-pl