This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Mapping hardware registers to virtual address in RedBoot
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Benny Chen <bennyc at rtunet dot com>
- Cc: ecos-discuss at sourceware dot org
- Date: Fri, 16 Sep 2005 08:46:48 +0200
- Subject: Re: [ECOS] Mapping hardware registers to virtual address in RedBoot
- References: <1126827066.4727.26.camel@Vigor4>
On Fri, Sep 16, 2005 at 09:31:07AM +1000, Benny Chen wrote:
> Hi there,
> Can anyone tell me where can I get information on how to map hardware
> registers to virtual address in RedBoot so that I can access the
> registers using utilities like 'dump', 'mcopy'..etc.
>
> I had a look at the hal_platform_setup.h file, this code is written in
> assembler, which is not very helpful for me. I am using the cirrus
> edb9301 development board.
eCos uses a 1:1 mapping between physical and virtual addresses. So
just try accessing the memory and see what happens. If they are part
of the "normal" set of registers it should just work. If they are
special regisetes outside of the normal range you might need to extent
the MMU setup to allow you access.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss