]> git.sur5r.net Git - u-boot/commitdiff
x86: Add basic cache operations
authorSimon Glass <sjg@chromium.org>
Thu, 28 Feb 2013 19:26:11 +0000 (19:26 +0000)
committerSimon Glass <sjg@chromium.org>
Mon, 4 Mar 2013 23:57:34 +0000 (15:57 -0800)
At present most x86 cache operations are undefined. Add a basic
implementation for these.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/cpu.c

index 6a23974ff58f1b54bfd4a293803b23d33e7b873d..1a2f85c1fe2153a582acf7c9cbcec799b57f9922 100644 (file)
@@ -228,3 +228,26 @@ void flush_dcache_range(unsigned long start, unsigned long stop)
 void invalidate_dcache_range(unsigned long start, unsigned long stop)
 {
 }
+
+void dcache_enable(void)
+{
+       enable_caches();
+}
+
+void dcache_disable(void)
+{
+       disable_caches();
+}
+
+void icache_enable(void)
+{
+}
+
+void icache_disable(void)
+{
+}
+
+int icache_status(void)
+{
+       return 1;
+}