Commit Graph

140624 Commits

Author SHA1 Message Date
uwe
b388366e8f Shave off one instruction in _syscall. 2005-10-16 16:34:17 +00:00
aymeric
3b6dda9b52 the last revision introduced a bug in the handling of escape characters while
trying to correct a corner case. I will work on a final solution later.
Thanks to David Brownlee for noticing and notifying me.
2005-10-16 15:58:59 +00:00
uwe
d0155fac59 Trim trailing whitespace. 2005-10-16 14:36:28 +00:00
yamt
d6c1668a16 sysctl_kern_bufq_strategies:
- don't assign size_t value to error number.
- remove an unnecessary assignment.
2005-10-16 08:30:37 +00:00
yamt
707ea62186 sysctl_kern_bufq_strategies: skip a dummy strategy correctly. 2005-10-16 08:27:51 +00:00
yamt
42504f126e fix BUFQ_PEEK, which i broke in rev.1.4. 2005-10-16 08:01:08 +00:00
christos
180e99b5f3 Bring sparc64 to the new compat layout. 2005-10-16 04:41:34 +00:00
yamt
d6f623e617 it's ok for BUFQ_PUT to change the next buffer after BUFQ_PEEK. 2005-10-16 04:11:02 +00:00
yamt
e060d87164 sync with the new api. 2005-10-16 04:06:20 +00:00
christos
c4dfab8cf0 Make the grouplist invalidate function take a grouplist instead of a group.
Suggested by yamt.
2005-10-16 02:55:18 +00:00
christos
76854df72e Initialize a variable that might confuse gcc as uninitialized. 2005-10-16 02:39:20 +00:00
christos
762d3ada2a This is why I hate gotos: My previous change had different semantics than
the original code since if fullgroups was empty and partgroups wasn't, we
would not clean up partgroups (pointed out by yamt). Well, this one has
different semantics from the original, they are the correct ones I think..
2005-10-16 02:21:40 +00:00
yamt
9f4759ccce add some bufq helper functions.
#if 0'ed out as there is no user currently.
2005-10-16 02:02:23 +00:00
chs
ba70e96a09 in pthread_kill() and pthread_suspend_np(), return without doing anything
if the target thread is a zombie.

in all the functions that didn't do so already, verify a pthread_t before
dereferencing it (under #ifdef ERRORCHECK, since these checks are not
mandated by the standard).

clean up some debugging stuff.
2005-10-16 00:37:52 +00:00
chs
c190c7de90 fix the interaction between sigtimedwait() and pthread_kill(),
both waking up a sleeping thread and avoiding going to sleep if
a signal is already pending.  fixes PR 30348.
2005-10-16 00:31:35 +00:00
yamt
4c9b2e4a8f whitespace. 2005-10-16 00:30:03 +00:00
yamt
834e69f6e0 fix rcsid. 2005-10-16 00:28:32 +00:00
christos
1e976481fe avoid a goto. 2005-10-16 00:28:04 +00:00
tls
240f327f5b HAVE_CRYPTO_LZS, not HAVE_CRYPTO_LSZ (worse, it was inconsistently used) 2005-10-16 00:14:22 +00:00
tls
c4b950020a Don't use rnd_extract_data to set up IVs for new sessions; it is very
expensive, and pointless.  As elsewhere in the kernel (and as approved
under FIPS-140-2 by multiple test labs, incidentally) we use arc4 to
generate IVs here; there is no benefit to their being cryptographically
strong so long as there is a sufficient Hamming distance between them.
2005-10-16 00:12:42 +00:00
chs
2415c56ed0 in pthread_mutex_lock_slow(), pthread_rwlock_timedrdlock() and sem_wait(),
call pthread__start() if it hasn't already been called.  this avoids
an internal assertion from the library if these routines are used
before any threads are created and they need to sleep.
fixes PR 20256, PR 24241, PR 25722, PR 26096.
2005-10-16 00:07:24 +00:00
elad
07a01daf00 Load Veriexec signatures after mountall. Use veriexec_strict and
veriexec_verbose to set strict level and verbose level in rc.conf.
Defaults are 0.
2005-10-15 23:26:30 +00:00
xtraeme
eda099ea39 Mention "kern.bufq.strategies", bump date. 2005-10-15 23:05:45 +00:00
xtraeme
40b7fffb63 Add a sysctl function that will print all buffer queue strategies
built in the kernel:

$ sysctl kern.bufq.strategies
kern.bufq.strategies = disksort fcfs priocscan readprio
$
2005-10-15 22:36:18 +00:00
abs
2a300eeeb2 crank date for last 2005-10-15 22:28:46 +00:00
abs
7e80374049 Document the reciever lockup workaround 2005-10-15 22:28:13 +00:00
uwe
eb9395f8c7 Switch sparc to the new compat code layout. 2005-10-15 22:11:22 +00:00
chs
528fa60e43 in pool_do_cache_invalidate(), make sure to process both full and partial
group lists even if the first one we look at is empty.  fix ddb print routine.
2005-10-15 21:22:46 +00:00
elad
e47c05bf2b copystr and copyinstr return int, not void. 2005-10-15 21:18:54 +00:00
xtraeme
2228b00dd4 This needs <sys/bufq_impl.h> 2005-10-15 19:57:24 +00:00
jdolecek
91669fdaa7 use VLAN_OUTPUT_TAG() 2005-10-15 19:32:36 +00:00
christos
509c72ef94 - Don't output 'src -> dst' when -v and there was an error.
- Mark usage as noreturn, and remove extraneous exit.
- Pass lint.
Reported by Liam Foy.
2005-10-15 18:22:18 +00:00
riz
ae57180bf8 Move entries for sparc64 switch to wscons, vnd(4) support for
cloop2-compressed images, sysinst Spanish translation, and xge(4)
driver to CHANGES.prev after pulling them up to the netbsd-3 branch.
2005-10-15 17:42:44 +00:00
yamt
6a53e94d49 bump to 3.99.10. bufq interface change. 2005-10-15 17:41:19 +00:00
yamt
aec75b1cc6 - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)
2005-10-15 17:29:10 +00:00
itohy
9a9aac9079 pwr_sw_ctrl(): do not panic() if panic has already happened
to avoid infinite panic recursion (this is called by cpu_reboot()).
2005-10-15 16:16:38 +00:00
uwe
97f4a15f08 _setjmp and _longjmp are not compat functions. Noticed by Havard Eidnes. 2005-10-15 16:00:42 +00:00
macallan
4188757b69 Add a multiple include guard. 2005-10-15 15:41:22 +00:00
peter
3d73a5fb3f Add missing prototype for set_max_field() and bump date.
From xs at kittenz dot org in PR/18668.
2005-10-15 12:43:20 +00:00
itohy
d1e6cc9002 Add code to parse device name specified in the boot prompt.
Update boot version to 1.3.
2005-10-15 11:34:17 +00:00
itohy
f1b7dcd6f3 When read from a disk partition, add the partition offset properly.
Do not use NULL address for disklabel buffer (wow).
2005-10-15 10:58:06 +00:00
tls
eb5ea4a10b Add support for the hardware random number generator on the Hifn 7811
and 795x.  This was present in the driver before, but disabled due to
problems with the actual randomness of generated numbers on the
ubiquitious 7900-series parts.  The code here is far, far more
conservative than anyone else's driver for this RNG is -- but I
believe that conservatism is called for, because the 79xx RNG
design is missing a number of pieces from Hifn's "reference" 6500
RNG, and thus the numbers it generates must be treated with some
care.

Support for the 7811 RNG (which is a full-fledged 6500 type
generator) is pretty much the same here as in other variants of
this driver, except that it uses Hifn's "worst case" estimate of
actual entropy per output bit, so it will accumulate bits much
more slowly.  The 7811 support is untested.
2005-10-15 08:58:15 +00:00
tls
15cb9441e1 From OpenBSD hifn7751.c revision 1.149: enable the command-wait interrupt
even if there's only one request in the queue.  Sometimes we seem to miss
multiple interrupts, and command-wait saves us.
2005-10-15 04:31:20 +00:00
tsutsui
387175fffe - tty0? -> ttyZ?
- add ttyE0
2005-10-15 03:00:30 +00:00
tsutsui
822346a086 tty0? -> ttyZ? 2005-10-15 02:58:31 +00:00
tsutsui
61d9372a28 All of FIREPOWER_ES, FIREPOWER_MX and FIREPOWER_LX require
the same platinit function, so don't check them separately.
2005-10-15 02:17:48 +00:00
xtraeme
b4a646a1fc Add missing entries for National Semiconductor LM81 and
Winbond 83627THF to reflect reality.
2005-10-15 00:43:33 +00:00
xtraeme
b0a4f3e4be Added support for Winbond 83627THF, from OpenBSD. 2005-10-15 00:41:48 +00:00
christos
641784aa2a Don't hide the error from sysctl. From Liam Foy. 2005-10-14 23:53:41 +00:00
xtraeme
46b58a0a77 Enable atu(4). Requested by Martijn van Buul via PR pkg/30243. 2005-10-14 23:26:10 +00:00