Commit Graph

96455 Commits

Author SHA1 Message Date
ru
48f7d3de4e Don't compile with -g by default; there's a better way to build modules with
debug support.
2003-11-10 12:54:54 +00:00
hmp
c154c5f024 Mdoc Janitor:
* Add MLINKS for:

	-> Soundblaster emu10k1(4) Driver [points to pcm(4)]
	-> Avance Logic ALS400 Driver [points to pcm(4)]

    We should not need separate manual page for each of these
    drivers; instead, linking them to pcm(4) manual page is
    simpler, and new device lists can be easily added to the
    said manual page.

  * While I am here, sort out mdoc(7) entries in ${MAN}.
2003-11-10 12:45:10 +00:00
ume
d872f32a68 enable aes-xcbc-mac and aes-ctr, again. 2003-11-10 10:39:14 +00:00
des
141ad852ce RB_EMPTY() applies to red-black trees, not splay trees. 2003-11-10 10:35:06 +00:00
ume
c837f7353a rijndael-alg-fst.[ch]:
- redo updating.

rijndael-api-fst.[ch]:
  - switch to use new low level rijndael api.
  - stop using u8, u16 and u32.
  - space cleanup.

Tested by:	gbde(8) and phk's test program
2003-11-10 10:33:39 +00:00
guido
1f81441a73 When the P flag is set (i.e. Overwrite regular files before deleting them),
do only unlink the file if we could indeed overwrite the file.
Old behaviour: rm -P /tmp/foo (foo mode 0444) would NOT overwrite foo,
but still delete it (with a warning: rm: foo: Permission denied)
New behaviour: Just the EPERM warning, but no deletion

Reviewed by:	bde
2003-11-10 09:40:18 +00:00
harti
eb9d595a22 Link the SNMP daemon for NgATM to the build. 2003-11-10 09:23:09 +00:00
harti
f218fbe367 Add the build infrastructure for the SNMP daemon that is the base
for the NgATM ILMI daemon and for the tree parsing helper program.
2003-11-10 09:22:40 +00:00
harti
766c6528fa Link libbsnmp to the build. 2003-11-10 09:18:04 +00:00
harti
a33b4c9d63 Add build infrastructure for libbsnmp and the modules. Add the
netgraph module for the SNMP daemon.
2003-11-10 09:17:34 +00:00
harti
5b50eb0715 Add a define for libbsnmp. 2003-11-10 09:07:30 +00:00
harti
5dbecd8881 Create sub-directories under share for bsnmp tree definition and MIB files. 2003-11-10 09:06:38 +00:00
harti
afb7dec9ee Create a subdirectory where bsnmp include files will be stuffed to. 2003-11-10 09:04:24 +00:00
harti
2d5e5ae7e0 Make two directories under usr/share/bsnmp that are needed during
library build to install tree definition files and MIBS.

Okay'ed by: ru
2003-11-10 09:00:08 +00:00
harti
fad3b2be50 Add update instructions for bsnmp. Bsnmp is the base for the NgATM
ILMI daemon.
2003-11-10 08:56:56 +00:00
harti
12e2ed12db This commit was generated by cvs2svn to compensate for changes in r122394,
which included commits to RCS files with non-trunk default branches.
2003-11-10 08:53:38 +00:00
harti
ea9d8683bc Virgin import of bsnmp 1.4 2003-11-10 08:53:38 +00:00
des
47cdeead3e The current Perl 5.8 version is 5.8.1; 5.8.2 is right around the corner. 2003-11-10 08:28:22 +00:00
des
c7ecf1f9af Document EINVAL for len == 0. 2003-11-10 08:02:05 +00:00
tjr
6237f546e8 When there are no free sem_undo structs available in semu_alloc(), only
free one sem_undo with un_cnt == 0 instead of all of them. This is a
temporary workaround until the SLIST_FOREACH_PREVPTR loop gets fixed so
that it doesn't cause cycles in semu_list when removing multiple adjacent
items. It might be easier to just use (doubly-linked) LISTs here instead
of complicated SLIST code to achieve O(1) removals.

This bug manifested itself as a complete lockup under heavy semaphore use
by multiple processes with the SEM_UNDO flag set.

