History log of /netbsd/lib/libkvm/kvm_sparc.c (Results 1 – 25 of 36)
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.


# 2ef45413 31-Oct-2015 nakayama <nakayama@NetBSD.org>

Use PRIxPADDR instead of type casting.


# 176e1996 07-Oct-2015 martin <martin@NetBSD.org>

Fix the -m32 compat build for sparc64 after recent sparc/include/types.h
changes. XXX I suspect this variant has not been tested in real life.


# 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 ...


# 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 ...


# ed79731b 25-Oct-2008 mrg <mrg@NetBSD.org>

use <sparc/pmap.h> and <sparc/kcore.h> so this builds properly with
a 64 bit "cc -m32".


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

Handle reading from raw disk devices.


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


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

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


# 88199bcb 22-Sep-2001 mrg <mrg@NetBSD.org>

undefine VA_VPG and VA_OFF before defining them.


# 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.


# 934ef164 04-Oct-2000 sommerfeld <sommerfeld@NetBSD.org>

Format size mismatch


# 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


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

More trailing white space.


# 2998626f 01-Feb-1999 mrg <mrg@NetBSD.org>

uh...make this build on the sparc again...or something. i've had
to pull a few #define's from the sparc64 include's into this file,
renamed so that they don't break the sparc64. this is really hack

uh...make this build on the sparc again...or something. i've had
to pull a few #define's from the sparc64 include's into this file,
renamed so that they don't break the sparc64. this is really hacky,
and should be fixed somehow. if the sparc is going to know about
32bit sparc64 kernels, the information necessary to get this needs
to exist somewhere for it to grab, not for duplication :(

show more ...


# d2aa2f50 30-Jan-1999 eeh <eeh@NetBSD.org>

Need to be able to handle sparc64 executables as well.


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

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


# 98de63c4 15-Mar-1998 pk <pk@NetBSD.org>

No need for autoconf.h


# 0b7831a3 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# 88b52f5f 10-Oct-1997 mrg <mrg@NetBSD.org>

clean WARNS on the sparc.


# 7dad7db4 20-Sep-1997 pk <pk@NetBSD.org>

The `cpu_kcore' header has changed allowing libkvm to be independent of
the kernel's link address (KERNBASE).


# b4119f6b 15-Aug-1997 mikel <mikel@NetBSD.org>

use <sys/cdefs.h> __RCSID() macro


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

Add _kvm_mdopen()


12