Sun4d - assembler errors
Could this be the smoking gun ?
Looks like the compiler does not like this inline assembly code. Sorry, this is outside of my skills to fix.
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sun4d_smp -c -o sun4d_smp.o sun4d_smp.csun4d_smp.c: In function `smp4d_cross_call':
sun4d_smp.c:347: warning: ignoring asm-specifier for non-static local variable f' sun4d_smp.c:348: warning: ignoring asm-specifier for non-static local variable a1' sun4d_smp.c:349: warning: ignoring asm-specifier for non-static local variable a2' sun4d_smp.c:350: warning: ignoring asm-specifier for non-static local variable a3' sun4d_smp.c:351: warning: ignoring asm-specifier for non-static local variable a4' sun4d_smp.c:352: warning: ignoring asm-specifier for non-static local variable a5'
Thanks,
Chris Newport
Quoted 7 lines · Chris Newport
Could this be the smoking gun ?
Looks like the compiler does not like this inline assembly code. Sorry, this is outside of my skills to fix.
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sun4d_smp -c -o sun4d_smp.osun4d_smp.csun4d_smp.c: In function `smp4d_cross_call':
sun4d_smp.c:347: warning: ignoring asm-specifier for non-static local variablef' sun4d_smp.c:348: warning: ignoring asm-specifier for non-static local variablea1'
gcc/binutils versions?
-- wli
Quoted 14 lines · William Lee Irwin III
Quoted 11 lines · Chris Newport
Could this be the smoking gun ?
Looks like the compiler does not like this inline assembly code. Sorry, this is outside of my skills to fix.
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27/include -Wall(quoted diff) +0
-3-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sun4d_smp -c -osun4d_smp.o
sun4d_smp.csun4d_smp.c: In function `smp4d_cross_call':
sun4d_smp.c:347: warning: ignoring asm-specifier for non-static local variablef' sun4d_smp.c:348: warning: ignoring asm-specifier for non-static local variablea1'gcc/binutils versions?
gcc 3.2.2
binutils 2.14.90.0.5
glibc-2.3.2
Quoted 1 line · William Lee Irwin III
Quoted 1 line
gcc/binutils versions?
Quoted 3 lines · C.Newport
gcc 3.2.2
binutils 2.14.90.0.5
glibc-2.3.2
Could you send the disassembly of that function, extracted from a fully-linked kernel?
-- wli