[BACK]Return to kvm_i386.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libkvm

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

Diff for /src/lib/libkvm/kvm_i386.c between version 1.21.16.2 and 1.21.16.3

version 1.21.16.2, 2008/01/09 01:36:26 version 1.21.16.3, 2008/03/23 00:40:27
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      kvm_i386.c,v 1.21.16.2 2008/01/09 01:36:26 matt Exp     */
   
 /*-  /*-
  * Copyright (c) 1989, 1992, 1993   * Copyright (c) 1989, 1992, 1993
Line 38 
Line 38 
 #if 0  #if 0
 static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";  static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
 #else  #else
 __RCSID("$NetBSD$");  __RCSID("kvm_i386.c,v 1.21.16.2 2008/01/09 01:36:26 matt Exp");
 #endif  #endif
 #endif /* LIBC_SCCS and not lint */  #endif /* LIBC_SCCS and not lint */
   
Line 118  _kvm_kvatop(kd, va, pa)
Line 118  _kvm_kvatop(kd, va, pa)
          * Find and read the page directory entry.           * Find and read the page directory entry.
          */           */
         pde_pa = cpu_kh->pdppaddr + (pl2_pi(va) * sizeof(pd_entry_t));          pde_pa = cpu_kh->pdppaddr + (pl2_pi(va) * sizeof(pd_entry_t));
         if (pread(kd->pmfd, (void *)&pde, sizeof(pde),          if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde),
             _kvm_pa2off(kd, pde_pa)) != sizeof(pde)) {              _kvm_pa2off(kd, pde_pa)) != sizeof(pde)) {
                 _kvm_syserr(kd, 0, "could not read PDE");                  _kvm_syserr(kd, 0, "could not read PDE");
                 goto lose;                  goto lose;
Line 140  _kvm_kvatop(kd, va, pa)
Line 140  _kvm_kvatop(kd, va, pa)
                 return (int)(NBPD_L2 - page_off);                  return (int)(NBPD_L2 - page_off);
         }          }
         pte_pa = (pde & PG_FRAME) + (pl1_pi(va) * sizeof(pt_entry_t));          pte_pa = (pde & PG_FRAME) + (pl1_pi(va) * sizeof(pt_entry_t));
         if (pread(kd->pmfd, (void *) &pte, sizeof(pte),          if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte),
             _kvm_pa2off(kd, pte_pa)) != sizeof(pte)) {              _kvm_pa2off(kd, pte_pa)) != sizeof(pte)) {
                 _kvm_syserr(kd, 0, "could not read PTE");                  _kvm_syserr(kd, 0, "could not read PTE");
                 goto lose;                  goto lose;

Legend:
Removed from v.1.21.16.2  
changed lines
  Added in v.1.21.16.3

CVSweb <webmaster@jp.NetBSD.org>