Subject: Re: CVS commit: src/sys/arch/arm/ixp12x0
To: Naoto Shimazaki <igy@arhc.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: source-changes
Date: 02/22/2003 08:03:36
On Sat, Feb 22, 2003 at 02:00:05PM +0900, Naoto Shimazaki wrote:
> If I understood you correctly, you mean the following config is
> invalid don't you?
>
> ixpcom* at ixpsip? addr 0xf0000000 size 0x4000
> ^^^^^^^^^^virtual address
Yah, what I mean here is that the locators should use a physical
address. Consider the ADI_BRH config:
com0 at obio? addr 0x03000000 irq 24
com1 at obio? addr 0x03100000 irq 25
Those are physical addresses. In brh_machdep.c, I also statically map
the console UART for use before VM comes up. I compensate for this in
obio_space.c:obio_bs_map() -- see the switch statement[*].
[*] I really should be using the same table to special-case the UARTs
as is used to statically map them ... but that's just an implementation
detail :-)
> It is hard of avoiding for console to access UART through the
> statically mapped address (virtual 0xf0000000). Because I want
> to use console before the vm is established.
>
> So I will modify sources as following.
>
> - to identify device instance, using hardware address.
> - when console accesses device, using statically mapped address.
> - when tty accesses device, using handler given by bus_space_map().
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>