thorpej
a180cee23b
Pool deals fairly well with physical memory shortage, but it doesn't
...
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a
separate structure. The pool references this structure, rather than
the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
to become available, but will still fail if it cannot callocate KVA
space for the pages. If this happens, carefully drain all pools using
the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
some pages, and use that information to make draining easier and more
efficient.
* Get rid of PR_URGENT. There was only one use of it, and it could be
dealt with by the caller.
From art@openbsd.org .
2002-03-08 20:48:27 +00:00
tsutsui
3c8b0446fe
Change type of dumpmag to u_int32_t since it is actually
...
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.
2002-03-06 13:10:18 +00:00
simonb
9bcc70fa1d
Don't cast argument to ffs() to long.
...
Per discussion on port-alpha, noticed by Robert Elz.
2002-03-05 09:40:38 +00:00
simonb
d224e9dcc0
Indent by tab and not two spaces.
2002-03-05 00:38:41 +00:00
simonb
de2043f47e
Sort function declarations.
...
Fix some KNF whitespace nits.
2002-03-05 00:34:14 +00:00
simonb
6f0fb25121
Don't need to declare phys_map - it is declared in <uvm/uvm_extern.h>.
2002-03-04 02:43:22 +00:00
simonb
9a942a34e0
Don't use local extern declarations for the mountroot variable or
...
declare local prototypes for nfs_mountroot() or md_root_setconf().
2002-03-04 02:25:21 +00:00
simonb
4324f37586
Use "#define<tab>".
2002-02-28 03:17:23 +00:00
christos
e8116a8f5b
- Use DEV_ constants, instead of documenting the numbers!
...
- Delete cdev_decl(mm); where appropriate, and other hand-crufting [hi powerpc!]
2002-02-27 01:20:51 +00:00
simonb
d9ab16ba2f
Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
...
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
2002-02-26 15:13:19 +00:00
gmcgarry
0166df69f5
Implement DIOCGDEFLABEL ioctl.
2002-02-23 21:55:25 +00:00
gmcgarry
49fd989e9b
Unnecessary to cast splx() to void.
2002-02-23 21:54:31 +00:00
gmcgarry
562fb80d45
Make the keyboard attach printf a little less cryptic.
2002-02-23 21:53:25 +00:00
gmcgarry
5382848ec7
Recognise md as a valid root device. And since md disks don't get
...
device_register()'d, don't go looking on our device list for them.
Ramdisk kernel now boot.
2002-02-23 21:52:25 +00:00
gmcgarry
42abedb038
Trim down to 1.2MB ramdisk for booting on 4MB machines.
2002-02-23 21:48:08 +00:00
gmcgarry
19f1fd96ca
Don't need printer support during installation.
2002-02-23 21:47:07 +00:00
gmcgarry
6a45dcbe5d
Cleanup options for binary compatibility. HPUX and SUNOS are known to work.
2002-02-23 21:46:24 +00:00
wiz
37e458fa45
strategy should have an 'r'. Inspired by similar change in OpenBSD.
2002-02-19 17:09:40 +00:00
gmcgarry
4c43f7cf1a
Bump ramdisk to 2MB.
2002-02-13 06:02:46 +00:00
wiz
9baadd8ee5
"doesn't" should have an 's'.
2002-02-11 11:19:26 +00:00
wiz
66df0333a1
s/seperate/separate/
2002-02-11 10:44:38 +00:00
gmcgarry
9be34a7e49
Up-to-date kernels for installation media.
2002-02-10 01:07:55 +00:00
gmcgarry
839f3d5b8f
Don't need these.
2002-02-10 01:06:32 +00:00
gmcgarry
d934377152
Implement DIOCGDEFLABEL ioctl.
2002-02-10 00:49:57 +00:00
gmcgarry
0b0cdf630f
Some assemblers will optimise addresses within .text into pc-relative
...
references. Bogus for our MMU trampoline code which is relocated to
the last physical page before being invoked. This hack enforces all
addresses wrt the MMU trampoline code not to be pc-relative.
2002-02-10 00:47:59 +00:00
gmcgarry
70d5890284
Use LIST_INSERT_HEAD() to access the head on the interrupt list.
2002-02-10 00:42:15 +00:00
gmcgarry
25a639e366
Also don't print \n without DIAGNOSTIC.
2002-02-10 00:41:21 +00:00
lukem
971861de37
use ${INSTALL_FILE} as appropriate
2002-02-09 09:35:59 +00:00
gmcgarry
787dd8e0e3
Enter DDB on break if console.
2002-02-08 07:26:16 +00:00
gmcgarry
dad6eb472b
Remove old, custom files.
2002-02-08 06:17:03 +00:00
gmcgarry
b7ac65ebe2
Use pmap_kenter_pa() for msgbuf
2002-02-02 04:17:37 +00:00
jdolecek
6d265bd894
add options PIPE_SOCKETPAIR to individual kernel configs
...
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
2002-01-27 13:23:08 +00:00
jdolecek
ff8305bbac
Switch to MI dev/md_root.c for archs which don't have any special
...
memory disk hooks (i.e. everything except atari).
2002-01-21 21:56:57 +00:00
oster
39b858e3bf
Add new RF_* options for RAIDframe bits that are no longer built by default.
...
While we're here, enable RAIDframe (and RAID_AUTOCONFIG) by default for
architectures that I'm comfortable can deal with it being on by default.
Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
2002-01-19 18:45:06 +00:00
manu
af62e00622
Added clockctl
2002-01-12 13:11:08 +00:00
chs
9451559ef4
pmap_page_protect(VM_PROT_NONE) must remove all mappings in the PV list,
...
even if they are wired. we need to be able to remove all mappings to
pages that are being freed due to (eg.) file truncation.
2002-01-02 00:51:33 +00:00
martin
b506d6e135
Add PPPoE to all generic kernels that should be able to use it.
...
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
thorpej
86a77080a5
Remove (incorrect) extern decl of emul_hpux.
2001-12-26 19:08:11 +00:00
thorpej
63d3d9fe5a
Multi-line string literals are not in ANSI C; don't use them.
2001-12-26 17:37:59 +00:00
tsutsui
20d126a5b4
Fix comments for ref-count of PT pages.
2001-12-16 03:53:21 +00:00
gmcgarry
ac1f9fcc8c
When attaching as console, unmap the device on failure.
2001-12-16 02:02:05 +00:00
gmcgarry
25be1c42e2
Arrange in correct order.
2001-12-14 08:39:11 +00:00
gmcgarry
9370d5d4ef
Update hardware drivers with console attachments to the new console
...
attachment interface.
2001-12-14 08:34:27 +00:00
gmcgarry
8038726863
Update the console attach interface now that bus_space is available.
...
Basically means that hardware drivers with console attachments are
now largely machine independent.
2001-12-14 08:29:24 +00:00
gmcgarry
8883bd8ba3
Make the ite interface look a little more like wscons. This is done
...
by allowing the hardware drivers to register keyboard and display
support with the ite framework. Removes the dependence on the hil
keyboard and should make support for dnkbd easier.
An interim fix until wscons arrives.
2001-12-14 08:25:40 +00:00
gmcgarry
eed7e1f9a3
include Makefile.buildboot before testing for RELEASEDIR
2001-12-14 07:36:32 +00:00
gmcgarry
5b666cb353
Bump version: Default to BOOTP network boot
2001-12-14 06:08:35 +00:00
gmcgarry
64e7130584
Use bootp, to match the recent change to the bootblocks.
2001-12-14 05:56:59 +00:00
gmcgarry
bdd225baa1
Add a blurb to the top of all GENERIC files. This serves three purposes:
...
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
chs
2dfd15933e
change the reference-counting of PT pages to start from zero instead of
...
one, so that we don't mess up the global count of wired pages by having
the page's wire_count be non-zero when we free the page.
pointed out by Michael Hitch.
2001-12-13 04:39:50 +00:00