Commit Graph

114841 Commits

Author SHA1 Message Date
phk
f039d29be8 sort and expand the prunelist in a more or less generally sensibly
order.  Put some strategic comments in about how much storage is
necessary and a longer explanation on the top.

It is now pretty trivial to put nanoBSD on as little as a 64MB CF card.

Sponsored by:	Soekris Engineering.
2005-04-13 21:22:20 +00:00
phk
9ed47911b1 Introduce NANOBSD_PRUNE which can be used to zap out bits we don't
want to carry forward.
2005-04-13 21:20:16 +00:00
phk
d9efef6a02 Use df -i 2005-04-13 21:19:28 +00:00
glebius
551f935c8f Fix mss byte order, only affects synproxy code path.
Submitted by:	John L. Scarfone via OpenBSD
Reviewed by:	mlaier
Obtained from:	OpenBSD, rev. 1.483
MFC after:	2 days
2005-04-13 21:05:55 +00:00
stefanf
f8eddbd4ea Add a few regression tests for printf(1). 2005-04-13 20:08:17 +00:00
stefanf
765a7779c8 Assign 0.0 to the variable passed to getfloating() if the argument is missing.
MFC after:	1 week
2005-04-13 19:54:03 +00:00
imp
f837ac1126 Fix compile error :-(. 2005-04-13 19:10:27 +00:00
peter
288664ad61 Fix an evil bug that appeared in September 2003. VM86 bios calls use two
of the __pcb_spare longs.  Except that fields were changed and one of the
spare values was used and the __pcb_spare field was reduced from two to one
long.  Now VM86 bios calls can trash the first 4 bytes of the next page
following the kernel stack/pcb.  This Is Bad(TM).  This bug has been
present in 5.2-release and onwards, and is still in RELENG_5.

Instead of tempting fate and trying to use "spare" fields, explicitly
reserve them.
2005-04-13 18:13:40 +00:00
mdodd
a80643c0fb Test for NULL before use.
Submitted by:	sam (Coverity)
2005-04-13 17:39:43 +00:00
mdodd
b012b71049 Add KASSERT() to warn against NULL deref.
Submitted by:	sam (Coverity)
2005-04-13 17:36:18 +00:00
bms
17c64faf90 Use pci_find_bsf() to retrieve the PCI device associated with
a bus/device/function tuple.
This change enables pciconf(8) to work with CardBus devices.

Reviewed by:	imp
2005-04-13 17:34:38 +00:00
julian
f88c5cf139 The maximum allowable alloc is 16K not (16K-1).
This whole section is actually overly restrictive and
another patch is in the works.
2005-04-13 16:39:22 +00:00
imp
eb9438818e Since cbb implements the pcib_ interface, it must also implement the
pcib_route_interrupt interface.  Since there's only one interrupt pin
in the CardBus form factor, everybody gets to share it.  Implement
cbb_route_interrupt to return the interrupt we have.

Suggested by: bms
2005-04-13 16:35:15 +00:00
imp
6c2406c134 Default to a interrupt router that returns an invalid interrupt.
Otherwise, busses that implement the pcib interface that forget to
implement pcib_route_interrupt would return EIO, which the caller
interprets as 'use interrupt 6'.  This is likely the cause of much of
the grief that we had when I enabled power modes for the cardbus
bridge, since the card needed to reroute the interrupt to it and it
was getting 6 which was d by the pccbb sanity checks.
2005-04-13 16:30:30 +00:00
cognet
de18fb7c07 pmap_update() is gone. 2005-04-13 16:02:03 +00:00
imp
967dafb084 Never hardcode /sys into these Makefiles. The proper way to spell it is $S.
Also, move the -I stuff to the centralized kern.pre.mk.  However, it
might be better to add these flags to files.conf.  This is a short
term fix to fix the broken builds on my machine (I don't have a valid
/sys link).
2005-04-13 14:49:57 +00:00
glebius
9ce7d94794 NG_MKRESPONSE() macro includes sizeof struct ng_mesg when doing allocation.
PR:		kern/79806
Submitted by:	Wojciech A. Koszek
2005-04-13 14:03:28 +00:00
avatar
7943a876be According to the comment in struct tty, t_modem is optional; hence we should
guard against NULL t_modem entry. Otherwise, driver doesn't have t_modem
callback implemented(such like sys/dev/usb/ucycom.c) would panic when
someone opens the driver's associated tty device.

Reviewed by:	phk, sam (mentor)
2005-04-13 13:56:17 +00:00
nyan
8cb7fa819d Merge two slice_type_name() functions. 2005-04-13 13:42:38 +00:00
nyan
201b62121f - Remove ifdef PC98.
- Reduce diffs from i386.
2005-04-13 13:26:48 +00:00
nyan
95975fbd56 Remove a meaningless include. 2005-04-13 13:18:32 +00:00
nyan
d14da1c3ca Move pc98 specific parts to the pc98 specific file. 2005-04-13 13:12:12 +00:00
nyan
420a281d92 Remove ifdef PC98. 2005-04-13 13:02:58 +00:00
harti
68a5d8b981 Split VarFind() into a series of functions tailored for the different sets
of flags originally passed to VarFind(). This eliminates the code by
removing a bunch of tests.

Patch:		7.173

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-04-13 11:40:44 +00:00
jeff
27b2847709 - Change all filesystems and vfs_cache to relock the dvp once the child is
locked in the ISDOTDOT case.  Se vfs_lookup.c r1.79 for details.

Sponsored by:	Isilon Systems, Inc.
2005-04-13 10:59:09 +00:00
jeff
7696240c54 - Change vop_lookup_post assertions to reflect recent vfs_lookup changes.
Sponsored by:	Isilon Systems, Inc.
2005-04-13 10:57:53 +00:00
jeff
75522de567 - Further simplify lookup; Force all filesystems to relock in the DOTDOT
case.  There are bugs in some which didn't unlock in the ISDOTDOT case
   to begin with that need to be addressed seperately.  This simplifies
   things anyway.
 - Fix relookup() to prevent it from vrele()'ing the dvp while the vp
   is locked.  Catch up to other lookup changes.

Sponsored by:	Isilon Systems, Inc.
Reported by:	Peter Wemm
2005-04-13 10:57:13 +00:00
phk
fb3f51f394 Add NO_DICT handle. Saves almost 3.5 MB installed. 2005-04-13 10:02:58 +00:00
mdodd
e510655727 Add #defines for control fields and address bits. 2005-04-13 08:14:14 +00:00
mdodd
e217465822 Support for the GTCO Digipad. 2005-04-13 07:25:45 +00:00
sos
d1c5742ec0 Add a ata_setmode method so we dont panic on setmode.
Note that the mode is only set on the device, we (mostly) have
no knowledge on how to set mode on the controller if at all possible.
2005-04-13 07:14:17 +00:00
mdodd
ed315b8449 Add the -S flag which produces the -s output without
mixing field separators.
2005-04-13 07:11:54 +00:00
mdodd
0c4aafd426 Show descriptions for type CTLTYPE_NODES. 2005-04-13 06:59:07 +00:00
mdodd
9a003c1eba Zero buffers. Seatbelt against sysctl(3) returning non-NUL terminated
string data.
2005-04-13 06:56:31 +00:00
mdodd
1420302200 Make it clear that the statement following the conditional is a NOP. 2005-04-13 06:42:43 +00:00
phk
bed006bfc1 Data is not information;
Information is not knowledge;
	Knowledge is not wisdom
			-- Gary Flake
2005-04-13 06:11:49 +00:00
anholt
3253b1c297 Follow i386's suit and include AGP support in the generic kernel. 2005-04-13 06:00:07 +00:00
mdodd
7cae26d43c Add support for more than two datasets. Currently limited to 7 though
the limit is only the number of meaningful graph symbols available.

Statistical comparison is performed between the first dataset and
any further datasets.

No objection by:	 phk
2005-04-13 05:50:56 +00:00
mdodd
4cb76de2d0 Define additional commands.
Obtained from:	 Linux
2005-04-13 05:09:49 +00:00
mdodd
4e257bb504 Whitespace cleanup. 2005-04-13 05:06:57 +00:00
mdodd
5cd443c62e Remove unnecessary dpt_free(). 2005-04-13 05:03:14 +00:00
davidxu
b930b579e1 o Code cleanup, eliminate private thread id map, directly
use lwpid as thread id.
 o Export tls pointer.
2005-04-13 04:57:38 +00:00
mdodd
0bc2ec667b Implement SOUND_MIXER_INFO ioctl in compat layer. 2005-04-13 04:33:06 +00:00
mdodd
297dc263eb Add support for O_NOFOLLOW and O_DIRECT to Linux fcntl() F_GETFL/F_SETFL. 2005-04-13 04:31:43 +00:00
mdodd
7eec81b016 Invert conditional and use continue to reduce nesting. 2005-04-13 03:36:24 +00:00
mdodd
6221bff975 Add ISACFGATTR_HINTS flag to allow detection of a device that was created
as a result of the hints mechanism.
2005-04-13 03:26:24 +00:00
hrs
3ff751d8da Add -S option which allows to change the pathname of the privileged
socket /var/run/logpriv.

Reviewed by:	glebius and kensmith
MFC after:	2 days
2005-04-13 03:19:41 +00:00
marcel
e7b4d600b2 Build cpufreq on ia64. The upcoming Montecito processor supports the
Enhanced SpeedStep (that is, a follow-up of it called Foxton). Until
we actually have support for that, we build to catch regressions in
the framework.

Triggered by: njl
2005-04-13 02:20:17 +00:00
mdodd
dfb93ab3e6 Save argv[0] and use it in usage message. 2005-04-13 01:44:59 +00:00
mdodd
496e5340f0 Invert conditional and use continue to reduce nesting. 2005-04-13 01:32:06 +00:00