Commit Graph

124443 Commits

Author SHA1 Message Date
oster
d2accf5991 Fix more cases where mutex locks were being held longer than necessary.
[For the record: The mcpair mutex is being used to protect mcpair->flag.
mcpair gets allocated before each call to rf_DispatchDAG(), so there is no
other process/thread that could be mucking with it.  It is only used to
detect the completion of a given parity unit, and rf_DispatchDAG()
only uses it to setup the callback argument for rf_MCPairWakeupFunc()
which will be called when the IO completes.  The code after the call
to rf_DispatchDAG() sits and waits for a 'wakeup' on mcpair->cond
(rf_MCPairWakeupFunc() does that).  If mcpair->flag is 0 when
rf_DispatchDAG() completes, then rf_MCPairWakeupFunc() hasn't been
called yet (the IO hasn't completed).  If it is 1, then the IO is
already done, and we continue on our merry way without sleeping.
Thus, we don't need to hold any lock on mcpair while calling
rf_DispatchDAG().]
2004-03-02 15:47:35 +00:00
christos
a2989006c9 fix compilation on LP64 systems. 2004-03-02 15:04:55 +00:00
drochner
786841d520 you don't have a "." in your PATH? 2004-03-02 14:27:25 +00:00
drochner
b451e43543 complete this test for amd64
(identical to i386)
2004-03-02 14:26:12 +00:00
fvdl
7e3d28789f During a control operation (like a reset), wait 10us after selecting
the drive. This fixes (or rather, works around) a timing problem
with WD Raptor drives attached to a Sil3114 SATA controller.

Should fix PR 23808, it fixes the same problem for me.
2004-03-02 13:13:57 +00:00
yamt
9359a18b6a uvm_fault: check loan_count of neighborhood object page properly.
PR/24595 from Stephan Uphoff.
2004-03-02 11:43:44 +00:00
kleink
d3dcda03eb prep Xserver list, copied from evbppc (for now). 2004-03-02 10:59:28 +00:00
yamt
6c726a105b tweak a test to detect a bug described in kern/24595 from Stephan Uphoff. 2004-03-02 10:13:13 +00:00
yamt
471ef5f249 once exit1() releases big kernel lock, the struct proc can be freed and
re-used by another cpu immediately.  in that case, lwp_exit2() will
access freed memory.  to fix this:

- remove curlwp from p_lwps in exit1() rather than letting lwp_exit2() do so.
- add assertions to ensure freed proc has no lwps.

kern/24329 from me and kern/24574 from Havard Eidnes.
2004-03-02 09:15:26 +00:00
itojun
1e9b827214 cast to unsigned long long before computing to avoid overflow 2004-03-02 03:59:17 +00:00
itojun
96b84a38a0 use unsigned long long to print block count. 2004-03-02 03:50:45 +00:00
thorpej
2803ff0955 Use the new IPSEC_PCB_SKIP_IPSEC() to bypass a socket policy lookup
when possible.  This shaves several cycles from the output path for
non-IPsec connections, even if the policy is cached in the PCB.
2004-03-02 02:28:28 +00:00
thorpej
00f100daae Call ipsec_pcbconn() and ipsec_pcbdisconn() for FAST_IPSEC, too. 2004-03-02 02:26:28 +00:00
thorpej
076a26a516 Remove some left-over debugging code. 2004-03-02 02:24:02 +00:00
thorpej
ce5ecc33b9 Bring the PCB policy cache over from KAME IPsec, including the "hint"
used to short-circuit IPsec processing in other places.

This is enabled only for NetBSD at the moment; in order for it to function
correctly, ipsec_pcbconn() must be called as appropriate.
2004-03-02 02:22:56 +00:00
thorpej
db4fcd885b Augment the PCB cache with a "hint" that can be used to short-circuit
IPsec processing in other places.  The hint has 3 values: MAYBE, YES,
and NO.  Hints are initialized to MAYBE, and MAYBE is always used for
unconnected sockets (since the spidx may change for every packet
that is output).  For connected sockets, NONE and BYPASS policies cause
the hint to be set to NO, and all other policies to YES.

Also shuffle the PCB cache data structure, turning 3 arrays into a
single array of a struct.
2004-03-02 02:17:38 +00:00
thorpej
979f197a86 Define a sotoinpcb_hdr() macro (a'la sotoinpcb()). 2004-03-02 02:11:14 +00:00
thorpej
68020cebc0 iipsec4_get_ulp(): Fix a reversed test that would have caused us to access
bogus IP header data if presented with a short mbuf.
2004-03-02 00:50:57 +00:00
kleink
9ff09d5dff Pull in SPRs via <powerpc/spr.h> in this single instance, and dispose of
<machine/spr.h> again.
2004-03-02 00:35:54 +00:00
kleink
591762a7d0 Insert a newline after autoconf output. 2004-03-01 23:49:12 +00:00
kleink
02a87b49d9 Back out previous. 2004-03-01 23:46:44 +00:00
oster
c7eaad6a14 Use RF_ACC_TRACE to #if out more chunks of code related only
to access tracing.  (not turned on yet)
2004-03-01 23:30:57 +00:00
thorpej
fdbf515ae2 Add missing copyright notice (FreeBSD rev. 1.3.2.2). 2004-03-01 23:30:01 +00:00
thorpej
4f0ad651e0 Add missing copyright notice (FreeBSD rev. 1.1). 2004-03-01 23:28:02 +00:00
thorpej
c82e44fc22 Add missing copyright notice (FreeBSD rev. 1.5.2.2). 2004-03-01 23:24:10 +00:00
thorpej
09a25ecbcd Add missing copyright notices (FreeBSD rev 1.2.4.2). 2004-03-01 23:20:53 +00:00
itojun
ca0ee478c7 use "%s" for err(), do not pass pointer directly. Pedro Martelletto 2004-03-01 23:06:21 +00:00
itojun
466ceae082 unifdef -DINET6. getaddrinfo will always be there, so there's no point in
keeping old code.  moreover old code does not traverse list of DNS-returned
addresses.
2004-03-01 23:01:18 +00:00
itojun
581091043b knf 2004-03-01 22:32:35 +00:00
drochner
1dd7501db3 blow this up by sticking a copyright notice to it 2004-03-01 20:56:05 +00:00
drochner
c5bc0dada8 optimize this: we can use %ra for relocation directly
(saves 1 insn)
2004-03-01 20:43:19 +00:00
kleink
b66915a096 Cosmetics; add missing newline to autoconf output. 2004-03-01 20:29:24 +00:00
drochner
9560ce9b0f we need a silly trampoline to make _resumecontext work 2004-03-01 19:26:29 +00:00
thorpej
31e39503c5 Merge netkey/key.c rev 1.51 (wiz):
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2004-03-01 18:33:03 +00:00
drochner
293e83e97e get the offset to gp right 2004-03-01 18:32:51 +00:00
rtr
0b1ca8966d DEFAULTVT=vt05 to Xservers.ws generation for i386 only (as native does)
XXX should this be given vtXX for other MACHINE's?

should resolve pr#24619
2004-03-01 14:56:51 +00:00
pooka
abd87603f6 .XE without .XS should complain about that, not about .XS without .XE
i.e. fix tyop/thinko in error message
2004-03-01 14:43:44 +00:00
tron
a188d6072b Don't leak memory if a copyin fails. 2004-03-01 13:54:02 +00:00
drochner
98dbb9f046 on (fast) syscall exit, force %ds to its standard value --
it might have been modified by a netbsd32 process
2004-03-01 12:10:41 +00:00
drochner
7925327e58 set MDP_IRET in cpu_setmcontext() - the normal (fast)
syscall exit is not able to propagate all register
arguments
2004-03-01 12:06:02 +00:00
drochner
de3dc2ccec remove a pointless check - this code is not reached
in the normal case
2004-03-01 12:04:18 +00:00
skrll
d68db0e48c Oops! Remove harmless -DNH=${MKPIC} 2004-03-01 08:52:53 +00:00
jdolecek
638863d716 convert to using the libc iconv rather than trying to load libiconv.so 2004-03-01 07:46:33 +00:00
mrg
eaa3c8ce1b backout part of rev1.6: don't set machine_suffix and just_machine_suffix
in NETBSD_NATIVE mode.  from enami.
2004-03-01 07:36:59 +00:00
mrg
d9c305d49d merge gcc 3.3.3 cornflakes 2004-03-01 07:27:18 +00:00
mrg
18e7b0d6a5 initial import of GCC 3.3.3, which fixes a few more bugs from the prior
3.3.3-pre snapshot we were using.

visit http://gcc.gnu.org/gcc-3.3/changes.html#3.3.3 for more details.
2004-03-01 03:43:04 +00:00
mrg
ec14d423fc initial import of GCC 3.3.3, which fixes a few more bugs from the prior
3.3.3-pre snapshot we were using.

visit http://gcc.gnu.org/gcc-3.3/changes.html#3.3.3 for more details.
2004-03-01 03:32:51 +00:00
dyoung
074e4b8a74 Attach ath(4) HAL sysctls,
ath.hal.debug: enable/disable debugging (only if AH_DEBUG is defined)
ath.hal.version: version string, e.g., 0.9.6.11
2004-03-01 01:28:35 +00:00
dyoung
3644406951 Attach the ath(4) sysctls:
ath.dwell: channel dwell time (ms) for AP/station scanning
ath.calibrate: chip calibration interval (secs)
ath.outdoor: enable/disable outdoor operation
ath.countrycode: (opaque?) country code
ath.regdomain: (opaque?) regulatory domain
ath.debug: 0 (no debug messages), 1 (some messages), 2 (all messages)
2004-03-01 01:19:45 +00:00
oster
e35e293611 We always wait until we get memory, so the NULL check doesn't buy us anything. 2004-03-01 01:12:22 +00:00