summaryrefslogtreecommitdiff
path: root/lib/libkvm
AgeCommit message (Collapse)Author
2008-03-30Unbreak build.Mark Kettenis
2007-10-18Get rid of the silly union for mips pte. No functional change exceptMiod Vallat
pmap.h now includes pte.h.
2007-10-10Make context switching much more MI:Artur Grabowski
- Move the functionality of choosing a process from cpu_switch into a much simpler function: cpu_switchto. Instead of having the locore code walk the run queues, let the MI code choose the process we want to run and only implement the context switching itself in MD code. - Let MD context switching run without worrying about spls or locks. - Instead of having the idle loop implemented with special contexts in MD code, implement one idle proc for each cpu. make the idle loop MI with MD hooks. - Change the proc lists from the old style vax queues to TAILQs. - Change the sleep queue from vax queues to TAILQs. This makes wakeup() go from O(n^2) to O(n) there will be some MD fallout, but it will be fixed shortly. There's also a few cleanups to be done after this. deraadt@, kettenis@ ok
2007-06-18Bring back Mickey's UVM anon change. Testing by thib@, beck@ andPedro Martelletto
ckuethe@ for a while. Okay beck@, "it is good timing" deraadt@.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-19Kernel crash dump support for arm-based platform, with minimal support inMiod Vallat
libkvm, but all the necessary information for a complete _kvm_kvatop() is available in the crash dump.
2007-05-03Enable support for > 512MB of physical memory on mips64 systems, by usingMiod Vallat
XKPHYS instead of KSEG[01] for direct mappings. Then, detect memory above 256MB on O2 by poking at the CRIME registers (ARCbios will not report memory above 256MB, which is mapped above 1GB physical, to the system), and add it to the UVM managed memory. Tested on r5k, rm5200 and r10k with and without more than 256MB, matching hinv reports in all cases. CRIME memory decoding based on a diff from kettenis@ in december 2005.
2007-04-14hide struct process from userland, allow kvm_proc to see it.Marc Espie
okay miod@
2007-04-12move p_limit and p_cred into struct processTed Unangst
leave macros behind for now to keep the commit small ok art beck miod pedro
2007-03-03Kernel crash dumps and associated libkvm bits for landisk.Miod Vallat
2007-02-20Revert PAE pmap for now, until the strange bug is found. This stopsTom Cosgrove
the freezes many of us are seeing (especially on amd64 machines running OpenBSD/i386). Much testing by nick@ (as always - thanks!), hugh@, ian@, kettenis@ and Sam Smith (s (at) msmith (dot) net). Requested by, input from, and ok deraadt@ ok art@, kettenis@, miod@
2007-01-08the advertising clause on these can safely be removedTheo de Raadt
2006-11-29Fix cut'n'paste abuse in error message.Miod Vallat
2006-11-29Sync with struct proc change.Miod Vallat
2006-11-06Minimal lip service for savecore to be happy.Miod Vallat
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2006-07-13Back out the anon change. Apparently it was tested by a few, but most ofTheo de Raadt
us did not see it or get a chance to test it before it was commited. It broke cvs, in the ami driver, making it not succeed at seeing it's devices.
2006-06-21from netbsd: make anons dynamically allocated from pool.Michael Shalayeff
this results in lesse kva waste due to static preallocation of those for every phys page and also every swap page. tested by beck krw miod
2006-06-19Real kvm routines for vax; allows ``target kvm'' to work in gdb for kernelMiod Vallat
crash dumps. ok kettenis@
2006-06-12Use the non-generic SEGSHIFT value in the 020/030 specific codepath.Miod Vallat
2006-06-09proper type and ptdsize checks; had it for three weeks now... sighMichael Shalayeff
2006-05-07Unbreak. Fix some of the lint warnings that mickey reintroduced.Mark Kettenis
ok miod@
2006-04-27detect page table dir size difference for normal and pae modesMichael Shalayeff
(4k vs 16k) and use proper physical address types and page table indexing.
2006-03-31careful cleanup following advice from lint. be very very very carefulTheo de Raadt
with sprinkling in size_t!
2006-03-31ARGSUSED for for a few thingsTheo de Raadt
2006-03-31lint happiness, mostly avoiding variable aliasingTheo de Raadt
2006-03-31kvm_openfiles() should take int flag, not unsignedTheo de Raadt
2006-03-20for some of internal functions use paddr_t where phys addr is intended ↵Michael Shalayeff
insteadd of u_long; miod@ ok
2006-03-14Prevent double-free.Mark Kettenis
ok mickey@, todd@, deraadt@
2005-11-24use WANTLINT= (on all architectures)Theo de Raadt
2005-10-12Use queue macros instead of directly accessing fields. ok millert@Otto Moerbeek
2005-01-14add $OpenBSD$ tag. ok miodKevin Lo
2004-11-22.{N,O}x fixes;Jason McIntyre
2004-09-15Kill (almost all) warnings.Miod Vallat
2004-09-14KVM_NO_FILES is 0x80000000, so arg 4 of kvm_openfiles() must be unsignedTheo de Raadt
int instead of int; millert ok
2004-08-11free memory allocated by kvm_getproc2() in kvm_close()Jared Yanovich
ok deraadt@ millert@
2004-08-06wrong filenameTheo de Raadt
2004-08-06ansiTheo de Raadt
2004-08-06mips alive againPer Fogelstrom
2004-08-05- fix includes needed to compileJared Yanovich
- mdoc and macro fixes - sync to reality - mention where the kinfo_proc type definition can be found ok millert jmc
2004-07-13errno changes, lib major version bumps, and general flag dayMarco S Hyman
To build you must: cd /usr/src && make obj && make includes cd lib/libc && make depend && make && NOMAN=1 sudo make install cd /usr/src && make build
2004-07-03This was supposed to compile.Miod Vallat
2004-07-01if sym has null value -- report as not found; check that kd->vmst is set ↵Michael Shalayeff
before use; millert@ ok
2004-06-24Back out part of last commit; we want to realloc + loop for argv too.Todd C. Miller
2004-06-24Allocate 8 pages for process argv, not one. This should really be ARG_MAXTodd C. Miller
but sysctl_proc_args() needs changes to support that.
2004-06-15knf; ok millertTheo de Raadt
2004-06-14Zero p_schedflags in struct struct kinfo_proc2 for the non-sysctl case.Todd C. Miller
2004-06-13temporary tree building workaround until millert shows upTheo de Raadt
2004-05-05fix va -> pa decode. 'by all means' deraadt@Marco S Hyman
2004-04-28Include db.h, not ndbm.h since this uses db routines and not ndbm.Todd C. Miller