Commit Graph

221 Commits

Author SHA1 Message Date
cgd 62034405e6 allow kmem_malloc to return NULL if canwait is set and there's no map space
left, rather than panic()ing.  This allows callers to set their own policy
for how to handle the shortage.  Add a few comments.
1996-06-13 16:52:06 +00:00
pk 7acbd9511d Make v_swpin & v_swpout tick. 1996-05-29 21:20:11 +00:00
mrg 047dfa8524 count pagein faults in struct user. (from kenneth stailey pr#1397]) 1996-05-20 17:40:02 +00:00
ragge 621153ce0e The unexpected remove of active kstack does happen on vax also,
not only on pc532. I've verivied that this "fix" work.
1996-05-19 10:00:38 +00:00
christos a818b81625 Added missing prototypes from <sys/cpu.h> 1996-04-23 12:25:23 +00:00
pk 37a292dea0 Make prototyping of most functions conditional on `PMAP_EXCLUDE_DECLS'.
This allows MD pmap.h to implement access to those functions via pointers.
1996-03-31 22:15:32 +00:00
christos ff63e6c744 Change %r -> %: as for recursive printf's 1996-03-30 21:50:45 +00:00
christos 3cc52443b5 Fix vm_offset_t (unsigned long) and vm_size_t (unsigned long) printf arguments
to %lx and %ld instead of %x and %d.
1996-03-16 23:15:18 +00:00
gwr f6925cfbf3 Replace vm_object_prefer with PMAP_PREFER. 1996-02-28 22:39:13 +00:00
gwr fdb309615e Remove vm_object_prefer. VM code now calls PMAP_PREFER directly. 1996-02-28 22:35:35 +00:00
mycroft 8d110517c8 We no longer need the old hack for allocating the u-area on the i386. 1996-02-18 22:53:43 +00:00
christos c048d7ba68 fix a printf warning and add pmap_page_index declaration 1996-02-12 21:51:52 +00:00
christos d0fd3d7e62 Don't declare pmap_page_index for now. It will break the arm port.
This clearly needs to be fixed. I would like to declare it:

    __pure u_int     pmap_page_index __P((vm_offset_t));

but at least the arm port wants it signed [since it tests for -1 all over
the place]. Can we have this fixed please?
1996-02-10 00:30:39 +00:00
christos b7b8db60ac change pmap_page_index to return __pure u_int, like in the majority of
the ports
1996-02-10 00:20:09 +00:00
christos 03b1ad4cb4 One more cleanup pass to change %x to %p for pointers 1996-02-10 00:07:59 +00:00
christos 46d49e500e Account for __FORK_BRAINDAMAGE.. 1996-02-05 20:32:25 +00:00
christos bcabcefdcd VM prototype changes 1996-02-05 01:53:47 +00:00
christos bac60f4e4e Remove unused argument from vsunlock 1996-02-04 02:09:41 +00:00
mycroft fbb022ab48 Trivial change for consistency. 1996-01-31 03:11:16 +00:00
mycroft ebfe9ee154 Minor changes. 1995-12-21 04:44:27 +00:00
mycroft fee1a345eb Only expect vm_fork() to return if __FORK_BRAINDAMAGE is defined.
Eliminate unused third arg to vm_fork().
1995-12-09 04:28:16 +00:00
pk 785c98a0cc Oops. 1995-12-06 00:38:11 +00:00
pk 801712f01a Extend use of vm_object_prefer() to vm_allocate_with_pager().
Make vm_object_prefer() call MD aligner for "pageless" objects too,
so we can have more control over the virtual address to be used.

Implementation could be simpler if we by-pass the object to mapped, but
we'd loose the ability to adapt alignment to objects that were previously
mmap'ed with MAP_FIXED on.
1995-12-05 22:54:36 +00:00
mycroft 2dd293d3c3 Add hooks for COMPAT_FREEBSD, from Noriyuki Soda. 1995-10-10 01:26:36 +00:00
mycroft 245f292fed Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:25:19 +00:00
thorpej fbbf585f72 Remove spurious (and incorrect) prototype for swapon(), pointed out
by Chris Demetriou.
1995-09-27 20:30:17 +00:00
thorpej 7160dfc805 Make system calls conform to a standard prototype and bring those
prototypes into scope.
1995-09-19 21:57:36 +00:00
gwr 5520ccdbf9 Preserve miniroot when (swdevt[i].sw_vp == rootvp) 1995-09-18 21:21:00 +00:00
mycroft 67daa4706d Add PHOLD() and PRELE() macros, used to hold a process in core and release it. 1995-08-13 09:04:43 +00:00
cgd 4ec7eec85b don't forget the 'dev' argument to physio(). pointed out by der Mouse
and others.
1995-07-19 13:04:02 +00:00
pk 7ac7bdf204 Unlock internal objects too in vm_object_terminate(). 1995-07-13 12:35:29 +00:00
cgd 21d1e8d60f fix bug in load average calculation that prevented processes which were
uninterruptibly sleeping for a short period from being counted.
1995-07-08 03:12:22 +00:00
mycroft 7263209ce6 Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-04 07:15:28 +00:00
cgd cfbb9c7cfe no longer needs machine/cpu.h, and use new name for the 'broken swap' define 1995-06-28 02:58:51 +00:00
leo f205966027 The atari specific code can be removed now it is using MACHINE_NONCONTIG. 1995-06-26 14:40:11 +00:00
cgd 7bd5b4bfa8 oops; vm_pageout.c should include machine/cpu.h, _not_ vm_pager.c 1995-05-07 19:27:27 +00:00
cgd cf08de5cf0 needs machine/cpu.h 1995-05-07 16:22:40 +00:00
cgd 0b2ce5d881 delete some cruft, don't swap if BROKEN_SWAP defined, call cpu_swapout rather than #ifdef 1995-05-05 03:35:39 +00:00
mycroft 5f41ce9281 Correct checks for NULLs in pagertab. 1995-04-15 05:11:35 +00:00
mycroft 68c8c80929 kernel_pmap --> pmap_kernel() 1995-04-10 16:48:27 +00:00
briggs 6efcd1b6d4 KERNEL -> _KERNEL 1995-03-29 21:57:43 +00:00
cgd 9141ec70a1 change needed for atari; recycle some code for the i386 that was in Lite
that we don't use, but is used by the atari now.  (it should change
to MACHINE_NONCONTIG, too...)
1995-03-27 09:09:05 +00:00
jtc f76f1f89ad KERNEL -> _KERNEL 1995-03-26 20:35:13 +00:00
mycroft 57e6889435 Make memory map syscalls consistently use size_t. 1995-03-09 17:28:28 +00:00
cgd 94d77171f9 need compat_43_getpagesize on COMPAT_OSF1 1995-03-08 01:46:53 +00:00
mycroft 3d869b0608 Fix two off-by-one errors. 1995-01-09 17:36:48 +00:00
cgd 70f70a3122 make grow's arguments type-correct. 1995-01-09 02:48:03 +00:00
cgd 4b5b562e89 turn spaces to tabs 1995-01-09 02:47:38 +00:00
cgd d158991669 don't wrap lines 1995-01-09 02:47:23 +00:00
cgd 1af9a586a5 fix vm_page_startup's return type, kill an odd 'register' 1995-01-09 02:46:41 +00:00