PR:		58984
2003-11-10 07:22:41 +00:00
marcel
a328239a93 In get_mcontext(), do not update bspstore and ndirty in the trapframe.
Only update them in the newly created context to reflect the state
after copying the dirty registers onto the user stack. If we were to
update the trapframe, we lose the state at entry into the kernel. We
may need that after we create the context, such as for KSE upcalls.

We have to update the trapframe after writing the dirty registers to
the user stack for signal delivery to work. But this is best done in
sendsig() itself where it applies, not in get_mcontext() where it's
done unconditionally.
2003-11-10 05:28:05 +00:00
jkoshy
a9cc536141 Document KTR_DROP. 2003-11-10 04:34:51 +00:00
simokawa
c34786a050 * Improve sbp device probe in boot process.
- Notify BUS RESET to CAM in sbp_attach().
	- Use last bus reset time to determine login delay.

Tested by: imura

* Add some sysctl MIB and tunables.
2003-11-10 03:51:23 +00:00
davidxu
8d31597cf3 If a thread masks all its signal, in cursig(), no signal will be exchanged
with debugger, so testing P_TRACED in SIGPENDING is useless. This test also
is the culprit which causes lots of 'failed to set signal flags properly for
 ast()' to be printed on console which is just a false complaint.
2003-11-10 03:11:08 +00:00
imp
916f5465da Move 'guessing' code from the probe into the identify routine where it more
properly belongs.
2003-11-10 02:47:11 +00:00
alc
fc132b411d - The Open Group Base Specifications Issue 6 specifies that an munmap(2)
must return EINVAL if size is zero.  Submitted by: tegge
 - In order to avoid a race condition in multithreaded applications, the
   check and removal operations by munmap(2) must be in the same critical
   section.  To accomodate this, vm_map_check_protection() is modified to
   require its caller to obtain at least a read lock on the map.
2003-11-10 01:37:40 +00:00
mini
7345277fb5 NFC: Update stale comments.
Reviewed by:	alc
2003-11-10 00:44:00 +00:00
joe
6ddbdf4a57 MFNetBSD:
date: 2003/10/18 04:50:35;  author: simonb
    Remove assigned-to but otherwise unused variables.
    Remove unreachable break after return statements.
2003-11-10 00:20:52 +00:00
joe
5b06620939 MFNetBSD:
revision 1.142
    date: 2003/10/11 03:04:26;  author: toshii
    Fix a done list handling bug which exhibits under high shared
    interrupt rate and bus traffic.  As the interrupt register is
    read after checking hcca_done_head, there was a small chance
    of dropping a done list.  Ignore OHCI_WDH interrupt bit if
    hcca_done_head is zero so that OHCI_WDH is processed later.
2003-11-10 00:16:36 +00:00
joe
c79031811b MFNetBSD:
revision 1.141
    date: 2003/09/10 20:08:29;  author: mycroft;
    Update actlen even in the case where a TD returns an error --
    this is critical for the umass bulk-only STALL case.
2003-11-10 00:12:39 +00:00
joe
e21e0d27be MFNetBSD:
revision 1.176
    date: 2003/11/04 19:11:21;  author: mycroft;
    Ignore a CRCTO error on a SETUP transaction in combination with
    STALLED or NAK.  This fixes problems with the GL641.
2003-11-10 00:08:41 +00:00
joe
bc5a375007 MFNetBSD:
date: 2003/09/12 16:18:08;  author: mycroft;
    Tweak a debugging printf().
2003-11-09 23:59:53 +00:00
joe
214d38e72b Revise the NetBSD revision control strings. 2003-11-09 23:56:19 +00:00
joe
0e3872f44e MFNetBSD:
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
2003-11-09 23:54:21 +00:00
bmah
6296473965 Reorganize and trim devices from the aic(4), aha(4), ahb(4), and
ahc(4) sections.

Trim devices from sis(4), de(4), and ex(4).

Don't bother saying what standards are supported by the ATM stack;
this list is kind of misplaced here (and may not even be accurate
anymore).

Delete mention of pca; this driver has been removed.
2003-11-09 23:42:51 +00:00
sam
2da1590e62 fix typo that broke AP scanning by BSSID
Submitted by:	Len Widra
2003-11-09 23:36:46 +00:00
marcel
bbffb03ee0 When a thread is being swapped-out, save the high FP registers. We
have a pointer in the PCPU to the PCB of the thread that currently
has its high FP registers loaded.
2003-11-09 23:13:23 +00:00
simon
061bcd53e8 Trim device entries for sym(4)/ncr(4). 2003-11-09 23:08:05 +00:00
bmah
0062c4ca61 Add some pc98-specific devices from the hardware notes. 2003-11-09 22:53:58 +00:00
simon
27dee7fdb7 Add two PC-98 devices, from the hardware notes, which was missed in
the last commit.

