Commit Graph

113697 Commits

Author SHA1 Message Date
thorpej
c4b3abedc3 Add a LOCK_INITIALIZER() macro to statically initialize a struct lock. 2003-06-13 05:13:43 +00:00
kent
93695b73fb Not only ICH4 but also ICH0 and ICH2 might set no ICH_PCR.
The patch was provided by lha.

PR: kern/21031
2003-06-13 05:13:42 +00:00
simonb
67417f64a8 Sprinkle some TABs to line up the columns in the cputab models array. 2003-06-13 04:29:39 +00:00
itojun
59a8ea6cd4 set lists for libevent. sort. niels ok. 2003-06-13 04:12:53 +00:00
itojun
3abc10868f add $NetBSD$ 2003-06-13 04:09:18 +00:00
msaitoh
6f197c635e Add support IBM 405GPr 2003-06-13 04:05:26 +00:00
itojun
ded3919389 define LIBEVENT 2003-06-13 04:04:18 +00:00
thorpej
434a4243a1 Fix the way the scsipi adapter openings are adjusted when the array
controller adjusts our queue length.
2003-06-13 02:33:09 +00:00
thorpej
76464bb996 * Don't wait for commands to drain when adjusting the queue length.
Instead, wait when it's really needed, when detaching.  Project
  draining from spruious wakeups.
* Don't flush the controller's cache when detaching; we can't do it
  reliably, as the controller probably things the array drive no
  longer exists.  The cache is already flushed in ldclose() so this
  should be no problem.
2003-06-13 02:32:27 +00:00
jwise
3ef0e39473 Recreate the ability, which has existed in syspkg since first implementation,
to explicitly version syspkgs.  See discussion on source-changes@netbsd.org.

If we want to lose this functionality, we should discuss this on the appropriate
lists...
2003-06-13 02:32:26 +00:00
petrov
49d4047a8f Pick up from OpenBSD:
The sab driver sometimes gets out of sync with the hardware.  This can
cause the serial console to hang.
2003-06-13 01:33:32 +00:00
lukem
34795551b8 add const qualifiers to match md{2,4,5}.h 2003-06-13 01:28:41 +00:00
provos
d750225d16 regress both kqueue(2) and poll(2) 2003-06-12 23:30:58 +00:00
provos
5522c1a3bb add LIBEVENT 2003-06-12 23:26:19 +00:00
provos
d8cea27f17 update sets for libevent 2003-06-12 23:23:05 +00:00
nathanw
4bd45b7b3b Oops, that's switch_return_point, not locked_return_point. The perils
of cut-and-paste.
2003-06-12 23:19:27 +00:00
provos
0275e3fef4 enable building the library and the regression test 2003-06-12 23:18:07 +00:00
provos
0eab3d3b7d libevent regression test 2003-06-12 23:15:48 +00:00
provos
f67349cc61 fix warnings 2003-06-12 23:07:58 +00:00
nathanw
aa6f5de228 STACKSPACE of 16 is too small, given the use of CALLFRAME_SIZ;
increase to match.
2003-06-12 23:01:17 +00:00
nathanw
eb6ba6fbef Apply switch-away fix and previous save-PT_UC from new stack fix. 2003-06-12 23:00:28 +00:00
provos
13993283c2 import of libevent; an event abstraction library that supports kqueue and
poll on NetBSD.
2003-06-12 22:54:25 +00:00
tron
6933a49a87 Add international fonts. 2003-06-12 22:49:40 +00:00
fvdl
1a31b8db4d Apply Nathan's switch-away fix. 2003-06-12 22:03:18 +00:00
nathanw
b43f1c7405 In pthread__resolve_locks(), change the conditions for removing a normal
thread from the continuation chain: Not only must it have released all
spinlocks, but it must have signaled completion by finishing pthread__switch
or by having stored into pt_switchto.

Together with the previous pthread_switch.S changes, this fixes a couple of
crasehes caused by race conditions in the examination and use of pt_next,
and by switching to empty pt_switchtouc's.
2003-06-12 21:49:42 +00:00
nathanw
f866ba061d Two fixes:
* In switch-away cases, write PT_SWITCHTO last (after PT_SWITCHTOUC), so
   that pthread__resolve_locks() doesn't see an empty SWITCHTOUC value. This
   also permits pthread__resolve_locks() to use the presence of PT_SWITCHTO
   as a sign that the thread has done all of its necessary chain work.

 * Make the return-point of pthread__switch global and visible, so that its
   address can be compared to the PC of a thread, again as a sign that its
   chain-work is done.

(other architectures in progress, after they get the *previous* asm fix...)
2003-06-12 21:46:03 +00:00
agc
72aa9a9ed1 Add the comments file, which is a single file containing all the COMMENT
file entries from the syspkg hierarchy, brought up to date to include some
that had been missed out.

Add the descrs file, which is a single file containing all the DESCR
file entries from the syspkg hierarchy, brought up to date to include some
that had been missed out.

Thanks to Jim Wise for all the work that went into the syspkg sets.

Add the attrs file, which is a single file to which can be added
attributes (like preserve).

