Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77766
b: refs/heads/master
c: c96bcf9
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent 80f0f7e commit 7e6054e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b2328bbc08ee8f7377f9dccdd6fb0c707b34d2f
refs/heads/master: c96bcf958c1d79d8e8aa58722273ec7b1ffb815c
10 changes: 5 additions & 5 deletions trunk/arch/sh/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@
#define MMUDR_CACHED_L 0x000000000000015a | ALIGNED_PHYSICAL
/* 512 Mb, Cacheable, Write-back, read/write, Not User, Ph. Add. */

#ifdef CONFIG_ICACHE_DISABLED
#ifdef CONFIG_CACHE_OFF
#define ICCR0_INIT_VAL ICCR0_OFF /* ICACHE off */
#else
#define ICCR0_INIT_VAL ICCR0_ON | ICCR0_ICI /* ICE + ICI */
#endif
#define ICCR1_INIT_VAL ICCR1_NOLOCK /* No locking */

#if defined (CONFIG_DCACHE_DISABLED)
#if defined (CONFIG_CACHE_OFF)
#define OCCR0_INIT_VAL OCCR0_OFF /* D-cache: off */
#elif defined (CONFIG_DCACHE_WRITE_THROUGH)
#elif defined (CONFIG_CACHE_WRITETHROUGH)
#define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WT /* D-cache: on, */
/* WT, invalidate */
#elif defined (CONFIG_DCACHE_WRITE_BACK)
#elif defined (CONFIG_CACHE_WRITEBACK)
#define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WB /* D-cache: on, */
/* WB, invalidate */
#else
#error preprocessor flag CONFIG_DCACHE_... not recognized!
#error preprocessor flag CONFIG_CACHE_... not recognized!
#endif

#define OCCR1_INIT_VAL OCCR1_NOLOCK /* No locking */
Expand Down

0 comments on commit 7e6054e

Please sign in to comment.