Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 1997 16:33:11 -0700 (PDT)
From:      0000-Administrator <root@trojanhorse.ml.org>
To:        freebsd-hackers@freebsd.org
Subject:   outb() / inb()
Message-ID:  <Pine.BSF.3.96.971018162857.188A-100000@trojanhorse.ml.org>

next in thread | raw e-mail | index | archive | help

I just discovered that 
  
outb (0x250, *c++);  /* doesn't work whereas */
outb (0x250, *c); c++; /* works */

I would guess (but cannot verify) that 


*c++ = inb (0x250);  /* probably works since the increment expression is 
                      * not part of the macro */

can somebody verify this for me I am pretty sure about the inb (even
though I can't test it easily), as for the outb since outb just is a macro
that puts in an inline function outbv() why does it not work?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971018162857.188A-100000>