diff options
author | cognet <cognet@FreeBSD.org> | 2009-06-21 21:38:12 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2009-06-21 21:38:12 +0000 |
commit | a34cff89b4d0d0ffd12ca00dfd86fd9c74c9f0e2 (patch) | |
tree | f02d383b8fd8a70c629b699ca5a7799b4b4124f8 /sys/arm | |
parent | 9e88f817eec82327026cdbd1ec18229191f6482d (diff) | |
download | FreeBSD-src-a34cff89b4d0d0ffd12ca00dfd86fd9c74c9f0e2.zip FreeBSD-src-a34cff89b4d0d0ffd12ca00dfd86fd9c74c9f0e2.tar.gz |
Disable write-back until I figure out what's wrong with it on the i81342.
There's no need to disable the MMU once we're done inflating the kernel.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/elf_trampoline.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arm/arm/elf_trampoline.c b/sys/arm/arm/elf_trampoline.c index 5db11ca..2755f81 100644 --- a/sys/arm/arm/elf_trampoline.c +++ b/sys/arm/arm/elf_trampoline.c @@ -550,7 +550,7 @@ setup_pagetables(unsigned int pt_addr, vm_paddr_t physstart, vm_paddr_t physend, for (addr = physstart; addr < physend; addr += L1_S_SIZE) { pd[addr >> L1_S_SHIFT] = L1_TYPE_S|L1_S_C|L1_S_AP(AP_KRW)| L1_S_DOM(PMAP_DOMAIN_KERNEL) | addr; - if (write_back) + if (write_back && 0) pd[addr >> L1_S_SHIFT] |= L1_S_B; } /* XXX: See below */ @@ -610,12 +610,6 @@ __start(void) (unsigned int)&func_end + 800 , 0); if (altdst > dst) dst = altdst; - cpu_idcache_wbinv_all(); - cpu_l2cache_wbinv_all(); - __asm __volatile("mrc p15, 0, %0, c1, c0, 0\n" - "bic %0, %0, #1\n" /* MMU_ENABLE */ - "mcr p15, 0, %0, c1, c0, 0\n" - : "=r" (pt_addr)); } else #endif dst = 4 + load_kernel((unsigned int)&kernel_start, |