* [ECOS] HAL_READ_xxx & HAL_WRITE_xxx
@ 2000-07-31 11:18 Fabrice Gautier
2000-08-01 5:15 ` Nick Garnett
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Gautier @ 2000-07-31 11:18 UTC (permalink / raw)
To: Ecos-List (E-mail)
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 ?
Thanks.
--
Fabrice Gautier
fabrice_gautier@sdesigns.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] HAL_READ_xxx & HAL_WRITE_xxx
2000-07-31 11:18 [ECOS] HAL_READ_xxx & HAL_WRITE_xxx Fabrice Gautier
@ 2000-08-01 5:15 ` Nick Garnett
0 siblings, 0 replies; 2+ messages in thread
From: Nick Garnett @ 2000-08-01 5:15 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-08-01 5:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-31 11:18 [ECOS] HAL_READ_xxx & HAL_WRITE_xxx Fabrice Gautier
2000-08-01 5:15 ` Nick Garnett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).