Skip to contentSkip to conversation

Subject: [PATCH 07/33] score: create head files cache.h cacheflush.h tlb.h tlbflush.h

PATCH Chen Liqin 1 participant 1 message Aug 26, 2009

Subsystems (2)
lore
Share & tools
lore

Chen Liqin

author
#0 lore raw

From 1fd54dc23e1585555fb202ca9d77b3df540aaae7 Mon Sep 17 00:00:00 2001
From: Chen Liqin <[email protected]>
Date: Wed, 26 Aug 2009 10:04:59 +0800
Subject: [PATCH 07/33] score: create head files cache.h cacheflush.h tlb.h tlbflush.h

---
 arch/score/include/asm/cache.h      |    7 ++
 arch/score/include/asm/cacheflush.h |   45 +++++++++++
 arch/score/include/asm/tlb.h        |   17 ++++
 arch/score/include/asm/tlbflush.h   |  142 +++++++++++++++++++++++++++++++++++
 4 files changed, 211 insertions(+), 0 deletions(-)
 create mode 100644 arch/score/include/asm/cache.h
 create mode 100644 arch/score/include/asm/cacheflush.h
 create mode 100644 arch/score/include/asm/tlb.h
 create mode 100644 arch/score/include/asm/tlbflush.h
arch/score/include/asm/cache.h new file +7 -0
new file mode 100644
index 0000000..ae3d59f
@@ -0,0 +1,7 @@
+#ifndef _ASM_SCORE_CACHE_H
+#define _ASM_SCORE_CACHE_H
+
+#define L1_CACHE_SHIFT		4
+#define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
+
+#endif /* _ASM_SCORE_CACHE_H */
arch/score/include/asm/cacheflush.h new file +45 -0

45 lines not on this page · raw message

arch/score/include/asm/tlb.h new file +17 -0
new file mode 100644
index 0000000..46882ed
@@ -0,0 +1,17 @@
+#ifndef _ASM_SCORE_TLB_H
+#define _ASM_SCORE_TLB_H
+
+/*
+ * SCORE doesn't need any special per-pte or per-vma handling, except
+ * we need to flush cache for area to be unmapped.
+ */
+#define tlb_start_vma(tlb, vma)		do {} while (0)
+#define tlb_end_vma(tlb, vma)		do {} while (0)
+#define __tlb_remove_tlb_entry(tlb, ptep, address) do {} while (0)
+#define tlb_flush(tlb)			flush_tlb_mm((tlb)->mm)
+
+extern void score7_FTLB_refill_Handler(void);
+
+#include <asm-generic/tlb.h>
+
+#endif /* _ASM_SCORE_TLB_H */
arch/score/include/asm/tlbflush.h new file +142 -0

142 lines not on this page · raw message

Signature · 1 line
1.6.2