9 #include <asm/pgtable.h>
11 #include <asm/types.h>
14 #include <asm/mmu_context.h>
30 unsigned long zones_size[MAX_NR_ZONES];
32 printk(
"Setting up paging and the MMU.\n");
52 #ifdef CONFIG_CRIS_LOW_MAP
67 #define CACHED_BOOTROM (KSEG_F | 0x08000000UL)
74 #ifdef CONFIG_JULIETTE
95 #ifdef CONFIG_JULIETTE
114 #define CACHED_BOOTROM (KSEG_A | 0x08000000UL)
116 *R_MMU_KSEG = (
IO_STATE(R_MMU_KSEG, seg_f,
seg ) |
152 *R_MMU_CONTEXT = (
IO_FIELD(R_MMU_CONTEXT, page_id, 0 ) );
176 for (i = 1; i < MAX_NR_ZONES; i++)
198 #ifdef CONFIG_CRIS_LOW_MAP
225 flush_etrax_cacherange(
void *startadr,
int length)
231 volatile short *flushadr = (
volatile short *)(((
unsigned long)startadr & ~
PAGE_MASK) |
234 length = length > 8192 ? 8192 :
length;
238 flushadr += (32/
sizeof(
short));
254 flush_etrax_cacherange((
void *)desc->
buf, desc->
sw_len ? desc->
sw_len : 65536);
262 flush_etrax_cacherange(0, 8192);