Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Help! Assembler build problem on Alpha(inb instruction)
@ 2000-04-11  4:00 Jean-Claude Magras
  2000-04-11  4:00 ` Alex Rhomberg
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Claude Magras @ 2000-04-11  4:00 UTC (permalink / raw)


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?

Sincerely,

J.C. Magras




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help! Assembler build problem on Alpha(inb instruction)
  2000-04-11  4:00 Help! Assembler build problem on Alpha(inb instruction) Jean-Claude Magras
@ 2000-04-11  4:00 ` Alex Rhomberg
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Rhomberg @ 2000-04-11  4:00 UTC (permalink / raw)


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 :-)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-04-11  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-11  4:00 Help! Assembler build problem on Alpha(inb instruction) Jean-Claude Magras
2000-04-11  4:00 ` Alex Rhomberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox