Commit Graph

152201 Commits

Author SHA1 Message Date
hubertf
8a8b8c4204 xref fast_ipsec(4) 2006-10-11 10:14:31 +00:00
pooka
400dd61c41 nuke unused variable to make compile 2006-10-11 09:04:16 +00:00
dsl
505a3bb2b7 There is no need to resize the pollfd array, it can only ever have 2+maxJobs
entries, so allocate at startup.
Use an 'int jobPipe[2]' within the job structure, and create pipes directly
into it.  Common up the code that creates all the pipes - making them all
non-block on the read side in the process.
Call Job_CatchChildren() directly from Job_CatchOutput() so that it only
gets called when a child actually exits.
NB: Something causes a 'pregnant pause' if (for example) you call 'nbmake obj'
in src/tools.  Introduced between netbsd 3 and 4.
2006-10-11 07:01:44 +00:00
thorpej
e160c7cdec - Add specificdata_setspecific_nowait(). Not exposed by the wrappers yet
pending discussion on tech-kern.
- Re-enable the SLEEPABLE assertion in specificdata_fini().
2006-10-11 05:37:32 +00:00
jmcneill
648920a00e Size is the third argument to memset, not the second. 2006-10-11 05:12:06 +00:00
thorpej
12e8bb915e Don't free specificdata in lwp_exit2(); it's not safe to block there.
Instead, free an LWP's specificdata from lwp_exit() (if it is not the
last LWP) or exit1() (if it is the last LWP).  For consistency, free the
proc's specificdata from exit1() as well.  Add lwp_finispecific() and
proc_finispecific() functions to make this more convenient.
2006-10-11 04:51:06 +00:00
thorpej
42951eac01 Upon further reflection, make lwp_{get,set}specific() operate only on
curlwp.  Things that need to operate on "other" LWPs will get a very
special (and very private) API for their needs.
2006-10-11 03:46:42 +00:00
uwe
ba3cb45cce Oops, fix bug in previous. On SH4 (two-issue) sh_clock.cpuclock is
the spin count divided by two, so introduce a variable to hold the
original number that we later use to compute pclock.
2006-10-11 03:20:01 +00:00
uwe
61a805fc2c Do calculations to estimate cpu and pclock using 64-bit and doing all
the multiplications first.  Round to nearest, instead of down.

When estimating pclock don't compute sh_clock.cpucycle_1us * 1000000
sh_clock.cpuclock is exactly that (but without rounding errors).

This improves timekeeping on my Jornada.
2006-10-11 02:31:19 +00:00
uwe
f6a0f2334c Lift extern cpu_cd declaration to the top-level.
Make match/attach routines static.
Whitespace cosmetics.
2006-10-11 01:08:48 +00:00
riz
cc84101104 Also print blksize with %u - this is what I get for eyeballing
a patch instead of applying it directly.  PR#33966.
2006-10-10 23:35:29 +00:00
riz
31568e4a8e Print an unsigned parameter with %lu, not %ld. From David A. Holland
in PR#33966.
2006-10-10 23:30:23 +00:00
he
4072b525cc The use of a local variable is conditional on FBDEBUG, so make the
declaration too.  Makes this build without FBDEBUG defined.
2006-10-10 23:09:21 +00:00
dogcow
55ddfc9aae change the MOWNER_INIT define to take two args; fix extant struct mowner
decls to use it. Makes options MBUFTRACE compile again and not whinge about
missing structure declarations. (Also makes initialization consistent.)
2006-10-10 21:49:14 +00:00
tsutsui
62600ecc57 Replace magic numbers with proper macro. 2006-10-10 17:45:43 +00:00
mhitch
031f3db0fe Conversion to clock_ymdhms wasn't complete: the match routine was calling
ugettod() with a NULL pointer to test if the clock was present.  That
argument was changed to a struct clock_ymdhms pointer and is no longer
optional.  Change to pass the address of a local structure when probing
for the clock.
2006-10-10 17:24:23 +00:00
tsutsui
88c6f2c305 Clear pending flags before calling handers otherwise possibly some softintr
could be lost.
2006-10-10 13:26:47 +00:00
tsutsui
aa360516de Remove eeprom and clock at mainbus stuff.
They are available only on sun4 or sun4c.
2006-10-10 12:43:11 +00:00
tsutsui
4e4ba0146c Print ofboottarget and ofbootpartition on DEBUG even if they are not set. 2006-10-10 12:41:56 +00:00
rpaulo
a6762e54d7 Revert previous. The check is now done in tcp_congctl. 2006-10-10 11:13:02 +00:00
rpaulo
e1b1f65f6b tcp_reno_newack(): bring the exact original code.
tcp_newreno_newack(): call tcp_reno_newack() if partialacks < 0.
2006-10-10 11:12:39 +00:00
elad
08544bdaa5 Use kauth(9) instead of securelevel.
okay cube@
2006-10-10 10:23:58 +00:00
elad
5d97bceb4a Use KAUTH_PROCESS_CORENAME instead of checking securelevel. 2006-10-10 10:02:34 +00:00
yamt
f5209007e9 tcp_input: don't call congctl->newack when doing fast retransmit. 2006-10-10 09:19:40 +00:00
yamt
2f7740a31e tcp_reno_newack/tcp_newreno_newack: remove stale comments. 2006-10-10 09:19:13 +00:00
yamt
8afc246107 tcp_newreno_newack: actually inflate cwnd as it used to do. 2006-10-10 08:31:02 +00:00
reed
f9a8db2401 Remove parenthesis from around a sentence.
Refer to vi manpage for option -r.

Mention rc.d start up script for this.

Add rc.conf to SEE ALSO.

Remove sentence about it originally done at boot time.