MFC after:	1 week
2003-11-09 22:36:04 +00:00
simon
d7cb3ad7b4 - Sync the list of supported device with the hardware notes and the
driver source code.
- Use a mdoc list for the list of supported devices.

MFC after:	1 week
2003-11-09 22:21:21 +00:00
marcel
b467900e8c Use get_mcontext() to construct the signal context in sendsig() and
use set_mcontext() to restore the context in sigreturn(). Since we
put the syscall number and the syscall arguments in the trapframe
(we don't save the scratch registers for syscalls, which allows us
to reuse the space to our advantage), create a MD specific flag so
that we save the scratch registers even for syscalls. We would not
be able to restart a syscall otherwise.

The signal trampoline does not need to flush the regiters anymore,
because get_mcontext() already handles that. In fact, if we set up
the context correctly, we do not need to have a trampoline at all.
This change however only minimally changes the trampoline code. In
follow-up commits this can be further optimized.

Note that normally we preserve cfm and iip in the trapframe created
by the EPC syscall path when we restore a context in set_mcontext()
because those fields are not normally set for a synchronuous context.
The kernel puts the return address and frame info of the syscall
stub in there. By preserving these fields we hide this detail from
userland which allows us to use setcontext(2) for user created
contexts. However, sigreturn() is commonly called from the trampoline,
which means that if we preserve cfm and iip in all cases, we would
return to the trampoline after the sigreturn(), which means we hit
the safety net: we call exit(2). So, we do not preserve cfm and iip
when we have a synchronous context that also has scratch registers
(the uncommon context created by sendsig() only), under the assumption
that if such a context is created in userland, something special is
going on and the use of cfm and iip is then just another quirk. All
this is invisible in the common case.
2003-11-09 22:17:36 +00:00
alc
3dd60847d6 - Remove Giant from msync(2). Giant is still acquired by the lower layers
if we drop into the pmap or vnode layers.
 - Migrate the handling of zero-length msync(2)s into vm_map_sync() so that
   multithread applications can't change the map between implementing the
   zero-length hack in msync(2) and reacquiring the map lock in
   vm_map_sync().

Reviewed by:	tegge
2003-11-09 22:09:04 +00:00
scottl
7bd091601a Free the ata_request struct after we are done using it. This should stop
the memory leak seen when using ATAPICAM.
2003-11-09 20:46:08 +00:00
jmg
3f9268cea2 make minimum column size for interrupt name be the heading (depends upon
Total being shorter than interrupt)..

Pointed out by:	bde
2003-11-09 20:39:56 +00:00
marcel
799c3c36bc Change the clear_ret argument of get_mcontext() to be a flags argument.
Since all callers either passed 0 or 1 for clear_ret, define bit 0 in
the flags for use as clear_ret. Reserve bits 1, 2 and 3 for use by MI
code for possible (but unlikely) future use. The remaining bits are for
use by MD code.

This change is triggered by a need on ia64 to have another knob for
get_mcontext().
2003-11-09 20:31:04 +00:00
imp
735281ca2f Tweak the front end driver file list
Also some minor whitespace nits.
2003-11-09 20:02:47 +00:00
imp
d8ed660ac4 Add my copyright to aha_isa.c to make it crystal clear its license 2003-11-09 20:01:36 +00:00
imp
ad1260fd17 Let bus space manage softc. 2003-11-09 19:51:16 +00:00
imp
7ff412b494 Minor tweaks to make it behave better:
o When we're resetting the board, make sure that we error out the pending
  CCBs first.  Otherwise the aha_cmd won't accept further commands, such
  as those that are used to reset the card (AOP_INITIALIZE_MBOX).  This
  appears to cause a cascade failure where no more commands are possible
  to the card.
o Reduce from 10s down to 1s the amount of time we're willing to tolerate
  the card being awol.  This helps the above case.
o Add some error checking to two commands issued in the probe.

I have a dim memory of gibbs@ trying to tell me about this problem a
few years ago, so pointy hat to imp@ for sitting on it so long.
2003-11-09 17:16:39 +00:00