Windows CE >> ARM Cache Flush & Cache Invalidate

by Artemi » Mon, 29 Dec 2003 17:00:08 GMT

Hi, everybody...

I would like to know - which WinCE function I need
to use to invalidate cache entries for specified memory region : e.g.
some-one has updated RAM, but cache's being containing on 'old' data yet...
I need to invalidate cache entries before cached access to this RAM.

CacheRangeFlush allows: CACHE_SYNC_WRITEBACK - clean cache content (i.e.
flush cache)
CACHE_SYNC_DISCARD - clean &
invalidate cache(i.e. flush cache and then invalidate it)
How can I invalidate cache entries without flushing?





Windows CE >> RE: ARM Cache Flush & Cache Invalidate

by bmhsieh.online » Wed, 03 Mar 2004 07:58:21 GMT


We intentionally do not support this functionality because discarding
without write-back is dangerous in the sense that improper range flush will
throw away valid data. Especially when some BSP implementation ignores the
range passed in and flushes the whole cache.

-- Bor-Ming


This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2004 Microsoft Corporation. All rights
reserved.

--------------------
| From: "Artemi"<< XXXX@XXXXX.COM >>
| Subject: ARM Cache Flush & Cache Invalidate
| Date: Mon, 29 Dec 2003 19:00:08 +0300
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
| Message-ID:<< XXXX@XXXXX.COM >>
| Newsgroups: microsoft.public.windowsce.embedded
| NNTP-Posting-Host: gate.oktet.ru 193.125.193.1
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.windowsce.embedded:20126
| X-Tomcat-NG: microsoft.public.windowsce.embedded
|
| Hi, everybody...
|
| I would like to know - which WinCE function I need
| to use to invalidate cache entries for specified memory region : e.g.
| some-one has updated RAM, but cache's being containing on 'old' data
yet...
| I need to invalidate cache entries before cached access to this RAM.
|
| CacheRangeFlush allows: CACHE_SYNC_WRITEBACK - clean cache content (i.e.
| flush cache)
| CACHE_SYNC_DISCARD - clean &
| invalidate cache(i.e. flush cache and then invalidate it)
| How can I invalidate cache entries without flushing?
|
|
|
|
|

Similar Threads

1. cache invalidate

Hi -
I'm running WinCE.NET 4.20 on MIPS32 architecture.  I am writing a
device driver, and have a need to invalidate certain space in the data
cache.  It looks like CacheRangeFlush() does not allow to just
invalidate, only flush and invalidate.  However, if one is reading a
location updated by an i/o device, flush will clobber valid data. 
This is the reason I am looking for an invalidate-only OS call. 
Anyone has any experience with this?  Thanks.
-ivo

2. cache invalidate on MIPS32 - Windows CE

3. cache invalidate

Hi -
I'm running WinCE.NET 4.20 on MIPS32 architecture.  I am writing a
device driver, and have a need to invalidate certain space in the data
cache.  It looks like CacheRangeFlush() does not allow to just
invalidate, only flush and invalidate.  However, if one is reading a
location updated by an i/o device, flush will clobber valid data. 
This is the reason I am looking for an invalidate-only OS call. 
Anyone has any experience with this?  Thanks.
-ivo

4. How to clear or invalidate ARP cache of remote XP - Windows XP Network

5. How to invalidate FAT cache?

Hi all,
I have a FlashCard recognized as removable drive by Windows2000.

My code is partitioning and formatting this removable drive writing
manually the relevant sectors (FAT16, 4 sector/cluster).

My code runs as expected over an empty removable drive.
But, if the removable drive was already containing something before to
execute my code, Windows still shows the old content although the FAT
has been erased.

After execution I try (unsuccessfully) both to press F5 to update the
showed content and to force rescan of all drive units by means of
"CM_Locate_DevNodeA + CM_Reenumerate_DevNode" functions.

Can someone suggest something to me?
E.g. does exist a system call to force Windows to update the cached
FAT information without extracting and reinserting the FlashCard?

Thanks in advance,
Andrea.

6. Flush all disk caches? - Windows Vista

7. Cmd: ipconfig /flushdns fails to clear/flush DNS Cache in Vista 64-bit

Vista Ultimate 64-bit; IE8; Firefox; DNS Cache...

Before replacing my wireless-N router with a different brand/model 
wireless-G router a tech suggested clearing the DNS cache.  I ran a Cmd.exe 
line as administrator and typed 'ipconfig /flushdns' and got 'Could not 
flush the DNS Resolver Cache: Function failed during execution.'  MS said 
this failed because I was using Windows.  I then tried the same from Safe 
Mode but it failed the same way.

How can I successfully clear this cache?  I would like to do it once just to 
be certain that there isn't some relationship between it and my old 
wireless-N router that is causing to websites that I can enter but not log 
into successfully.  If clearing this cause has no effect on the problem I 
will install the new router and go from there.  One other router borrowed 
passed the website logons successfully--hard wired with no router works too.

What can you tell me about this DNS Resolver Cache?  Can it get corrupted 
and/or fill up and never flushed out automatically?  Thanks. 

8. ipconfig /flushdns fails to clear/flush DNS Cache in Vista 64-bit - Windows Vista