Don't pretend to support ix86's with 16-bit ints by using longs

just to ensure 32-bit variables.
This commit is contained in:
Bruce Evans 1998-07-15 09:38:10 +00:00
parent c3f62164d5
commit ea878c61f1
2 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_le.c,v 1.44 1998/03/28 13:24:17 bde Exp $
* $Id: if_le.c,v 1.45 1998/06/07 17:10:35 dfr Exp $
*/
/*
@ -286,13 +286,13 @@ static unsigned le_intrs[NLE];
|| ((u_short *)a1)[2] == 0xFFFFU)
#define LE_INL(sc, reg) \
({ u_long data; \
({ u_int data; \
__asm __volatile("inl %1, %0": "=a" (data): "d" ((u_short)((sc)->le_iobase + (reg)))); \
data; })
#define LE_OUTL(sc, reg, data) \
({__asm __volatile("outl %0, %1"::"a" ((u_long)(data)), "d" ((u_short)((sc)->le_iobase + (reg))));})
({__asm __volatile("outl %0, %1"::"a" ((u_int)(data)), "d" ((u_short)((sc)->le_iobase + (reg))));})
#define LE_INW(sc, reg) \
({ u_short data; \

View File

@ -60,7 +60,7 @@
* that category, with the possible exception of scanners and
* some of the older MO drives.
*
* $Id: seagate.c,v 1.28 1998/04/15 17:26:17 bde Exp $
* $Id: seagate.c,v 1.29 1998/06/21 18:02:40 bde Exp $
*/
/*
@ -1065,7 +1065,7 @@ int sea_poll (adapter_t *z, scb_t *scb)
void sea_data_output (adapter_t *z, u_char **pdata, u_long *plen)
{
volatile u_char *data = *pdata;
volatile u_long len = *plen;
volatile u_int len = *plen;
#ifdef SEA_BLINDTRANSFER
if (len && !(len % BLOCK_SIZE)) {
@ -1112,7 +1112,7 @@ void sea_data_output (adapter_t *z, u_char **pdata, u_long *plen)
void sea_data_input (adapter_t *z, u_char **pdata, u_long *plen)
{
volatile u_char *data = *pdata;
volatile u_long len = *plen;
volatile u_int len = *plen;
#ifdef SEA_BLINDTRANSFER
if (len && !(len % BLOCK_SIZE)) {