Subject: Re: broken bus_space_{read,write}
To: IWAMOTO Toshihiro <iwamoto@sat.t.u-tokyo.ac.jp>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: port-arm32
Date: 03/10/2001 10:21:00
On Saturday 10 March 2001  2:57 am, IWAMOTO Toshihiro wrote:
> I've noticed arm/mainbus/mainbus_io_asm.S is broken, and would like to
> commit a fix something like below.
> Are there any problem commiting this?
> I greped mainbus_bs in arm32, and arm32 doesn't seem to use these
> functions.

It does indirectly, they're referenced via a table, see mainbus_bs_tag, which 
is referenced in arch/arm32/mainbus/pioc.c which is used in RPC's, which 
can't do half words.

> Half word load and store are ARMv4 only, but I think it's ok.
> They cannot be implemented for v3 and older anyway.

Certainly pheasible to create Arm4 versions of them, and detect if you can 
use Armv4 instr via the CPU_* options and if you've got RISCPC set or not...

Cheers,
Chris