Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 1999 23:23:49 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        KATO Takenori <kato@ganko.eps.nagoya-u.ac.jp>, peter@netplex.com.au, current@FreeBSD.ORG
Subject:   Re: singed short to unsigned long conversion problem in isa.c
Message-ID:  <199904250623.XAA33729@apollo.backplane.com>
References:   <Pine.BSF.4.05.9904241900410.28665-100000@herring.nlsystems.com>

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

:> The assumption that an I/O port address is lower than 0x8000 is OK for
:> IBM-PC's ISA-bus, but PC98 can use hiher addresses for ISA-bus like
:> bus.
:
:I understand. I think the best thing is to store the port address as an
:int. I don't think there is a need to fork the file into a pc98 version.
:
:--
:Doug Rabson				Mail:  dfr@nlsystems.com
:Nonlinear Systems Ltd.			Phone: +44 181 442 9037

    I would recommend making it an unsigned short, and representing the
    -1 case with a '#define BAD_PORT ((unsigned short)-1)'.  All 
    representations and tests for this special case would be required to use
    the #define rather then a constant.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904250623.XAA33729>