* ron minnich <[EMAIL PROTECTED]> [071022 17:37]:
> On 10/21/07, Peter Lemenkov <[EMAIL PROTECTED]> wrote:
> > Hello All!
> > Does anybody tried to use linuxbios and LB-tools on non-x86 platforms?
> > There are some issues we need to fir even for compilation (not for
> > successful usage).
> >
> > One thing I found so far is excessive usage of non-portable inb/outb
> > macros. For instance - inb may be emulated as folliwing:
> >
> > +unsigned char inb (unsigned short int port)
> > +{
> > +       static unsigned char in = 0;
> > +       FILE* f = fopen ("/dev/port", "a");
> > +       if (f !=NULL){
> > +               if (fseek (f, port, SEEK_SET) == port){
> > +                       fread (&in, sizeof (unsigned char), 1, f);
> > +                       fclose (f);
> > +                       return in;
> > +               }
> > +       }
> > +       return ERROR;
 
Ok, which platforms does this actually fix? Has this been tested?

I know it _breaks_ just about every x86 platform except Linux.

So, we should deliberate before going this route.

Stefan

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [EMAIL PROTECTED]  • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866

-- 
linuxbios mailing list
[email protected]
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to