[BACK]Return to kvm_hppa.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_hppa.c between version 1.2 and 1.2.22.1

version 1.2, 2003/08/07 16:44:37 version 1.2.22.1, 2008/03/23 00:40:27
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      kvm_hppa.c,v 1.2 2003/08/07 16:44:37 agc 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_hppa.c,v 1.2 2003/08/07 16:44:37 agc Exp");
 #endif  #endif
 #endif /* LIBC_SCCS and not lint */  #endif /* LIBC_SCCS and not lint */
   
Line 126  _kvm_kvatop(kd, va, pa)
Line 126  _kvm_kvatop(kd, va, pa)
          * Find and read the page directory entry.           * Find and read the page directory entry.
          */           */
         pde_pa = cpu_kh->ptdpaddr + (pdei(va) * sizeof(pd_entry_t));          pde_pa = cpu_kh->ptdpaddr + (pdei(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)
                 goto lose;                  goto lose;
         }          }
         pte_pa = (pde & PG_FRAME) + (ptei(va) * sizeof(pt_entry_t));          pte_pa = (pde & PG_FRAME) + (ptei(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.2  
changed lines
  Added in v.1.2.22.1

CVSweb <webmaster@jp.NetBSD.org>