This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: HAL_READ_xxx & HAL_WRITE_xxx
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] HAL_READ_xxx & HAL_WRITE_xxx
- From: Nick Garnett <nickg at cygnus dot co dot uk>
- Date: 01 Aug 2000 13:02:16 +0100
- Newsgroups: cygnus.sourceware.ecos.d
- Organization: Cygnus Solutions, a Red Hat company (Cambridge, UK)
- References: <21DDE8E5343ED411840A00A0CC334020104811@EXCHANGE5_5>
Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:
> Hi,
>
> In the documentation, those function are described as:" These macros support
> the reading/writing of I/O registers".
>
> But, for 386 PC platform, there are other functions used in the HAL:
> pc_outb, pc_inb etc... while the HAL_READ_xxx macros for the PC platform do
> is only read in memory
>
> Is there an inconsistency in the doc, in the code or in my mind ?
>
This is just an inconsistency in the code. Much of the code for the PC
port was derived from other sources that used the pc_in/out
functions. So these were ported too. There is no code at present that
uses the HAL_* macros, so these have not even been converted to use IO
ports rather than memory mapped IO.
Either these macros need to be converted to use the pc_* functions,
or, better, converted to use inline asm to invoke the appropriate
instructions.
--
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK