Skip to contentSkip to conversation

dcache manipulation fo [...]

RFC PATCH New DENX Support System 1 participant 1 message Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 dcache manipulation fo [...]

Hello list,

inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142000035] was created:

<snip>

Quoted 44 lines

This patch implements dcache manipulation for arm926ejs.

 cpu/arm926ejs/cpu.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+)

Index: u-boot-1.1.4/cpu/arm926ejs/cpu.c
===================================================================
--- u-boot-1.1.4.orig/cpu/arm926ejs/cpu.c 2005-12-17 01:39:27.000000000
+0900
+++ u-boot-1.1.4/cpu/arm926ejs/cpu.c 2006-02-10 18:28:27.000000000 +0900

(quoted diff) +23 -1
@@ -154,3 +154,26 @@ int icache_status (void)
 {
 	return (read_p15_c1 () & C1_IC) != 0;
 }
+
+void dcache_enable (void)
+{
+	ulong reg;
+
+	reg = read_p15_c1 ();		/* get control reg. */
+	cp_delay ();
+	write_p15_c1 (reg | C1_DC);
+}
+
+void dcache_disable (void)
+{
+	ulong reg;
+
+	reg = read_p15_c1 ();
+	cp_delay ();
+	write_p15_c1 (reg & ~C1_DC);
+}
+
+int dcache_status (void)
+{
+	return (read_p15_c1 () & C1_DC) != 0;
+}
 
 
 
-------------------------------------------------------

This SF.net email is sponsored by: Splunk Inc. Do you grep through log

Quoted 8 lines

files
for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

</snip>

Your U-Boot support team