[ale] Problems with COmpiler

Joe jknapka at mindspring.com
Sun May 5 12:54:28 EDT 1996


I had this problem when I was trying to build the 1.3.20 kernel in Slackware 3.0 -
I fixed it by patching the relevant lines in io.h. There is a really obvious
problem, which I can't remember the exact nature of... gimme a minute...
...

Oh yeah... 

These lines are different between the 1.2.13 io.h and the 1.3.20 io.h -- the crucial
difference seems to be the "id" (correct) vs. "i" (not). This is apparently a bunch of
really ugly macros generating some assembly code. Anyhow, changing the "i" to "id"
on the corresponding lines might fix the problem. I have compiled my 1.2.13 kernel
with this change and have had no problems with it whatsoever.

-- Joe

52c92
< __OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); } \
---
> __OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); } \
54c94
< __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); SLOW_DOWN_IO; }
---
> __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; }
64c104
< __IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); return _v; } \
---
> __IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); return _v; } \
66c106
< __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); SLOW_DOWN_IO; return _v; }
---
> __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; }






More information about the Ale mailing list