Deleted Added
full compact
mmu_oea64.c (209975) mmu_oea64.c (210704)
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 209975 2010-07-13 05:32:19Z nwhitehorn $");
94__FBSDID("$FreeBSD: head/sys/powerpc/aim/mmu_oea64.c 210704 2010-07-31 21:35:15Z 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 slbe = (esid << SLBE_ESID_SHIFT) | SLBE_VALID;
834
835 for (i = 0; i < 64; i++) {
836 if (cache[i].slbe == (slbe | i))
837 return;
838 }
839
840 entry.slbe = slbe;
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 slbe = (esid << SLBE_ESID_SHIFT) | SLBE_VALID;
834
835 for (i = 0; i < 64; i++) {
836 if (cache[i].slbe == (slbe | i))
837 return;
838 }
839
840 entry.slbe = slbe;
841 entry.slbv = KERNEL_VSID(esid, large) << SLBV_VSID_SHIFT;
841 entry.slbv = KERNEL_VSID(esid) << SLBV_VSID_SHIFT;
842 if (large)
843 entry.slbv |= SLBV_L;
844
845 slb_insert(kernel_pmap, cache, &entry);
846}
847#endif
848
849static void

--- 2170 unchanged lines hidden ---
842 if (large)
843 entry.slbv |= SLBV_L;
844
845 slb_insert(kernel_pmap, cache, &entry);
846}
847#endif
848
849static void

--- 2170 unchanged lines hidden ---