Fix date - it was added in 1996. And mention that the
script was renamed in 2001.
2006-10-10 03:30:42 +00:00
reed
0b966788bb Also point to new virecover manual page. 2006-10-10 03:27:05 +00:00
reed
0589c4dc74 Instead of pointing to vi man page, refer to new virecover
man page for the virecover details.
2006-10-10 03:24:51 +00:00
dbj
d0c4ff452b implement -x by pruning fsnodes tree before building filesystem rather
than by skipping nodes while building filesystem
2006-10-10 01:55:45 +00:00
dbj
0e392af953 add implementation of free_fsnodes() which unlinks a node
from the hierarchy and frees it and any of its children
use it to free memory before a normal exit, which helps diagnostics
2006-10-10 01:46:49 +00:00
dbj
2d7375cec3 free specfile structure once it has been applied 2006-10-10 01:41:14 +00:00
dbj
1ca1523d99 use new implementation of link_check which i
implemented for du.c revision 1.25 :

Use open address hashtable with multiplicative double hash probing
and exponential hashtable growth for tracking previously seen inodes.
This replaces the O(n^2) behavior of linkchk() with an implementation
that should be O(n*logn)
2006-10-10 01:39:10 +00:00
dbj
daab9400b9 use strtoll instead of strsuftoll to parse -d so it can be specified
in hex with a 0x prefix
2006-10-10 01:32:42 +00:00
uwe
bc9906d21b Don't call spl*() in setsoft(), as softintr_schedule() already calls
setsoft() inside _cpu_intr_suspend().
2006-10-10 00:40:47 +00:00
martin
e8a3d86579 Ooops, stupid typo prevented recognizing wd* as boot device
(and stupid me tested on a machine with RAID 1 autoconfigured as root).
While there, make -Wextra ready and add another debug message.
2006-10-09 22:16:33 +00:00
martin
505e0ced00 Missing initializers 2006-10-09 21:50:27 +00:00
wiz
29ce0187b9 Sort options in SYNOPSIS. 2006-10-09 21:38:17 +00:00
wiz
7927d9d5f0 Fix a typo. 2006-10-09 21:36:18 +00:00
skrll
8e824ab13e Make this compile without KTRACE.
From Sergey Svishchev in a private email.
2006-10-09 21:32:29 +00:00
wiz
9dedcd8f8b Remove trailing whitespace.
Remove a partially duplicated sentence.
2006-10-09 21:31:29 +00:00
scw
056c6fdd05 Some removable umass(4) devices don't respond to mode sense page 6, or
simply return zero for logical block size. In either case, use the sector
length reported by READ_CAPACITY instead of defaulting to 512 bytes.

This partially addresses the problems reported in PR port-i386/34707 and
PR kern/34737. Namely the incorrectly reported drive geometry and the
'hanging' issue.

However, since the device in question reports 2048-byte physical sectors
it will remain unusable until DEV_BSIZE is banished.
2006-10-09 21:29:14 +00:00
bjh21
d6e105789d The correct number of elements to insert into cmd_iohs is WDC_NREG. Using
larger numbers risks a buffer overflow and panic.  Bug spotted by Mike Pumford.
Patch compile-tested only, but it's obviously correct.
2006-10-09 21:12:44 +00:00
apb
71ba9763cb Configure the bootstrap make in such a way that it can use a shell other
than "sh" for executing commands.  Useful in a cross-build environment.

* Do not define _PATH_BSHELL, because it is no longer used by make.

* In addition to _PATH_DEFSHELLDIR (the directory in which the default
  shell can be found), define _BASENAME_DEFSHELL (the shell's basename).

* Use shell builtin string manipulation instead of sed to extract
  the directory name and basename from $BSHELL.

OK sjg, christos
2006-10-09 20:51:05 +00:00
apb
4e86f6ddf0 In a non-native build, always use a shell to execute commands. This may
be necessary in a weird cross-build environment.  Previously, if the
command looked simple enough, we would try to exec it directly.

OK sjg, christos
2006-10-09 20:46:33 +00:00
jkunz
007f7a7a2a Bringing up a fpa(4) interface on sparc(64) causes a hard kernel crash
(infinite loop) due to the way fpa(4) interacts with bus_dma(9).
This fixes the problem and makes fpa(4) usable on sparc(64).
2006-10-09 20:45:19 +00:00
apb
cd195008c6 Allow make(1) to be built with something other than "sh" as the
shell.  To use this, build with -D_PATH_DEFSHELLDIR=\"/path/to/dir\"
-D_BASENAME_DEFSHELL=\"shell\".

* Change the order of entries in shells[].  Now DEFSHELL defaults to 0,
  and shells[0] describes the default shell.  This will be "sh" in the
  usual case.

* If _BASENAME_DEFSHELL is defined, insert an additional entry above
  "sh" in the shells[] array, making this new entry shells[0].  The
  new entry is assumed to refer to an sh-compatible shell with a
  non-standard name.  (Tested using _PATH_DEFSHELLDIR="/usr/pkg/bin" and
  _BASENAME_DEFSHELL="bash".)

* In the shells[] entry for "sh", test defined(MAKE_NATIVE) &&
  defined(__NetBSD__) to decide whether we can use the "q" flag.

OK sjg, christos
2006-10-09 20:44:35 +00:00
cube
199c1347ea Add an entry for the 2 UARTs version of the Moschip NM9835. 2006-10-09 20:33:04 +00:00
cube
5816119e8b Regen. 2006-10-09 20:31:57 +00:00
cube
ed6585967f Add one puc device by Moschip (formerly NetMos). Not the one I have, but
as I went through the datasheets...
2006-10-09 20:31:03 +00:00