Home | History | Annotate | Download | only in libkvm
History log of /src/lib/libkvm/kvm_sun2.c
RevisionDateAuthorComments
 1.6  14-Sep-2011  christos more sys/param.h additions
 1.5  20-Sep-2010  jym 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.4  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.3  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.2  16-May-2003  wiz Consistently spell "crash dump" as two separate words. From jmc@openbsd.
 1.1  21-May-2001  fredette branches: 1.1.2;
Added support for sun2 kernel cores.
 1.1.2.2  21-May-2001  fredette Added support for sun2 kernel cores.
 1.1.2.1  21-May-2001  fredette file kvm_sun2.c was added on branch nathanw_sa on 2001-05-21 14:56:31 +0000

RSS XML Feed