From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,2315675ebf759ce4 X-Google-Attributes: gid111c93,public From: Alex Rhomberg Subject: Re: Help! Assembler build problem on Alpha(inb instruction) Date: 2000/04/11 Message-ID: <38F31F88.76C01FC0@ife.ee.ethz.ch>#1/1 X-Deja-AN: 609626790 Content-Transfer-Encoding: 7bit References: <38F31A2B.DD9A5D7E@spamtexas.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 11 Apr 2000 14:50:16 +0100, beethoven.ee.ethz.ch Organization: Electronics Lab, ETH Zurich, Switzerland MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Jean-Claude Magras wrote: > > Greetings, > > I am trying to build a Redhat 6.1 kernel straight from the official 6.1 > SRPMs on > an alphastation 220 4/233. > But I am getting compilation error from linux-2.2.13/drivers/net/atp.h > at line 90. > This is an inlined asm statement in a C function called inbyte. > The messages are "inconsistent operand constraints" > The inclusion of atp.h is from atp.c. > The opcode in "inb %w1,%b0". > This file is being compiled because I want PCMCIA support. I switched on > PCIC > support. Is this really needed? When I look at this, I wonder WATF assembler code has lost in the drivers hierarchy. It doesn't look like there is any processor dependency, it seems an indication that somebody is developing in his intel universe. is inb an Alpha statement? As for the cure, try to skip atp.c, you most probably won't need it another possiblity is to change the part in atp.h to something like #ifdef LOST_IN_INTEL_HELL extern inline unsigned char inbyte(unsigned short port) { unsigned char _v; __asm__ __volatile__ ("inb %w1,%b0" :"=a" (_v):"d" (port)); return _v; } #else extern inline unsigned char inbyte(unsigned short port) { return (unsigned char)inb(port); } #endif And send the author of atp.h a note if this still appears in 2.3.99 kernels - Alex Disclaimer: I have not done this nor do I have any idea what atp.h does. But I'm good in educated guesses :-)