History log of /netbsd/lib/libkvm/kvm_alpha.c (Results 1 – 25 of 28)
Revision Date Author Comments
# 62e1e7cd 10-Jan-2022 christos <christos@NetBSD.org>

Get rid of usrstack/USRSTACK. Document that the old version of getargv is
broken because of ASLR.


# 2b9c4569 19-Feb-2014 dsl <dsl@NetBSD.org>

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 f

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.

show more ...


# d528aa82 27-Jan-2014 matt <matt@NetBSD.org>

Add missing __RCSID("$NetBSD$");


# 962a341d 20-Sep-2010 jym <jym@NetBSD.org>

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, pa

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

show more ...


# 6dc46b92 19-Sep-2010 jym <jym@NetBSD.org>

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

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

show more ...


# a7a2d171 15-Jan-2008 ad <ad@NetBSD.org>

Handle reading from raw disk devices.


# b976c559 16-May-2003 wiz <wiz@NetBSD.org>

Consistently spell "crash dump" as two separate words. From jmc@openbsd.


# cc1db076 09-Apr-2003 nathanw <nathanw@NetBSD.org>

Just use PAGE_SHIFT from <machine/vmparam.h> instead of going through
hoops to read and cache the value from the crash dump header.


# 55c1d5c2 05-Aug-2001 matt <matt@NetBSD.org>

Include <machine/vmparam.h> for VM_MIN_*...


# cce919e0 05-Aug-2001 matt <matt@NetBSD.org>

Don't include <machine/pmap.h> and <machine/vmparam.h> if _KERNEL isn't
defined. Include them explicitly in the few kvm_arch.c that need them.


# 3b8ac18d 29-Jun-2000 mrg <mrg@NetBSD.org>

<vm/vm.h> -> <uvm/uvm_extern.h>


# 10a6db97 26-Jun-2000 mrg <mrg@NetBSD.org>

remove redundant vm includes


# d220ca5b 14-Jun-2000 cgd <cgd@NetBSD.org>

fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.


# f68ec00b 02-Jul-1999 simonb <simonb@NetBSD.org>

More trailing white space.


# 360b92c1 17-Aug-1998 thorpej <thorpej@NetBSD.org>

vm_size_t -> vaddr_t, thanks Matt Thomas for pointing it out.


# bf8f319d 01-Aug-1998 thorpej <thorpej@NetBSD.org>

Remove some lint.


# 55c7ea7c 30-Jun-1998 thorpej <thorpej@NetBSD.org>

Use pread(2) and pwrite(2) rather than lseek(2)/{read,write}(2).


# aa9e487d 25-Mar-1998 thorpej <thorpej@NetBSD.org>

Don't rely on a constant page shift value; dynamically compute it based
on the page size in the crash dump header.


# c88048ed 03-Mar-1998 thorpej <thorpej@NetBSD.org>

Update for changes to <machine/pte.h>


# 6c0b8a86 14-Feb-1998 cgd <cgd@NetBSD.org>

adjust changes in alpha's kcore.h.


# 0e2ebc35 02-Nov-1997 ross <ross@NetBSD.org>

--Fix k1seg translation, which has been broken since
--10/10/97 when a WARNS "fix" was put in that broke
--kernel core dump stack backtrace and other
--things that go thru libkvm.


# 395c20ea 10-Oct-1997 mrg <mrg@NetBSD.org>

clean up WARNS on the alpha.


# f6385749 12-Aug-1997 gwr <gwr@NetBSD.org>

Add _kvm_mdopen()


# 1d7d5ec2 01-Oct-1996 cgd <cgd@NetBSD.org>

add support for real KV addresses, and clean up some.


# 4540a28e 01-Oct-1996 cgd <cgd@NetBSD.org>

Real alpha support, minus actual KV -> physical translation. (Does K0SEG ->
physical translation, though, which is enough for e.g. dmesg and vmstat -i.)


12