Add a regpkg script, which allows a single system package to be
registered, based simply on its setname and syspkg name.  All the
information is gleaned from the lists files by means of scripts, no
source tree is needed.  The version number for the system package is
calculated automatically, based on the most recent mtime of the files
that constitute a system package.

Add a regpkgset script, to register all the system packages in a set.
The set names recognised are "all", "base", "comp", "etc", "games",
"man", "misc", "text".
2003-06-12 20:04:00 +00:00
agc
87171e96eb Bring the machine and arch-level decision of shared libs vs none up to date,
and also bring up to date the ELF vs a.out knowledge.

Also, sort the directories into reverse alphabetical order, and add them to
the generated PLIST file after any file entries.

Grab the comments into a single file from the individual syspkg set entries.

Grab the descriptions into a single file from the individual syspkg set entries.

Add an attributes file to which can be added attributes for system packages.
The "preserve" attribute has been implemented.

Add extra comments and descriptions for system packages which were missing.
2003-06-12 19:55:18 +00:00
scw
d984534d7f The GT is always host on both PCI busses. 2003-06-12 19:21:09 +00:00
scw
588cfa226b Add basic support for non-PCI host mode. 2003-06-12 19:18:49 +00:00
scw
b8ce8543eb Always pass BUS_DMA_COHERENT to bus_dmamem_map() when allocating
descriptor/buffer memory.
2003-06-12 19:18:02 +00:00
scw
b751df8807 Tickle the watchdog while doing polled console i/o.
This is especially important if we spend any time in ddb. :)
2003-06-12 19:16:18 +00:00
scw
269144aef4 Disable the watchdog during autoconf of sub-devices.
Some drivers (e.g. pciide(4)) can take long enough to probe that the
watchdog barks before they're done.
2003-06-12 19:14:37 +00:00
nathanw
edc79413b1 Don't need to set the MSR field here; _INITCONTEXT_U_MD() takes care
of that where necessary.
2003-06-12 19:09:45 +00:00
fvdl
67c9fa950a OS X still seems to use the old nrpos field in the superblock, and gets
unhappy after NetBSD wrote an Apple UFS filesystem. Just set it to 0
in this case.
2003-06-12 18:50:43 +00:00
thorpej
d0e1416b29 Separate out the immediate value from the input buffer. The immediate
value field can now always be used as an input, and output, or both.

This is especially handy for data movers which can e.g. calculate the
CRC32C of a buffer as it is moved (which requires both a seed [input],
and a place to stash the result [output]).
2003-06-12 17:20:43 +00:00
agc
65feb98718 Some patches from Todd C. Miller:
1. Use REG_NEWLINE, rather than matching "\n".

2. Fix a bug where rm_user_from_groups would mangle group entries in
/etc/group when the user to be removed is the only member of the group,
by using substring matches.
2003-06-12 17:00:53 +00:00
dsl
52e8cddd9b KNF 2003-06-12 16:48:43 +00:00
drochner
0256604827 nuke unnecessary #include <sys/dkstat.h> 2003-06-12 14:44:36 +00:00
simonb
e02e7ca6de Consistency nit- always use "#if defined(foo)" for checking MIPSn. 2003-06-12 14:35:56 +00:00
agc
706a03ef9c Make the "-f" switch to pkg_delete(1) into a counter. Require two "-f"
switches to delete a package that has been preserved. Document this
change.
2003-06-12 13:50:38 +00:00
agc
e61a0cb520 Correct a typo in a system package name 2003-06-12 13:37:21 +00:00
agc
bc4c2ec6be Avoid one more annoying duplicated slash when prefix is "/" in pkg_create(1),
and one in the db cache file, which was causing pkg_info -F to produce the
wrong results with a prefix of "/".
2003-06-12 13:29:32 +00:00
wiz
9fdb6c9051 texinfo-4.6 out. 2003-06-12 13:27:14 +00:00
dsl
84bdf1950e kernel names mixed up on i386/amd64 port
Default to TINY, LAPTOP or PS2 if running from such a kernel.
Do wscons stuff unless we installed a TINT kernel (not if running one)
2003-06-12 12:41:55 +00:00
dsl
d7bcb6d75d Move emulbackup message to MI set (conditional on AOUT2ELF marker).
Remove abberant dependencies of fdisk.o and md.o against menu/msg_defs.h
(nbmake depend gives the correct dependencies)
2003-06-12 11:20:00 +00:00
dsl
6a7cda9698 Move a couple of messages into msg.mbr.??
Remove some unused menus and messages from the ports that use mbr.c
(I'll re-implement the 1024 cylinder limit properly soon...)
2003-06-12 10:51:37 +00:00
scw
e05ce46e3e Oops, delete an accidentally committed local change. 2003-06-12 08:47:21 +00:00
scw
0328210bcc Allow <machine/bus.h> to override the definition of BUS_DMA_COHERENT.
For example, machine-dependent code can make it equivalent to
BUS_DMA_NOCACHE if the hardware cannot reliably snoop the bus.
2003-06-12 08:43:07 +00:00
scw
b4e18ad59c Back out the last change after consultation with Matt Thomas. It hurts
platforms with fully functional bus snooping.
2003-06-12 08:30:41 +00:00