Commit Graph

48839 Commits

Author SHA1 Message Date
peter
5f3f97de55 Checkpoint of a new physical memory backed object type, that does not
have pv_entries.  This is intended for very special circumstances,
eg: a certain database that has a 1GB shm segment mapped into 300
processes.  That would consume 2GB of kvm just to hold the pv_entries
alone.  This would not be used on systems unless the physical ram was
available, as it's not pageable.

This is a work-in-progress, but is a useful and functional checkpoint.
Matt has got some more fixes for it that will be committed soon.

Reviewed by:	dillon
2000-05-21 13:41:29 +00:00
peter
a7e7430603 Ack, I made a typo moments before commit. :-( 2000-05-21 13:00:21 +00:00
peter
154787c368 Implement an optimization of the VM<->pmap API. Pass vm_page_t's directly
to various pmap_*() functions instead of looking up the physical address
and passing that.  In many cases, the first thing the pmap code was doing
was going to a lot of trouble to get back the original vm_page_t, or
it's shadow pv_table entry.

Inspired by: John Dyson's 1998 patches.

Also:
Eliminate pv_table as a seperate thing and build it into a machine
dependent part of vm_page_t.  This eliminates having a seperate set of
structions that shadow each other in a 1:1 fashion that we often went to
a lot of trouble to translate from one to the other. (see above)
This happens to save 4 bytes of physical memory for each page in the
system.  (8 bytes on the Alpha).

Eliminate the use of the phys_avail[] array to determine if a page is
managed (ie: it has pv_entries etc).  Store this information in a flag.
Things like device_pager set it because they create vm_page_t's on the
fly that do not have pv_entries.  This makes it easier to "unmanage" a
page of physical memory (this will be taken advantage of in subsequent
commits).

Add a function to add a new page to the freelist.  This could be used
for reclaiming the previously wasted pages left over from preloaded
loader(8) files.

Reviewed by:	dillon
2000-05-21 12:50:18 +00:00
hoek
54797922e8 Compile in the case that anyone ever actually uses LEAVE_FREE_CHARS.
It's not clear what this does nor why they would do it, but it should
compile, now.  This could be a case where fixing the code so that it
compiles merely masks more devious dysfunctional behaviour.
2000-05-21 05:40:44 +00:00
hoek
7488e9a19b Uh, ya, sure this almost compiled for __bsdi__. NOT!
Note that __bsdi__s_/_i_/_os_/__ has moved this file to dev/ic/ and
has completely removed the non-compiling function from pdq_ifsubr.c and
has completely removed this function and placed it into netinet/if_ether.c
(if, in fact, it wasn't there the whole time).  I was tempted to simply
remove this __bsdi__only__ function.

The function is arp_ifinit().

PR:	kern/7903
2000-05-21 05:33:40 +00:00
hoek
8da2e77b97 Make this compile in case anyone ever wants to use the PC98 booter
on an IBM machine.  This fix matches i386/boot2/boot.c.

PR:	kern/7903
2000-05-21 05:27:56 +00:00
hoek
5add8da7bd The LOCKPARENT flag is singular. It doesn't work causing complications
is also a singular fact.
2000-05-21 03:23:10 +00:00
hoek
330553539f No be needed here --- "typo". 2000-05-21 03:16:35 +00:00
hoek
fc0636b640 Typo in comments explaining what MAN_FILTER is. 2000-05-21 03:14:38 +00:00
hoek
d9fb989735 Typos, missing words. I don't believe any of these are relevant to
translators.
2000-05-21 03:06:28 +00:00
hoek
d9e602e0b6 Fix a memory leak in getent() that occurred when the requested entry
could not be found.

PR:		bin/17084
2000-05-21 02:55:09 +00:00
hoek
b24759e594 Fix a memory leak with lc->lc_cap in login_close().
PR:		bin/17084
2000-05-21 02:50:36 +00:00
hoek
f6e51cb4b5 Once again fix substitution of TMAC_M and TMAC_S_PREFIX in manpages.
PR:		bin/5693 docs/9352
2000-05-21 02:49:14 +00:00
jake
b5ae8cc0c1 Major style cleanup; make ordering and internal use of the macros consistent.
Hopefully enforce KNF conformance.  Add a missing _HEAD_INITIALIZER.

Reviewed by:	archie, phk, bde
	(bde did not like all of it)
Approved by:	mdodd
2000-05-21 01:54:45 +00:00
gallatin
eb1b9d5e82 Prevent vidcontrol -i from crashing alphas
Reported by: Christian Weisgerber <naddy@mips.inka.de>
Approved by: yokota@FreeBSD.ORG
2000-05-21 01:16:47 +00:00
jkh
bf47098393 I've always wanted to be able to dump out the current values of
the mixer in a format suitable for saving and handing off to
mixer(1) at some future date to restore the settings.
Add a -s flag to do this.
2000-05-20 23:25:08 +00:00
ume
1d24fd5aeb IPv6 support. 2000-05-20 18:23:51 +00:00
obrien
1064183c50 Document "-alias". 2000-05-20 18:05:24 +00:00
obrien
d9e31808cd Revert rev 1.10 as I took the bug report too much on face value. The bug
submitter has been refered to the ISC to determine if there his problems
are due to a bug in the script.

As a side note, `man 8 ifconfig' does not show "ifconfig -alias" as being
acceptable, but it is and does server a purpose.
2000-05-20 18:01:05 +00:00
jdp
af1fd915d6 Take crtbegin.c and crtend.c from the new machine-independent
"common" sister directory.
2000-05-20 17:47:29 +00:00
obrien
6e0173f3bf Our `ifconfig' syntax uses "alias" not "-alias".
Submitted by:	Per Kristian Hove <Per.Hove@math.ntnu.no>
2000-05-20 17:47:06 +00:00
nyan
dcd19f39f0 Oops, rman_get_bushandle() should be converted to rman_get_virtual()
if resources are mapped to memory.
2000-05-20 16:15:50 +00:00
obrien
8cdd0ab9d0 ASM_DECLARE_OBJECT_NAME and ASM_FINISH_DECLARE_OBJECT are ELF MI routines
to generate the special .type and .size directives which are used to set
the corresponding fields of the linker symbol table entries in the ELF
object file.  As such they are not i386-specific and thus belong in our
MI header.  Otherwise on the Alpha we don't properly give the type and
size of dynamic symbols.  Bintuil versions past 2.9.1 warn of this and
w/o this change, `ld' generates a lot of warnings during a `make world'.
2000-05-20 10:14:43 +00:00
obrien
86070ff51e Match the include protection with the install location. 2000-05-20 05:45:04 +00:00
grog
54f4f70975 Don't forget 'stripe' and 'mirror' commands when we turn off
debugging.

Submitted-by: mdodd
2000-05-20 03:21:50 +00:00
peter
378d79f685 <machine/lpt.h> does not exist anymore. use <dev/ppbus/lptio.h> now.
Forgotten by: obrien
2000-05-19 22:09:21 +00:00
peter
fb2cd78104 Install /usr/include/dev/ppbus as well as dev/usb 2000-05-19 22:08:18 +00:00
peter
26cdaac156 Add dev/ppbus for lptio.h 2000-05-19 22:07:47 +00:00
msmith
33cffa1c80 Correct the syntax of ROOTDEVNAME and describe it somewhat better. 2000-05-19 20:46:28 +00:00
obrien
ec59c36d2d We use a MI version of this now, which is mostly this file repo copied to
dev/ppbus/lptio.h.
2000-05-19 18:25:23 +00:00
mpp
2e05be029c Update the man page to match utmp.h. 2000-05-19 18:24:23 +00:00
obrien
973582d65e Rather than use a MD lpt.h, we now use the MI lptio.h. 2000-05-19 18:23:48 +00:00
dbaker
dc5f566f2b Correct confusion and differentiate appropriately between GMT and UTC when
date is launched with the "u" argument.  It now operates in the documented
manner.

Fix typo in date man page.

Submitted by:	David McNett <nugget@slacker.com>
2000-05-19 18:02:25 +00:00
nyan
d569e8dbef Sync with sys/i386/conf/GENERIC revisions from 1.246 to 1.256. 2000-05-19 16:36:42 +00:00
nyan
2b80ed9c28 Fixed to support PC-98. 2000-05-19 16:31:45 +00:00
nyan
636a1aa666 Use the rman_get_bustag() and rman_get_bushandle() functions. 2000-05-19 16:19:51 +00:00
joerg
d9a08b6e3e Minor nit: this tar(1) replacement still used /dev/rst0 as its default
device.
2000-05-19 16:02:54 +00:00
nyan
e6fbdc629d Supported the mss on PC-98 and Sound Blaster 98.
Submitted by:	"T.Yamaoka" <taka@windows.squares.net>
2000-05-19 15:41:52 +00:00
dcs
e858d816e8 One of loaders' bugs disappeared somewhere along the way. 2000-05-19 11:15:12 +00:00
tanimura
ae52c651ed Add RSS0262 - 5614Jx3[G] V90+K56Flex Modem.
PR:		kern/18168
Submitted by:	Tony Voet <voet@engineer.com>
2000-05-19 10:02:15 +00:00
des
4546e5da94 Better handling of some boundary conditions.
Submitted by:	ume
2000-05-19 09:45:42 +00:00
kris
1f2890e1d2 fork() -> vfork()
This would have been commit #2 which was "Obtained from: BSD/OS" except
their code is buggy (they call err() if the execl() fails, which will
incorrectly call exit()), so instead this is:

Obtained from:	NetBSD
2000-05-19 09:42:53 +00:00
dcs
1e6440a513 Move man page directives to common/Makefile.inc. 2000-05-19 08:52:16 +00:00
dcs
779a5ff995 This file got repo-copied to common/. 2000-05-19 08:44:48 +00:00
dcs
a802e4df99 Move man page directives to common/Makefile.inc. 2000-05-19 08:41:45 +00:00
dcs
3e63ed7956 Remove INSTALL_FORTH stuff. 2000-05-19 08:40:37 +00:00
dcs
ca29f7df26 Move man page directives to common/Makefile.inc.
Remove INSTALL_FORTH stuff.
2000-05-19 08:40:11 +00:00
kris
4d7b0b58aa Remove duplicated ';' statement delimiters.
Obtained from:	BSD/OS
2000-05-19 08:26:17 +00:00
jdp
d0a77b9ffd This is step 1 in an effort to unify the start-up files for the
various architectures.  Now all the work is done in crtbegin.c.
It doesn't contain any assembly language code, so it should work
fine on all architectures.  (I have tested it on the i386 and the
alpha.) The old assembly language files crt[in].S are now empty
shells that generate no code or data.  They should not be removed
any time soon, because the various versions of gcc in src and ports
expect them to exist.

Next I will move crtbegin.c into a new common machine-independent
directory, and adjust the i386-elf Makefile to use that version.
After that I will adjust the alpha Makefile to use the common
version too.

Requested by:	obrien
2000-05-19 04:32:17 +00:00
tanimura
5c46791232 Add ACH2012 - 5634BTS 56K Video Ready Modem.
PR:		kern/17351
Submitted by:	Eric D. Futch <efutch@nyct.net>
2000-05-19 03:41:22 +00:00