version 1.47, 2000/11/14 22:55:06 |
version 1.47.4.1, 2001/03/05 22:49:13 |
|
|
#include <sys/systm.h> |
#include <sys/systm.h> |
#include <sys/uio.h> |
#include <sys/uio.h> |
#include <sys/malloc.h> |
#include <sys/malloc.h> |
|
#include <sys/lwp.h> |
#include <sys/proc.h> |
#include <sys/proc.h> |
#include <sys/fcntl.h> |
#include <sys/fcntl.h> |
|
|
Line 76 mmopen(dev, flag, mode, p) |
|
Line 77 mmopen(dev, flag, mode, p) |
|
case 14: |
case 14: |
if (flag & FWRITE) { |
if (flag & FWRITE) { |
struct trapframe *fp; |
struct trapframe *fp; |
fp = curproc->p_md.md_regs; |
fp = curproc->l_md.md_regs; |
fp->tf_eflags |= PSL_IOPL; |
fp->tf_eflags |= PSL_IOPL; |
} |
} |
break; |
break; |
Line 198 mmmmap(dev, off, prot) |
|
Line 199 mmmmap(dev, off, prot) |
|
off_t off; |
off_t off; |
int prot; |
int prot; |
{ |
{ |
struct proc *p = curproc; /* XXX */ |
struct proc *p = curproc->l_proc; /* XXX */ |
|
|
/* |
/* |
* /dev/mem is the only one that makes sense through this |
* /dev/mem is the only one that makes sense through this |