2.1.105 trampoline.S compile error

David E. Smith (dave@bureau42.ml.org)
Tue, 9 Jun 1998 00:57:09 +0000 (GMT)


2.1.105 for x86 fails to compile on my 486 with an assembler error (but I
suspect it's because, in true heathen fashion, I use gcc 2.8.1 instead of
the `known good' 2.7.2.3). This one-line patch (to arch/i386/kernel)
"fixes" it in that it compiles past that point, but I don't actually know
what it does.

Here's the error:

gcc -D__KERNEL__ -I/home/kernel/linux-2.1.105/include -D__ASSEMBLY__
-D__SMP__ -traditional -c trampoline.S -o trampoline.o
/tmp/cca30848.s: Assembler messages:
/tmp/cca30848.s:169: Error: operands given don't match any known 386 instruction
make[1]: *** [trampoline.o] Error 1
make[1]: Leaving directory `/home/kernel/linux-2.1.105/arch/i386/kernel'
make: *** [linuxsubdirs] Error 2

The one-line patch:

--- trampoline.S.orig Mon Jun 8 22:54:49 1998
+++ trampoline.S Mon Jun 8 22:54:57 1998
@@ -54,7 +54,7 @@
lmsw %ax # into protected mode
jmp flush_instr
flush_instr:
- ljmpl $__KERNEL_CS, $0x00100000
+ ljmp $__KERNEL_CS, $0x00100000
# jump to startup_32

idt_48:

Nobody should even think about applying this until someone that knows
their compilers and assemblers can tell me what the effect of the patch
actually _is._

...dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu