Commit Graph

153088 Commits

Author SHA1 Message Date
christos ce42f55037 add the emulation in kinfo_proc2 2006-10-29 22:34:07 +00:00
christos d0a868f481 Add support for printing the emulation of the process. 2006-10-29 22:32:53 +00:00
yamt d566a2d50f make agr headers include lock.h and queue.h by themselves. 2006-10-29 22:14:14 +00:00
christos 7cca893a23 don't descend to crypto. 2006-10-29 19:08:53 +00:00
christos 0e5129986f fix print formatting. 2006-10-29 19:05:36 +00:00
christos 7379f78872 handle NPX_CPUID 2006-10-29 18:00:10 +00:00
hubertf 1cd9ce06e8 Add example on how to make an install CD - it's the same
as the bootcd* CDs just with the install sets added to
the CD as well.

XXX 1) The implementation of this is rather cludgy (copying sets around),
       as our makefs(8) can't put files from multiple directories into
       one image -- something that mkisofs can do with 'graft' points
XXX 2) This should be run after 'build.sh release' - It would be nice
       if we had a seperate stage to add such hooks in our build framework
2006-10-29 17:58:15 +00:00
jmmv 7c53e12270 Use TOOL_PAX instead of pax to allow building release CD images (i.e.
CDRELEASE=true) on non-NetBSD systems.
2006-10-29 16:45:18 +00:00
christos 9984f7540a fix name in weak alias. 2006-10-29 16:22:17 +00:00
christos 1fb46e1531 handle NPX_CPUID. reported by Takahiro Kambe 2006-10-29 16:11:54 +00:00
he 19b3e362f5 Work around the propagation of volatile-ness from struct to struct members.
OK'ed by nsmrtks.
2006-10-29 16:05:15 +00:00
yamt fb3b846458 agr_setconfig: ensure ifname is NUL terminated. PR/34894 from Michael Pounov. 2006-10-29 11:38:56 +00:00
freza e224ffd4ee Inline UPDATE_INTERVAL macro, it's only used once. Per mrg@'s note
on previous.
2006-10-29 11:29:58 +00:00
minskim ff7273278a Correct spelling. 2006-10-29 09:34:35 +00:00
dogcow f7bd540aee cargo-cult copy changes from npx_isa.c so that GENERIC.MPACPI builds again.
(hi, christos!)
2006-10-29 09:24:47 +00:00
dogcow 9070e87821 ...and one more for xcompilation (due to lib/libc/hash/sha1/sha1hl.c, sigh.) 2006-10-29 06:56:01 +00:00
dogcow 2b33ff3b97 cross (and native) building works again. woo. 2006-10-29 06:17:08 +00:00
itohy 74588a5b22 Turn on PHY power earlier in the initialization.
This should make 3c575CT work and fix following PRs:

kern/12965: 3com 575CT does not work
port-i386/16295: Problems in pci routing table and ex0 (3c575c-tx) networking
2006-10-29 05:56:35 +00:00
uwe ba0408a7f5 Lift extern shb_cd declaration to the top level.
Make all routines static.
2006-10-29 02:10:12 +00:00
oster feecc58eab rmd160.h and sha2.h now live in /usr/include/crypto/../sys ,
not in /usr/include/crypto/sys.
2006-10-29 01:46:01 +00:00
christos 29741647a2 add {v,}snprintf_ss 2006-10-28 23:20:57 +00:00
christos f26b055a0e PR/34933: Sami Kantoluoto: RealTek 8168B found from Asus P5B motherboard
is not recognized
2006-10-28 23:18:34 +00:00
agc 05ad853be0 one more to catch up with the new location for sha2.h 2006-10-28 23:07:23 +00:00
wiz bb93eb1630 Remove trailing whitespace. Use .Bl -enum for an enumeration. 2006-10-28 22:50:16 +00:00
christos 238d204377 Make npx work on the AMD Geode LX-800 processor by short-circuiting
the npx detection code. Since exception reporting is broken,  check the
CPUID_FPU feature. This is what FreeBSD does.
2006-10-28 21:24:45 +00:00
tsutsui 6ed1365e7f - bcopy -> strcpy (in debug message)
- bcopy -> memcpy
2006-10-28 18:45:57 +00:00
tsutsui 40c87dddb4 - use continue for an empty statement in for() loop
- remove an empty statement in if() clause by inverting logic
- use KDASSERT(9) rather than #ifdef DEBUG + KASSERT(9)
- replace commented out M_WRITABLE() with !M_READONLY(9)
2006-10-28 18:26:15 +00:00
tsutsui b62bfc53fd M_TRALINGSPACE(m) returns 0 if M_READONLY(m) is true,
so no need to call both.  Pointed out by Pavel Cahyna.
2006-10-28 18:00:53 +00:00
christos d165928f40 check for negative length in PT_COREDUMP (from Neil) 2006-10-28 17:58:22 +00:00
bjh21 1aeaeb0efa When setting the FIFO preload, chose an entirely safe value rather than
using a completely bogus heuristic to guess at one.  This might cause FIFO
underruns in particularly exciting video modes, but it also makes more
boring ones work correctly.
2006-10-28 17:39:59 +00:00
agc 7fa420acd5 catch up with new location for rmd160.h header file 2006-10-28 15:35:28 +00:00
elad a6e87ced6c Sync with reality. 2006-10-28 15:34:18 +00:00
elad 40d6264cec Remove bogus sanity check.
The passed size doesn't mean anything really and can only help detect
corrupted configuration files, which should be done in userland anyway.

