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: Andrew Lunn <andrew at lunn dot ch>
- To: Steven_cheng <05071 at alphanetworks dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 25 Aug 2005 09:25:03 +0200
- Subject: Re: [ECOS] How can I allocate a nocache memory block, and this block can be used by others ??
- References: <004901c5a934$53681210$01473264@stevencheng>
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