Commit Graph

11 Commits

Author SHA1 Message Date
Peter Wemm 97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
John Polstra a150a878d5 Handle ELF symbols better. This fixes "vmstat -i" for the case
where "/var/db/kvm_kernel.db" exists.

Note, kvm_mkdb tries to be clever, and skips rebuilding the database
if it thinks it's already up to date.  To see the effects of this
fix, you may need to manually delete "/var/db/kvm_kernel.db" and
then run "kvm_mkdb".
1998-10-28 06:39:41 +00:00
Doug Rabson 744857bc1c Update to use the new elf headers. 1998-08-17 08:47:19 +00:00
Philippe Charnier e2954565f3 Statisize usage(). Add return(0) for -wall. 1997-09-24 06:44:12 +00:00
Peter Wemm 046e06a57c Initial support for dealing with an elf /kernel. This is a loose hybrid
of OpenBSD's elf nlist code for this, and our a.out version.  The OpenBSD
version was mainly a seek/read system with a mmap of the string table,
this one simply mmap's the lot (like the a.out version).

Obtained from:  a fair chunk from OpenBSD
1997-08-30 23:35:00 +00:00
Alexander Langer 8abdc2eb40 Sweep through the tree fixing mmap() usage:
- Use MAP_FAILED instead of the constant -1 to indicate
    failure (required by POSIX).
  - Removed flag arguments of '0' (required by POSIX).
  - Fixed code which expected an error return of 0.
  - Fixed code which thought any address with the high bit set
    was an error.
  - Check for failure where no checks were present.

Discussed with:	bde
1997-01-16 21:58:40 +00:00
Rodney W. Grimes 709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
Poul-Henning Kamp bb04461ba0 Speed kvm_mkdb up by a factor 5 or thereabout. Rewrote all the fseek/fread
nonsense to use a mmap'ed file instead and told the DB/hash what we are up to.

dev_mkdb could maybe benefit from the same treatment.
1995-01-10 18:37:12 +00:00
Geoff Rehmet 408dc3832a The FreeBSD bootloader loads the kernel at the a_entry address in the
kernel a.out file, meaning that this is where the kernel starts.
(not at KERNBASE) - KERNBASE is 0xf0000000, while the kernel loads at
0xf0100000
Reviewed by:
1994-07-22 13:17:07 +00:00
Rodney W. Grimes 8fc3ecbc26 Must now include vm/vm.h and vm/vm_param.h due to the way we define KERNBASE.
Reviewed by:	David Greenman
1994-05-28 04:20:59 +00:00
Rodney W. Grimes dea673e932 BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00