Home | History | Annotate | Download | only in libkvm
History log of /src/lib/libkvm/kvm_vax.c
RevisionDateAuthorComments
 1.21  10-Jan-2022  christos Get rid of usrstack/USRSTACK. Document that the old version of getargv is
broken because of ASLR.
 1.20  19-Feb-2014  dsl Remove the #include <sys/user.h> from all of libkvm.
sys/user.h is a stub that just #includes sys/pcb.h.
There are no 'struct pcb' anywhere in here, so I'm extremely doubtful
any of the builds will fail.
OTOH it might be relying on a header that pcb.h includes.
In any case i386 and amd64 build.
 1.19  27-Jan-2014  matt Add missing __RCSID("$NetBSD$");
 1.18  20-Sep-2010  jym branches: 1.18.6; 1.18.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.17  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.16  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.15  16-May-2003  wiz Consistently spell "crash dump" as two separate words. From jmc@openbsd.
 1.14  29-Nov-2001  thorpej branches: 1.14.2;
Rename a local to avoid a -Wshadow warning.
 1.13  07-Sep-2001  chuck include machine/vmparam.h so it will compile once again
 1.12  27-Oct-2000  matt be consistent in the use of u_long. eventually they should be uintptr_t.
 1.11  10-Oct-2000  he Use %lx instead of %x with _kvm_err when arg is u_long.
 1.10  29-Jun-2000  mrg <vm/vm.h> -> <uvm/uvm_extern.h>
 1.9  26-Jun-2000  mrg remove redundant vm includes
 1.8  02-Jul-1999  simonb branches: 1.8.8;
More trailing white space.
 1.7  03-Feb-1998  perry branches: 1.7.2;
remove obsolete register declarations
 1.6  20-Oct-1997  ragge Fix warnings.
 1.5  12-Aug-1997  gwr Add _kvm_mdopen()
 1.4  07-Jun-1997  ragge Vax now uses new libkvm.
 1.3  18-Mar-1996  thorpej RCS id police.
 1.2  25-Apr-1995  ragge kvm_vax.c added.
 1.1  17-Apr-1995  ragge kvm machine specific code for VAX.
 1.7.2.2  27-Oct-2000  he Pull up revision 1.12 (requested by matt):
Some more format / type fixes.
 1.7.2.1  27-Oct-2000  he Pull up revision 1.11 (requested by he):
Use %lx to format u_long parameter.
 1.8.8.1  18-Oct-2000  tv Pullup 1.11 [he]:
Use %lx instead of %x with _kvm_err when arg is u_long.
 1.14.2.2  29-Nov-2001  thorpej Rename a local to avoid a -Wshadow warning.
 1.14.2.1  29-Nov-2001  thorpej file kvm_vax.c was added on branch nathanw_sa on 2001-11-29 23:32:43 +0000
 1.18.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.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")

RSS XML Feed