diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2008-04-28 03:04:41 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2008-04-28 03:04:41 +0000 |
| commit | 01d8aa0d313b65da017576cec02a8b411e5eae59 (patch) | |
| tree | 9b1556bedcb14633a3b569a00772e9ff321cc425 /sys/powerpc | |
| parent | 12640815f815936a684029de569522738d5b22da (diff) | |
Notes
Diffstat (limited to 'sys/powerpc')
| -rw-r--r-- | sys/powerpc/aim/mmu_oea.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c index d179b4081c21..a425ccd07c2d 100644 --- a/sys/powerpc/aim/mmu_oea.c +++ b/sys/powerpc/aim/mmu_oea.c @@ -623,16 +623,17 @@ pmap_cpu_bootstrap(volatile uint32_t *trcp, int ap) trcp[0] = 0x1001; - for (i = 1; i < 4; i++) { - __asm __volatile("mtdbatu %0,%1" :: "n"(i), "r"(0)); - __asm __volatile("mtibatu %0,%1" :: "n"(i), "r"(0)); - isync(); - } + __asm __volatile("mtdbatu 1,%0" :: "r"(battable[8].batu)); + __asm __volatile("mtdbatl 1,%0" :: "r"(battable[8].batl)); + isync(); trcp[0] = 0x1002; - __asm __volatile("mtdbatu 1,%0" :: "r"(battable[8].batu)); - __asm __volatile("mtdbatl 1,%0" :: "r"(battable[8].batl)); + __asm __volatile("mtibatu 1,%0" :: "r"(0)); + __asm __volatile("mtdbatu 2,%0" :: "r"(0)); + __asm __volatile("mtibatu 2,%0" :: "r"(0)); + __asm __volatile("mtdbatu 3,%0" :: "r"(0)); + __asm __volatile("mtibatu 3,%0" :: "r"(0)); isync(); trcp[0] = 0x1003; |
