Home | History | Annotate | Download | only in libkvm
History log of /src/lib/libkvm/kvm_powerpc64.c
RevisionDateAuthorComments
 1.8  23-Aug-2023  rin libkvm: whitespace
 1.7  10-Jan-2022  christos Get rid of usrstack/USRSTACK. Document that the old version of getargv is
broken because of ASLR.
 1.6  23-Aug-2014  matt #if 0 some code not in use yet
 1.5  27-Jan-2014  matt branches: 1.5.4;
Add missing __RCSID("$NetBSD$");
 1.4  20-Sep-2010  jym branches: 1.4.6; 1.4.12;
Change kvm_pa2off() and kvm_kvatop() prototypes (private to kvm(3)):

-int _kvm_kvatop(kvm_t *, u_long, u_long *);
-off_t _kvm_pa2off(kvm_t *, u_long);
+int _kvm_kvatop(kvm_t *, vaddr_t, paddr_t *);
+off_t _kvm_pa2off(kvm_t *, paddr_t);

Basically, use vaddr_t for VA and paddr_t for PA. In addition, for variables
representing addresses, use paddr_t or vaddr_t, depending on the context.

For most arches, vaddr_t and paddr_t are equivalent to unsigned long. However,
the change was needed for exotic situations, like i386 PAE, were unsigned long
is not suitable for PA which are 64 bits long. As this required a complete
change of the function prototypes, all arches had to be adapted accordingly.

Core files from before this commit should still work with the new code; I did
not see any direct dependency between core's structure and kvatop/pa2off.

The change was compile tested for all arches, as it impacts all of them.

See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html
 1.3  19-Sep-2010  jym Ansify and KNF all functions within kvm(3). No objection on current-users@.

Used as ground for u_long => vaddr_t/paddr_t replacements in kvm(3)
private functions.

Compile tested for all arches. See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html
 1.2  05-Jul-2006  ross disable via radical lobotomy
this can't be properly converted now until kernel includes are available
 1.1  01-Jul-2006  ross ppc64 outline, needs more work
 1.4.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.5.4.1  04-Feb-2015  martin Pull up following revision(s) (requested by chs in ticket #489):
lib/libkvm/kvm_powerpc64.c: revision 1.6

RSS XML Feed