Note it's possible to trigger a kernel panic by passing a junk
pointer in the 'fingerprint' member of the parameters, but then again
that's true for anything that copies in data from a userland-supplied
pointer. And we have plenty of those.

At the moment, Veriexec only allows the super-user to open the pseudo
device, so it's ~okay. Maybe we should address that in copy(9) or
something?
2006-10-28 15:13:11 +00:00
christos 78921a0243 Initialize decimal_point. 2006-10-28 15:02:02 +00:00
christos f71e448c3b initialize floating_point as needed. 2006-10-28 14:38:55 +00:00
agc 08c311c029 More cleanup after sha2.h and rmd160.h moved house 2006-10-28 13:05:42 +00:00
elad 066e9189c4 Adapt to changes suggested by yamt@ to get rid of __UNCONST() stuff.
While here, don't leak pathbuf on success.
2006-10-28 11:43:45 +00:00
peter ba31dc0ca8 - Show statistics immediately, not after a 5 second delay.
- For cbq, cdnr, hfsc and priq: if previous stats aren't available yet
  then don't show the packet/byte rate.
- Place the count check before the delay and after the stats printing.

This fixes PR #32847

ok tron@
2006-10-28 11:43:02 +00:00
peter 9cc4e60c56 Don't allow to initialize an interface with MTU smaller than one.
This prevents a divide by zero and fixes PR #21474.

ok tron@
2006-10-28 11:35:17 +00:00
mrg 8f3077c34d avoid allocating from ksiginfo_pool when we know we aren't going to
use it.  idea partly from yamt.  assert SCHED_ASSERT_UNLOCKED() in
all the places we call ksiginfo_queue() without a ksiginfo.

fixes recent panics detected by LOCKDEBUG.
2006-10-28 08:09:31 +00:00
christos 7016508581 add sys/sha2.h and sys/rmd160.h 2006-10-28 04:25:54 +00:00
tsutsui 1696b0bb2f Put common data for each RX DMA descriptor into a new rxsoft structure
for micro optimization.
2006-10-28 03:42:55 +00:00
freza ec743521b3 Use curcpu() instead of referencing &cpu_info_primary (which is only
defined by a handful of ports).

OK by christos@
2006-10-28 02:21:36 +00:00
reinoud 8b52dc54b3 Implement another class of `unit not ready' sense handling that is not
fatal.. A `long write in progress' is a retry again later command that is
issued when a device returns immediately after a write request but needs
some time before it can handle read requests.
2006-10-28 01:24:29 +00:00
mrg 4804ddb2d7 what was <crypto/sha2/sha2.h> and <crypto/ripemd160/rmd160.h> is now
<sys/sha2.h> and <sys/rmd160.h>.
2006-10-27 22:50:28 +00:00
uwe 06ddf90514 CONFIGURE_ARGS+=--disable-nls so that tools/gmake doesn't accidentally
pick up tools/gettext that is built when MKMAINTAINERTOOLS=yes

As gettext is built after gmake - this only happens if you either do
an update build and tools/gmake gets rebuilt, or if you use the same
TOOLDIR for several ports.
2006-10-27 22:36:23 +00:00
mrg 3e7961407f make sure we can find <sys/{rmd160,sha2}.h>. make sure the crypto/foo.h
versions of these include something that exists...
2006-10-27 22:32:45 +00:00
uwe 421ab7a955 G/c references to gawk that is no longer in our tree. 2006-10-27 22:31:21 +00:00
mrg af62440127 add ${.CURDIR}/../../common/lib/libc/hash/{rmd160,sha2} to the .PATH
so that these sources are found after this code moved.

(hi christos!)
2006-10-27 22:25:26 +00:00
elad 145a8382e1 Don't leak handle. 2006-10-27 22:17:09 +00:00