ofw_machdep.c (133855) | ofw_machdep.c (133862) |
---|---|
1/* 2 * Copyright (C) 1996 Wolfgang Solfrank. 3 * Copyright (C) 1996 TooLs GmbH. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * $NetBSD: ofw_machdep.c,v 1.5 2000/05/23 13:25:43 tsubai Exp $ 32 */ 33 34#include <sys/cdefs.h> | 1/* 2 * Copyright (C) 1996 Wolfgang Solfrank. 3 * Copyright (C) 1996 TooLs GmbH. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * $NetBSD: ofw_machdep.c,v 1.5 2000/05/23 13:25:43 tsubai Exp $ 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/powerpc/aim/ofw_machdep.c 133855 2004-08-16 13:07:40Z ssouhlal $"); | 35__FBSDID("$FreeBSD: head/sys/powerpc/aim/ofw_machdep.c 133862 2004-08-16 15:45:27Z marius $"); |
36 37#include <sys/param.h> 38#include <sys/bus.h> 39#include <sys/systm.h> 40#include <sys/conf.h> 41#include <sys/disk.h> 42#include <sys/fcntl.h> 43#include <sys/malloc.h> --- 129 unchanged lines hidden (view full) --- 173 "mtmsr %1\n\t" 174 "isync\n" 175 : "=r" (oldmsr) 176 : "r" (ofmsr) 177 ); 178 179 if (pmap_bootstrapped) { 180 /* | 36 37#include <sys/param.h> 38#include <sys/bus.h> 39#include <sys/systm.h> 40#include <sys/conf.h> 41#include <sys/disk.h> 42#include <sys/fcntl.h> 43#include <sys/malloc.h> --- 129 unchanged lines hidden (view full) --- 173 "mtmsr %1\n\t" 174 "isync\n" 175 : "=r" (oldmsr) 176 : "r" (ofmsr) 177 ); 178 179 if (pmap_bootstrapped) { 180 /* |
181 * Swap the kernel's address space with OpenFirmware's | 181 * Swap the kernel's address space with Open Firmware's |
182 */ 183 for (i = 0; i < 16; i++) { 184 srsave[i] = mfsrin(i << ADDR_SR_SHFT); 185 mtsrin(i << ADDR_SR_SHFT, ofw_pmap.pm_sr[i]); 186 } 187 188 /* 189 * Clear battable[] translations --- 68 unchanged lines hidden --- | 182 */ 183 for (i = 0; i < 16; i++) { 184 srsave[i] = mfsrin(i << ADDR_SR_SHFT); 185 mtsrin(i << ADDR_SR_SHFT, ofw_pmap.pm_sr[i]); 186 } 187 188 /* 189 * Clear battable[] translations --- 68 unchanged lines hidden --- |