| To: | <linux-mips@linux-mips.org> |
|---|---|
| Subject: | Cache Question |
| From: | "Kapoor, Pankaj" <pkapoor@ti.com> |
| Date: | Tue, 23 Nov 2004 12:19:21 -0600 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| Thread-index: | AcTRhzy8XngZwh2oS1CoJxTrlx5FAgAAVwNQ |
| Thread-topic: | Cache Question |
|
Hi, Is there any specific reason why the cache invalidation routine is executed with interrupts disabled? Example: static void mips32_dma_cache_inv_pc(unsigned long addr, unsigned long size) { unsigned long end, a; unsigned int flags; if (size >= dcache_size) { flush_cache_all(); } else { __save_and_cli(flags); a = addr & ~(dc_lsize - 1); end = (addr + size) & ~(dc_lsize - 1); while (1) { flush_dcache_line(a); /* Hit_Writeback_Inv_D */ if (a == end) break; a += dc_lsize; } __restore_flags(flags); } bc_inv(addr, size); } Thanks. - Pankaj |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Comments in the titan ethernet driver for IP header alignment, Thomas Koeller |
|---|---|
| Next by Date: | Re: [PATCH] Comments in the titan ethernet driver for IP header alignment, Manish Lachwani |
| Previous by Thread: | MTD support in 2.6.6, Muruga Ganapathy |
| Next by Thread: | Re: Cache Question, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |