[BACK]Return to mem.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / i386

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/i386/i386/Attic/mem.c between version 1.47 and 1.47.4.1

version 1.47, 2000/11/14 22:55:06 version 1.47.4.1, 2001/03/05 22:49:13
Line 51 
Line 51 
 #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

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.47.4.1

CVSweb <webmaster@jp.NetBSD.org>