mem.c (790) | mem.c (798) |
---|---|
1/*- 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department, and code derived from software contributed to --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: Utah $Hdr: mem.c 1.13 89/10/08$ 40 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91 | 1/*- 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department, and code derived from software contributed to --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: Utah $Hdr: mem.c 1.13 89/10/08$ 40 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91 |
41 * $Id: mem.c,v 1.3 1993/10/16 14:15:06 rgrimes Exp $ | 41 * $Id: mem.c,v 1.4 1993/11/22 09:46:45 davidg Exp $ |
42 */ 43 44/* 45 * Memory special file 46 */ 47 48#include "param.h" 49#include "conf.h" --- 9 unchanged lines hidden (view full) --- 59#include "vm/vm_param.h" 60#include "vm/lock.h" 61#include "vm/vm_statistics.h" 62#include "vm/pmap.h" 63#include "vm/vm_prot.h" 64 65extern char *vmmap; /* poor name! */ 66/*ARGSUSED*/ | 42 */ 43 44/* 45 * Memory special file 46 */ 47 48#include "param.h" 49#include "conf.h" --- 9 unchanged lines hidden (view full) --- 59#include "vm/vm_param.h" 60#include "vm/lock.h" 61#include "vm/vm_statistics.h" 62#include "vm/pmap.h" 63#include "vm/vm_prot.h" 64 65extern char *vmmap; /* poor name! */ 66/*ARGSUSED*/ |
67int |
|
67mmclose(dev, uio, flags) 68 dev_t dev; 69 struct uio *uio; 70 int flags; 71{ 72 struct syscframe *fp; 73 74 switch (minor(dev)) { 75 case 14: 76 fp = (struct syscframe *)curproc->p_regs; 77 fp->sf_eflags &= ~PSL_IOPL; 78 break; 79 default: 80 break; 81 } 82 return(0); 83} 84/*ARGSUSED*/ | 68mmclose(dev, uio, flags) 69 dev_t dev; 70 struct uio *uio; 71 int flags; 72{ 73 struct syscframe *fp; 74 75 switch (minor(dev)) { 76 case 14: 77 fp = (struct syscframe *)curproc->p_regs; 78 fp->sf_eflags &= ~PSL_IOPL; 79 break; 80 default: 81 break; 82 } 83 return(0); 84} 85/*ARGSUSED*/ |
86int |
|
85mmopen(dev, uio, flags) 86 dev_t dev; 87 struct uio *uio; 88 int flags; 89{ 90 struct syscframe *fp; 91 92 switch (minor(dev)) { 93 case 14: 94 fp = (struct syscframe *)curproc->p_regs; 95 fp->sf_eflags |= PSL_IOPL; 96 break; 97 default: 98 break; 99 } 100 return(0); 101} 102/*ARGSUSED*/ | 87mmopen(dev, uio, flags) 88 dev_t dev; 89 struct uio *uio; 90 int flags; 91{ 92 struct syscframe *fp; 93 94 switch (minor(dev)) { 95 case 14: 96 fp = (struct syscframe *)curproc->p_regs; 97 fp->sf_eflags |= PSL_IOPL; 98 break; 99 default: 100 break; 101 } 102 return(0); 103} 104/*ARGSUSED*/ |
105int |
|
103mmrw(dev, uio, flags) 104 dev_t dev; 105 struct uio *uio; 106 int flags; 107{ 108 register int o; 109 register u_int c, v; 110 register struct iovec *iov; --- 146 unchanged lines hidden --- | 106mmrw(dev, uio, flags) 107 dev_t dev; 108 struct uio *uio; 109 int flags; 110{ 111 register int o; 112 register u_int c, v; 113 register struct iovec *iov; --- 146 unchanged lines hidden --- |