This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How can I allocate a nocache memory block, and this block can be used by others ??
- From: "Steven_cheng" <05071 at alphanetworks dot com>
- To: "Andrew Lunn" <andrew at lunn dot ch>
- Cc: "eCos Discussion" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 25 Aug 2005 16:10:21 +0800
- Subject: Re: [ECOS] How can I allocate a nocache memory block, and this block can be used by others ??
- References: <004901c5a934$53681210$01473264@stevencheng> <20050825072503.GV6049@lunn.ch>
Dear Andrew,
I got it, and it works~~
Thank you~
Steven Cheng
----- Original Message -----
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Steven_cheng" <05071@alphanetworks.com>
Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
Sent: Thursday, August 25, 2005 3:25 PM
Subject: Re: [ECOS] How can I allocate a nocache memory block, and this
block can be used by others ??
> On Thu, Aug 25, 2005 at 01:17:39PM +0800, Steven_cheng wrote:
> >
> > Dear All,
> >
> > I want to allocate a non-cache memory for my nic driver, and it
uses
> > the logic address CYGMEM_SECTION_pci_window_VIR (from 0x10000000 to
> > 0x11000000) and physical
> > address CYGMEM_SECTION_pci_window_PHY (from 0x0f000000 to 0x10000000).
> > But I find that the nocache buffer is used by others when I transfer
file
> > with xmodem in RedBoot.
> >
> > How can I allocate a nocache memory block, and this block can be used by
> > others ??
>
> One platform that i've used before which does this correctly is the
> EBSA285. Take a look at
>
> packages/hal/arm/ebsa285/current/include/pkgconf/mlt_arm_ebsa285_ram.*
>
> Its the __pci_window bits you are interested in.
>
> 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
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss