Deleted Added
full compact
mmu_oea64.c (212715) mmu_oea64.c (212722)
1/*-
2 * Copyright (c) 2001 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Matt Thomas <matt@3am-software.com> of Allegro Networks, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 77 unchanged lines hidden (view full) ---

86 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
87 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
88 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
89 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
90 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
91 */
92
93#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Matt Thomas <matt@3am-software.com> of Allegro Networks, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 77 unchanged lines hidden (view full) ---

86 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
87 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
88 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
89 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
90 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
91 */
92
93#include <sys/cdefs.h>
94__FBSDID("$FreeBSD: head/sys/powerpc/aim/mmu_oea64.c 212715 2010-09-16 00:22:25Z nwhitehorn $");
94__FBSDID("$FreeBSD: head/sys/powerpc/aim/mmu_oea64.c 212722 2010-09-16 03:46:17Z nwhitehorn $");
95
96/*
97 * Manages physical address maps.
98 *
99 * In addition to hardware address maps, this module is called upon to
100 * provide software-use-only maps which may or may not be stored in the
101 * same form as hardware maps. These pseudo-maps are used to store
102 * intermediate results from copy operations to and from address spaces.

--- 730 unchanged lines hidden (view full) ---

833 return;
834 }
835
836 entry.slbe = slbe;
837 entry.slbv = KERNEL_VSID(esid) << SLBV_VSID_SHIFT;
838 if (large)
839 entry.slbv |= SLBV_L;
840
95
96/*
97 * Manages physical address maps.
98 *
99 * In addition to hardware address maps, this module is called upon to
100 * provide software-use-only maps which may or may not be stored in the
101 * same form as hardware maps. These pseudo-maps are used to store
102 * intermediate results from copy operations to and from address spaces.

--- 730 unchanged lines hidden (view full) ---

833 return;
834 }
835
836 entry.slbe = slbe;
837 entry.slbv = KERNEL_VSID(esid) << SLBV_VSID_SHIFT;
838 if (large)
839 entry.slbv |= SLBV_L;
840
841 slb_insert(kernel_pmap, cache, &entry);
841 slb_insert_kernel(entry.slbe, entry.slbv);
842}
843#endif
844
845static void
846moea64_setup_direct_map(mmu_t mmup, vm_offset_t kernelstart,
847 vm_offset_t kernelend)
848{
849 register_t msr;

--- 1244 unchanged lines hidden (view full) ---

2094#ifdef __powerpc64__
2095void
2096moea64_pinit(mmu_t mmu, pmap_t pmap)
2097{
2098 PMAP_LOCK_INIT(pmap);
2099
2100 pmap->pm_slb_tree_root = slb_alloc_tree();
2101 pmap->pm_slb = slb_alloc_user_cache();
842}
843#endif
844
845static void
846moea64_setup_direct_map(mmu_t mmup, vm_offset_t kernelstart,
847 vm_offset_t kernelend)
848{
849 register_t msr;

--- 1244 unchanged lines hidden (view full) ---

2094#ifdef __powerpc64__
2095void
2096moea64_pinit(mmu_t mmu, pmap_t pmap)
2097{
2098 PMAP_LOCK_INIT(pmap);
2099
2100 pmap->pm_slb_tree_root = slb_alloc_tree();
2101 pmap->pm_slb = slb_alloc_user_cache();
2102 pmap->pm_slb_len = 0;
2102}
2103#else
2104void
2105moea64_pinit(mmu_t mmu, pmap_t pmap)
2106{
2107 int i;
2108 uint32_t hash;
2109

--- 926 unchanged lines hidden ---
2103}
2104#else
2105void
2106moea64_pinit(mmu_t mmu, pmap_t pmap)
2107{
2108 int i;
2109 uint32_t hash;
2110

--- 926 unchanged lines hidden ---