[BACK]Return to md.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev

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

Diff for /src/sys/dev/md.c between version 1.16 and 1.17

version 1.16, 1998/02/10 14:09:18 version 1.17, 1998/08/13 02:10:50
Line 438  md_ioctl_kalloc(sc, umd, proc)
Line 438  md_ioctl_kalloc(sc, umd, proc)
         struct md_conf *umd;          struct md_conf *umd;
         struct proc     *proc;          struct proc     *proc;
 {  {
         vm_offset_t addr;          vaddr_t addr;
         vm_size_t  size;          vsize_t  size;
   
         /* Sanity check the size. */          /* Sanity check the size. */
         size = umd->md_size;          size = umd->md_size;
Line 470  md_ioctl_server(sc, umd, proc)
Line 470  md_ioctl_server(sc, umd, proc)
         struct md_conf *umd;          struct md_conf *umd;
         struct proc     *proc;          struct proc     *proc;
 {  {
         vm_offset_t end;          vaddr_t end;
         int error;          int error;
   
         /* Sanity check addr, size. */          /* Sanity check addr, size. */
         end = (vm_offset_t) (umd->md_addr + umd->md_size);          end = (vaddr_t) (umd->md_addr + umd->md_size);
   
         if ((end >= VM_MAXUSER_ADDRESS) ||          if ((end >= VM_MAXUSER_ADDRESS) ||
                 (end < ((vm_offset_t) umd->md_addr)) )                  (end < ((vaddr_t) umd->md_addr)) )
                 return EINVAL;                  return EINVAL;
   
         /* This unit is now configured. */          /* This unit is now configured. */

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

CVSweb <webmaster@jp.NetBSD.org>