[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 and 1.21.16.1

version 1.21, 2004/08/27 01:13:31 version 1.21.16.1, 2007/11/06 23:11:34
Line 117  _kvm_kvatop(kd, va, pa)
Line 117  _kvm_kvatop(kd, va, pa)
         /*          /*
          * Find and read the page directory entry.           * Find and read the page directory entry.
          */           */
         pde_pa = cpu_kh->pdppaddr + (pdei(va) * sizeof(pd_entry_t));          pde_pa = cpu_kh->pdppaddr + (pl2_i(va) * sizeof(pd_entry_t));
         if (pread(kd->pmfd, (void *)&pde, sizeof(pde),          if (pread(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");
Line 131  _kvm_kvatop(kd, va, pa)
Line 131  _kvm_kvatop(kd, va, pa)
                 _kvm_err(kd, 0, "invalid translation (invalid PDE)");                  _kvm_err(kd, 0, "invalid translation (invalid PDE)");
                 goto lose;                  goto lose;
         }          }
         pte_pa = (pde & PG_FRAME) + (ptei(va) * sizeof(pt_entry_t));          pte_pa = (pde & PG_FRAME) + (pl1_i(va) * sizeof(pt_entry_t));
         if (pread(kd->pmfd, (void *) &pte, sizeof(pte),          if (pread(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");

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.21.16.1

CVSweb <webmaster@jp.NetBSD.org>