Deleted Added
full compact
mmu_oea.c (133855) mmu_oea.c (133862)
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_oea.c 133855 2004-08-16 13:07:40Z ssouhlal $");
94__FBSDID("$FreeBSD: head/sys/powerpc/aim/mmu_oea.c 133862 2004-08-16 15:45:27Z marius $");
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.

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

684 /*
685 * Make sure kernel vsid is allocated as well as VSID 0.
686 */
687 pmap_vsid_bitmap[(KERNEL_VSIDBITS & (NPMAPS - 1)) / VSID_NBPW]
688 |= 1 << (KERNEL_VSIDBITS % VSID_NBPW);
689 pmap_vsid_bitmap[0] |= 1;
690
691 /*
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.

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

684 /*
685 * Make sure kernel vsid is allocated as well as VSID 0.
686 */
687 pmap_vsid_bitmap[(KERNEL_VSIDBITS & (NPMAPS - 1)) / VSID_NBPW]
688 |= 1 << (KERNEL_VSIDBITS % VSID_NBPW);
689 pmap_vsid_bitmap[0] |= 1;
690
691 /*
692 * Set up the OpenFirmware pmap and add it's mappings.
692 * Set up the Open Firmware pmap and add it's mappings.
693 */
694 pmap_pinit(&ofw_pmap);
695 ofw_pmap.pm_sr[KERNEL_SR] = KERNEL_SEGMENT;
696 ofw_pmap.pm_sr[KERNEL2_SR] = KERNEL2_SEGMENT;
697 if ((chosen = OF_finddevice("/chosen")) == -1)
698 panic("pmap_bootstrap: can't find /chosen");
699 OF_getprop(chosen, "mmu", &mmui, 4);
700 if ((mmu = OF_instance_to_package(mmui)) == -1)

--- 1686 unchanged lines hidden ---
693 */
694 pmap_pinit(&ofw_pmap);
695 ofw_pmap.pm_sr[KERNEL_SR] = KERNEL_SEGMENT;
696 ofw_pmap.pm_sr[KERNEL2_SR] = KERNEL2_SEGMENT;
697 if ((chosen = OF_finddevice("/chosen")) == -1)
698 panic("pmap_bootstrap: can't find /chosen");
699 OF_getprop(chosen, "mmu", &mmui, 4);
700 if ((mmu = OF_instance_to_package(mmui)) == -1)

--- 1686 unchanged lines hidden ---