yamt
c819fadc97
shrink sizeof struct nfsnode by putting exclusive members into union.
2004-03-12 16:52:37 +00:00
yamt
a4cbf5b042
introduce a macro NFS_INVALIDATE_ATTRCACHE and use it
...
instead of "n_attrstamp = 0".
2004-03-12 16:52:14 +00:00
nonaka
57c768218b
reduce size...
2004-03-12 15:18:33 +00:00
ragge
3bb5e65a6b
Add driver for Intel PRO/10GbE ethernet adapter. Now NetBSD has no
...
problem with intercontinental TCP connections of over 4Gbit/s, which is
where my test hardware runs out of bus bandwidth.
Stuff that is on the TODO list:
* HW VLAN support.
* Large jumbo buffers (16k).
* TCP Segmentation Offload
* RAIDC (receive interrupt delay adaptation)
* Understand how to use memory above 4GB.
2004-03-12 13:46:52 +00:00
drochner
04325221da
regen
2004-03-12 13:32:00 +00:00
drochner
ff0d2298c2
add Canon EOS300d
2004-03-12 13:31:28 +00:00
drochner
9cd594d535
report SIGSEGV/SEGV_ACCERR if code execution on stack is attempted,
...
tested by Martin Husemann
2004-03-12 13:27:03 +00:00
drochner
8acd734e5f
deal with 82801EB/ER (ICH5) Network Controller
2004-03-12 13:22:28 +00:00
drochner
b7fc89cd4c
regen
2004-03-12 13:21:22 +00:00
drochner
51968004e2
add ICH5 builtin ethernet
2004-03-12 13:20:49 +00:00
jkunz
1917acaf35
Make new Intel i82596 Ethernet driver default for hp700.
2004-03-12 11:44:13 +00:00
jkunz
098a6e75bb
Import hp700 MD part of new Intel i82596 Ethernet driver.
2004-03-12 11:41:39 +00:00
jkunz
17e4dce36a
Import MI part of new Intel i82596 Ethernet driver.
2004-03-12 11:37:17 +00:00
christos
7bd0e983e2
PR/24750: Frank Kardel: panic when process is signalled during
...
proc initialization.
2004-03-11 22:34:26 +00:00
cl
638599b22b
Add static nfs boot configuration, from the kernel config file or from
...
a driver selectable callback function. This is used in the Xen port to
allow controlling the domain's network setup from the domain building
environment at domain creation (vs. having to maintain/change this on a
dhcp server). The Xen network driver parses a command line passed in
from the domain builder.
2004-03-11 21:48:43 +00:00
cl
41d325dc43
Add port to the Xen virtual machine monitor.
...
(see http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ )
2004-03-11 21:44:08 +00:00
kanaoka
bbfd611e6d
- Add (missed)"csc->cc_ih = NULL;" in com_cardbus_disable().
...
- Check "csc->cc_ih != NULL" before cardbus_intr_disestablish()
in com_cardbus_detach().
This fixed panic when the card removed.
The card is a "Xircom RealPort Cardbus Ethernet 10/100+Modem 56".
Reported & Tested by Peter Postma <peter.postma@chello.nl>
on current-users.
2004-03-11 16:34:54 +00:00
christos
fcc8e3a5b0
PR/24741: Aymeric Vincent: Variable sme_flags isn't initialized to zero
2004-03-11 15:40:13 +00:00
christos
cde926b610
PR/24745: Jared Momose: kernel prompts for a root device when using md_root
2004-03-11 15:17:55 +00:00
christos
29f176cc88
PR/24746: Jared Momose: The _write routine in the at24cxx eeprom driver has
...
a =/== bug.
2004-03-11 15:11:53 +00:00
pooka
c5e500a486
Reflect dropping mappings in map_size.
...
Avoids panic on DIAGNOSTIC kernels.
ok by chs
2004-03-11 15:03:47 +00:00
kanaoka
82aab73572
Add (missed)"csc->sc_ih = NULL;" in rtk_cardbus_disable().
...
This fixed panic when card removed
after "ifconfig rtk0 up; ifconfig rtk0 down".
2004-03-11 12:19:14 +00:00
yamt
3e796c5be5
reserve a MAXBSIZE-sized buffer for inodedeps for pagedaemon.
...
PR/24443.
2004-03-11 11:50:43 +00:00
yamt
bfe5a94adc
as we always replace whole buf in the case of indirdep,
...
simply changing b_data is enough. eliminate M_INDIRDEP.
PR/24443.
2004-03-11 11:48:16 +00:00
yamt
aad9f63765
before resuming from failure during return to user mode,
...
- clear PSL_NT. it can be set by userland because setting it
isn't a privileged operation.
(cf. DSA-336-1, CVE-2002-0429)
- set PSL_I. otherwise, if SIGSEGV is ignored, we'll
end up to infinite loop, generating the same traps, with
interrupts disabled.
2004-03-11 11:42:04 +00:00
yamt
b62ef7b657
update trap(), resume_iret and friends to match with
...
the recent version of INTRFASTEXIT.
might be related to PR/24711.
2004-03-11 11:39:25 +00:00
he
545d50632e
Remove local declaration of 'sg', since it is no longer used.
2004-03-11 10:14:10 +00:00
jmc
ad0332662d
daddr_t is forced to int32_t in sys/arch/atari/stand/Makefile.inc so correct
...
the printf formats to match this
2004-03-11 07:22:25 +00:00
dbj
8ad71c85f1
quiet tls. change botched superblock warning to use -b 16
2004-03-11 07:14:12 +00:00
jmc
2311909a8b
Provide standard workaround for \!defined __BUS_SPACE_HAS_STREAM_METHODS
2004-03-11 05:59:33 +00:00
cgd
965d1e331b
update from SiByte Sample Software version 1.0.26 from:
...
http://sibyte.broadcom.com/public/resources/download-request.html?samplesw/samplesw-1.0.26.tar.bz2
2004-03-11 02:12:24 +00:00
matt
02fd2a994a
Fixes for that only support for the 2030 can be compiled in.
2004-03-10 22:42:47 +00:00
matt
d377ba32b7
Don't report EPIPE errors on nfs sockets. These can be due to idle tcp
...
mounts which will be closed by netapp, solaris, etc. if left idle too long.
2004-03-10 22:36:42 +00:00
bouyer
f0816e2b90
Enable ATA-133 for AMD8111. From Nicolas Joly in kern/24729.
...
pciide_apollo_reg.h already contains the Ultra133 timming values for amd.
2004-03-10 22:16:04 +00:00
bouyer
eefc140c02
The 1010-66 always generate AIP values on the bus, regardless of the SCNTL4
...
settings. Disable AIP completely, as this confuse pre-Ultra160 drives.
From FreeBSD.
2004-03-10 22:02:53 +00:00
bouyer
567e3c10bc
Decrease xs_retries before retrying aborted commands, and report EIO if it
...
reaches 0. Avoids looping on aborded command in some special cases.
2004-03-10 21:57:31 +00:00
bouyer
b08ad7c74c
Add the HPT370 DPLL output frequency register.
2004-03-10 21:55:21 +00:00
bouyer
6338d77271
The real value of the message is in msgin, not
...
esiop_cmd->cmd_tables->msg_in[0], so print the correct value.
2004-03-10 21:51:29 +00:00
drochner
6a4fbf616c
fix tcp/udp checksum test in the M_CSUM_NO_PSEUDOHDR case
...
(this can never have worked)
now I can use a "bge" gigabit interface with hw checksumming
ttcp-t: 2147483648 bytes in 18.31 real seconds = 114527.11 KB/sec +++
woow!
2004-03-10 18:50:45 +00:00
drochner
529666a2a8
use "=" instead of "|=" on first assignment to mbuf.csum_flags
...
(probably unnecessary because zero-initialized on mget, but
cheaper anyway)
2004-03-10 18:46:10 +00:00
nonaka
ff60b11847
missing new-line after mc146818_attach().
2004-03-10 15:19:22 +00:00
nonaka
4c2b0e6fe2
boot-loader can find attached kernel again.
2004-03-10 15:17:01 +00:00
nonaka
b67a1a734a
wdc_obio can be used again.
2004-03-10 15:14:49 +00:00
keihan
2ece851d2e
Add 10GBASE-LR to IFM_10G_LR.
2004-03-10 14:42:10 +00:00
keihan
b220964103
s/netbsd.org/NetBSD.org/g
2004-03-10 09:56:59 +00:00
itojun
721292cf12
constify AH algorithm function table. suggested by robert watson
2004-03-10 03:45:04 +00:00
jdc
bfd698dc3d
Catch up to the bootblock split into std and milan directories.
2004-03-09 20:14:27 +00:00
sekiya
4a4eccf833
Add int2_wait_fifo(), which will idle while awaiting a flag in the interrupt
...
controller to deassert. Needed for the more interesting features of various
SGI framebuffers.
2004-03-09 14:05:09 +00:00
yamt
f75335b469
- add a function prototype.
...
- consitify.
2004-03-09 12:23:07 +00:00
yamt
15c9d33810
calculate data checksum inline.
2004-03-09 07:43:49 +00:00
yamt
81ce5e8cc3
use correct segment size. this fixes memory corruption when using lfsv1.
2004-03-09 06:43:18 +00:00
yamt
cd9b5b72f5
m_cat: assert mbuf types only when coalescing them by copying.
...
mbuf n often have 0-sized "headers" and their types don't matter much.
PR/24713 from Darrin B. Jewell.
2004-03-09 06:37:59 +00:00
dbj
7a30c4a987
add more spltty() calls around TTY_LOCK/UNLOCK where needed
2004-03-09 05:30:24 +00:00
atatat
c2309bcca6
*Don't* call sys___sysctl() from within the kernel. Use old_sysctl()
...
instead.
2004-03-09 03:18:03 +00:00
atatat
f0e2808b8b
Remove pointless comment about layerfs_sysctl()
2004-03-09 03:16:08 +00:00
atatat
a451cb447e
Fix spelling of "orphan" and placement of */
2004-03-09 03:14:09 +00:00
atatat
0d4caad924
Remove useless comment about stuff that never happened.
2004-03-09 03:13:07 +00:00
atatat
bb33b98bad
I obviously put this (__SYSCTL_PRIVATE) here, but I have no
...
recollection of what it was for and it's now just useless, so it goes.
2004-03-09 03:11:39 +00:00
oster
37533dd249
Introduce RF_DEBUG_ENGINE and use it to disable a number of debugging
...
bits in rf_engine.c
2004-03-09 03:10:26 +00:00
oster
82c3abf8e3
Use RF_DEBUG_QUIESCE to #if-out some printfs that really only should
...
be seen when debugging.
2004-03-09 02:41:21 +00:00
junyoung
70706199eb
Whitespaces.
2004-03-09 02:35:45 +00:00
oster
71371823e7
rf_ShutdownList() isn't returning anything useful, and doesn't need to
...
return anything. Cleanup.
Cleanup function prototypes in rf_shutdown.h
Use #if RF_DEBUG_SHUTDOWN to #if-out more code.
2004-03-09 02:15:33 +00:00
cgd
9ace356dba
proper name for SB-1 is ... SB-1 (not SB1).
2004-03-09 00:47:14 +00:00
dbj
436daafe7e
add splvm() around a few pa_slock and psppool calls since they
...
may be shared with pools that can be used in interrupt context.
2004-03-08 22:48:09 +00:00
simonb
38b2b82a1a
Wrap some long lines.
2004-03-08 11:28:48 +00:00
dyoung
bfe1b324c6
Fix endianness bug to make awi(4) work on macppc (and other big-endian
...
machines).
2004-03-08 06:52:44 +00:00
jmc
7ea4175be1
Nuke unused var
2004-03-08 06:35:23 +00:00
jmc
1e908aacac
Don't trim the ramdisk space smaller than the max ramdisk size...i.e. make it 2M
2004-03-08 05:52:56 +00:00
jmc
ed141a197a
Sync up w. other sh3 ports and don't install trap.h
2004-03-08 05:12:10 +00:00
simonb
aaf826ed6a
Strip out a few more sections when making the ecoff file to reduce the
...
ECOFF file size. Problems noticed by James Chacon.
2004-03-08 05:00:02 +00:00
atatat
73c41a46cc
Some optimization for sysctl_locate()
2004-03-08 03:31:26 +00:00
oster
bce42a3095
Move pss_pool to rf_pools. Will save a bit of extra memory at
...
run-time, and we can only do one reconstruction at a time anyway.
Nuke pss_issued_pool - move it to an internal structure in pss.
2004-03-08 02:25:27 +00:00
oster
8cbd53826e
A few more cleanups missed in last commit.
2004-03-08 01:59:26 +00:00
oster
acce07be62
Minor cleanup. No functional change.
2004-03-08 01:55:14 +00:00
oster
c25748c684
Rename rf_rad_pool_lock to rf_rad_lock. The latter is far more
...
accurate.
2004-03-07 23:17:44 +00:00
oster
f95359dd19
- Introduce rf_pools which contains all of the various global pools used
...
by RAIDframe. Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe. Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.
(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)
2004-03-07 22:15:19 +00:00
oster
834d494bb2
- Introduce rf_pools which contains all of the various global pools used
...
by RAIDframe. Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe. Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.
(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)
2004-03-07 21:57:44 +00:00
oster
c31c7c5652
Cleanup function prototypes.
2004-03-07 05:01:15 +00:00
oster
dd0716f291
We don't need 2-fault tollerant stuff here in the default case.
...
Use #if's to conditionalize the code compilation.
(Saves another 1K on i386 GENERIC kernels)
2004-03-07 02:59:25 +00:00
oster
43648c8525
Minor cleanups. No functional changes.
2004-03-07 02:49:23 +00:00
oster
d02f580adf
- fix up initialization of rf_recond_pool
...
- introduce rf_reconbuffer_pool and teach rf_MakeReconBuffer() to use it
2004-03-07 02:46:58 +00:00
oster
3f36d142d8
Re-work rf_GenerateFailedAccessASMs() to simplify things a bit.
...
rf_AllocBuffer() is available, so use it to get buffer space instead
of the previous RF_Malloc() bits. Saves a few bytes, but more
importantly makes the code much more readable.
2004-03-07 02:25:36 +00:00
oster
9e4fc614fc
Pretty up a bit of unused code.
2004-03-06 23:53:31 +00:00
oster
967b00b4ec
rf_AllocBuffer() doesn't do anything with its dag_h parameter. Nuke
...
it, and adjust callers.
2004-03-06 23:52:20 +00:00
oster
54eab15188
Sprinkle a few #if's to ignore some bits that are only used for RAID 6 or PQ stuff. Saves another 3K on i386 GENERIC.
2004-03-06 23:34:27 +00:00
oster
dc76c4b111
Minor tabbing cleanup. No functional change.
2004-03-06 22:59:42 +00:00
heinz
ebfae274fc
Use KS_KP_Separator instead of KS_KP_Decimal on German keyboards,
...
identical to what XFree86 does and consistent with what's printed
on the key caps.
2004-03-06 19:42:26 +00:00
martin
bddc2b94bb
Set BGE_JUMBO_RXRING_VALID in bge_flags when allocating jumbo ring buffers,
...
so it can be freed later. From HITOSHI Osada in PR kern/24686.
2004-03-06 17:42:43 +00:00
sekiya
64732fc9ae
Print an informative message when unimpl_intr() is invoked, rather than panic().
2004-03-06 07:50:56 +00:00
yamt
25a0a3496e
revert ufs_lookup.c rev.1.53 (MNT_ASYNC changes)
...
it was redundant because our bwrite() knows about MNT_ASYNC.
ok'ed by Jaromir Dolecek and Chuck Silvers.
2004-03-06 06:54:12 +00:00
wrstuden
8383006f0f
Handle the case of fifo_close() getting called from vclean(). In that
...
case, we tear down the node-specific storage as if there were no more open
users. As vclean() will VT_NON the vnode before anyone else will get access
to the vnode, this is our last chance.
Fixes memory leak in revoke(2) path noticed by tedu at openbsd dot org.
2004-03-06 00:38:29 +00:00
drochner
d56da55ea4
-oops - correct the x87 si_code reporting to use the current fsw
...
-for XMM traps, report mxcsr in si_trap
2004-03-05 21:21:14 +00:00
dbj
5dc123ec73
add debugging assertion ensuring UBC_FAULTBUSY is only used with UBC_WRITE
2004-03-05 20:44:01 +00:00
drochner
571265fc35
deal with XMM exceptions
...
(I'm not sure whether it is right to clear the "sticky"
exception bits here, but in the i387 case even the whole
FPU is initialized...)
2004-03-05 17:20:13 +00:00
he
efb05353c0
Remove the local proc_trampoline definition from this file as well.
2004-03-05 15:50:42 +00:00
junyoung
0f89803028
Drop trailing spaces.
2004-03-05 11:30:50 +00:00
junyoung
103afd6ebf
lwp_exit2(): set lwp state to SZOMB at more appropriate point.
2004-03-05 11:17:41 +00:00
petrov
2f82eaf699
Check character if it in font limits before drawing it in rasops8_putchar
...
functions.
2004-03-05 08:33:53 +00:00
dbj
f8e0478668
add some spltty() calls around TTY_LOCK() calls that didn't have them
2004-03-05 07:27:22 +00:00
oster
bfeeabba13
Use RF_INCLUDE_PARITY_DECLUSTERING_DS to #if-out more unneeded bits.
...
(We can't do RF_DISTRIBUTE_SPARE bits without the parity declustering stuff.)
2004-03-05 03:58:21 +00:00
oster
7bd09b0f2b
Introduce RF_DEBUG_DAG and use it to #if-out rf_dagDebug sections.
...
(i386 GENERIC kernel shrinks by 1.6K)
2004-03-05 03:22:05 +00:00
oster
a0413593bc
- remove the RF_*_INC's, as necessary. They are not needed any more.
...
- introduce RF_MIN_*'s, as necessary. These will indicate the
low-water mark for pools as well as the pool_prime() value.
- add pool_setlowat() for the critical pools.
- pool_prime() and pool_setlowat() the raidframe_cbufpool.
- re-order some pool_prime()'s and pool_sethiwat()'s for clarity.
2004-03-05 02:53:55 +00:00
kleink
8e54f10bf7
* Turn isinf(3) and isnan(3) into C99-style macros.
...
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
drochner
bb362b40bf
fix some problems with FPU exception signaling:
...
-The MachFPTrap did generate pre-siginfo arguments to trapsignal(),
leading to an immediate crash.
Put the siginfo generation into a separate .c file for simplicity.
-The exception bits in MIPS_FPU_CSR didn't get cleared, leading to
trouble later ("kernel used FPU" on pmax).
XXX This should probably be done for the "unimplemented fpu instruction"
case as well, but I don't know how to test this. Or, even better -
centralize the CSR clearing before the branch in MachFPTrap.
2004-03-04 20:17:01 +00:00
jdc
162e36abb1
Make this include the Jornada 720 config and just change the memory size,
...
as it is exactly the same otherwise.
2004-03-04 19:57:59 +00:00
nathanw
797c90374e
Centralize identical copies of proc_trampoline code.
...
(lots more opportunites here for the bored hacker, such as rei and trap0...)
2004-03-04 19:53:44 +00:00
abs
4bace323ed
Add portuguese keyboard map - from Antonio Marques in PR kern/23295
2004-03-04 19:52:52 +00:00
dbj
1ea0a01420
fix comment about spllowersoftclock
2004-03-04 19:10:10 +00:00
wiz
e8f4f5ba76
No need to include netinet/ip_mroute.h twice.
...
Closes PR 24652 by Kailash Sethuraman.
2004-03-04 15:15:06 +00:00
oster
a57d045808
Remove a comment that is no longer relevant.
2004-03-04 03:27:30 +00:00
oster
b6ec2bc708
Cleanup function prototypes.
2004-03-04 03:14:02 +00:00
oster
516b22a972
Another variable that was only ever initialized. Turf.
2004-03-04 03:02:01 +00:00
oster
5d768c003f
Cleanup function prototypes.
2004-03-04 02:55:58 +00:00
oster
708c19adaf
Fix mcpair locking issues -- we really don't need the lock held
...
the entire time we spend in calling rf_DiskIOEnqueue().
2004-03-04 02:49:58 +00:00
oster
409f2e3222
More function prototype cleanups.
2004-03-04 02:26:50 +00:00
oster
5102542bf2
Cleanup function prototype.
2004-03-04 02:25:13 +00:00
oster
65f967653e
More leftover 'row' bits now removed.
2004-03-04 01:57:54 +00:00
oster
55cb2c9a0d
Cleanup one more leftover 'row' variable. Cleanup function prototypes
...
in rf_diskqueue.h
2004-03-04 01:53:25 +00:00
oster
6e2928d6d5
resultNum isn't used anywhere. Good-bye.
2004-03-04 00:56:13 +00:00
oster
8b515e1496
rf_bwd1 and rf_bwd2 are holdovers from the "backward" error recovery.
...
Nuke them, and the little bit of code associated with them.
2004-03-04 00:54:30 +00:00
matt
1b4f540b78
Look at _UC_STACK to decide whether the process' SS_ONSTACK state needs to
...
be updated. (This is needed to be compatible with how pre-SIGINFO signals
operated. If you siglongjmp out of a signal handler, the SS_ONSTACK state
needs to be cleared. This commit restores that functionality).
2004-03-04 00:05:58 +00:00
dsl
1288fac2ba
No need to initialise [rw]pipe twice.
...
Initialise locks before trying to allocate pipe buffer, when allocate
fails we'll not explode trying to acquire the locks when tidying up.
2004-03-03 22:00:34 +00:00
christos
08230af71c
initialize rpipe and wpipe to NULL, so that they are initialized in the
...
error path.
2004-03-03 21:35:52 +00:00
thorpej
fc892593e5
Add new macros:
...
- RAS_DECL(name): declare the RAS "name"
- RAS_START(name): mark the start of the RAS "name"
- RAS_END(name): mark the end of the RAS "name"
- RAS_ADDR(name): compute the starting address of the RAS "name"
- RAS_SIZE(name): compute the size of the RAS "name"
RAS_START() and RAS_END() have implicit instruction reordering barriers.
RAS_ADDR() and RAS_SIZE() are to be used when registering a RAS.
2004-03-03 21:05:30 +00:00
drochner
302b606369
fix some problems with lazy fpu context handling:
...
-if a new process gets a CPU with an FPU state of another process, it
needs to initialize it to a clean state
(actually, put the "fninit" where it belongs logically)
-initialize mxcsr as well
minor cleanup/optimization
Signal delivery after unmasking some cause is still broken - it doesn't
care about xmm exceptions. For now, set at least si_code to something
positive so that it doesn't look like a user generated asynchonous signal.
2004-03-03 20:27:53 +00:00
oster
2fb9f8db54
Nuke some unnecessary casts. No functional changes.
2004-03-03 17:14:46 +00:00
oster
28bd6c8ea2
Introduce RF_REVENT_READ_FAILED, RF_REVENT_WRITE_FAILED and RF_REVENT_FORCEREAD_FAILED.
...
This removes 3 more RF_PANIC()'s (but we'll currently still panic if any of these cases occur).
fix up a few printf's.
XXX: still needs more cleanup and testing (and be taught to not panic).
2004-03-03 16:59:54 +00:00
oster
b2784ea2d7
Cleanup function prototypes.
2004-03-03 16:12:28 +00:00
oster
992f7c8269
- cleanup unneeded 'row' from RF_CallbackDesc_s.
...
- remove callbackArg2 from RF_CallbackDesc_s -- it is only ever set,
never read.
- now that this is done, all callbacks should only take a single argument,
and we can simplify things further.
2004-03-03 13:29:00 +00:00
thorpej
8387ab32c5
Use IPSEC_PCB_SKIP_IPSEC() to short-circuit calls to ipsec{4,6}_hdrsiz_tcp().
2004-03-03 05:59:38 +00:00
gavan
bd6b4bb251
Add Creative Labs SB Audigy LS
2004-03-03 01:03:04 +00:00
oster
dc851b8e23
Improve comments on rf_LookupRUStatus(). No functional changes.
2004-03-03 01:02:44 +00:00
oster
edf3711f4e
Cleanup function prototypes.
2004-03-03 00:58:03 +00:00
oster
b3eae139eb
- cleanup memory allocation in rf_AllocPSStatus()
...
- change function signature of rf_LookupRUStatus(). The last argument
is now a pointer to a new PSS, in case one is needed. Rather than
having rf_LookupRUStatus() allocate a new PSS, we pre-allocate one
beforehand, where necessary, just in case.
- change callers of rf_lookupRUStatus() to deal with the new way of
calling rf_lookupRUStatus().
[no improvement or worsening of parity rebuild/initialization performance.]
2004-03-03 00:45:20 +00:00
dyoung
65e1a3b112
Oops, ath(4) tells dBm signal, not dB signal.
2004-03-03 00:05:16 +00:00
oster
564980b994
Another spot where we're willing to wait for pool_get to give us something
...
useful.
2004-03-02 19:36:21 +00:00
oster
a37cdad459
A few more cases where RF_DEBUG_PSS can be used.
2004-03-02 16:40:10 +00:00
martin
ce925f4f4f
Interrupt descriptors might become invalid while being processed in
...
uhci_check_intr - so remember their next pointer before calling it.
Patch provided by Matthew Orgass in PR kern/24542.
2004-03-02 16:32:05 +00:00
oster
79a5cbaf41
DO_WAIT and DO_SIGNAL macros are a bit much, as they are only each used
...
in one place. Simplify things a bit. No functional change.
2004-03-02 16:03:00 +00:00
oster
a7e422ac7f
We're willing to wait, so we should always get something valid from
...
pool_get().
2004-03-02 15:55:56 +00:00
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
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
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
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
581091043b
knf
2004-03-01 22:32:35 +00:00
kleink
b66915a096
Cosmetics; add missing newline to autoconf output.
2004-03-01 20:29:24 +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
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
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
oster
63e07285f8
Bah. RF_ACC_TRACE bits need a bit more work before they can be turned off.
...
Re-enable until all parts can be disabled at the same time.
2004-02-29 23:27:24 +00:00
oster
b5e62ef069
As a LOCK_DEBUG kernel complains, we should really initialze
...
rf_tracing_mutex.
2004-02-29 23:10:58 +00:00
oster
4b8d5fc8b6
Unlock the mcpair mutex before we call rf_DispatchDAG(), and re-lock it once
...
we are back. Makes things much happier on SMP boxen. Problem noted
by SimonB. (Thanks!)
2004-02-29 23:03:30 +00:00
oster
e9ec029612
Oops.. might still need this mutex in a few places.
2004-02-29 22:32:37 +00:00
oster
65ba8db490
Minor shuffling of variable declarations to clean RF_ACC_TRACE #defines
...
up a bit. No functional changes.
2004-02-29 22:11:54 +00:00
oster
0d2f3606aa
Add "RF_ACC_TRACE" as a new #define to rf_archs.h.
...
Use it to conditionalize some of the access tracing and tracerec bits.
Chops about 4 K off of an i386 GENERIC kernel.
2004-02-29 21:38:41 +00:00
oster
cf01eb78b2
Minor comment reformatting.
2004-02-29 20:47:37 +00:00
oster
d272af6ed2
When the 'if' condition is true, the function will return, so there
...
is no need for this chunk of code to be in the 'else' part.
Remove the 'else', and left-shift the code.
No functional changes.
2004-02-29 20:11:26 +00:00
jdolecek
1c8e4dd167
add comment to smbfs_remove() regarding the limitation to only remove
...
unreferenced files
2004-02-29 12:19:15 +00:00
jdolecek
b4b58e65b1
print info about active vnodes in reclaim/inactive if prtactive is set
2004-02-29 12:17:39 +00:00
jdolecek
1a3236aefa
close the SMB handle when vnode is inactivated, rather than on file close,
...
so that mmap()ped regions remain accessible even when the file descriptor
is closed
g/c smbnode's n_opencount, and have single NOPEN flag instead
fixes PR kern/24516 by Lloyd Parkes
change obtained from FreeBSD, with only minor adjustments
2004-02-29 11:47:08 +00:00
jdolecek
4ba68533b9
use global prtactive setting instead of ntfs-specific variable;
...
this also changes default, to not print the active vnodes
2004-02-29 11:08:55 +00:00
oster
5a02af5b21
Adjust _rf_ShutdownCreate() so that it is willing to wait for more
...
memory. Since we only now ever "return(0)", just return (void)
instead.
Cleanup all uses of rf_ShutdownCreate() to not worry about
it ever failing. Shaves another 600 bytes off of an i386 GENERIC kernel.
2004-02-29 04:03:50 +00:00
oster
da96c7f542
InitHdrNode() might as well return 'void'. Nothing ever pays attention
...
to what it returns anyway!
2004-02-29 01:50:23 +00:00
oster
4907fd699b
rf_MakeAllocList() will always get memory. No point in checking for
...
a case that won't ever occur.
2004-02-29 01:49:13 +00:00
oster
d4a8e64b16
We'd better have gotten a dag header from the pool. In any event, callers
...
arn't checking what we return anyway. (Cleanup memory allocations.)
2004-02-29 01:47:45 +00:00
oster
2e0cff190a
TransferDagMemory() doesn't exist, so these lines are just wasting space.
2004-02-29 01:37:04 +00:00
oster
5e23bfcf9b
Stripe functions are now handled by a linked-list instead of a
...
runtime-variable array.
Fix a bug where stripeFuncs was being freed, and then being used after
(in the case of numStripesBailed > 0).
2004-02-29 01:24:34 +00:00
dyoung
d68ab48dd5
Update ath(4)'s Hardware Abstraction Layer (HAL) to version 0.9.6.11.
...
Both the API and ABI changed, hence the changes to so many .c and
.h files.
2004-02-29 00:47:21 +00:00
dsl
44eaa39982
Report errno value from boot1() - even though the standalone FS code
...
seems to translate everything into ENOENT.
2004-02-28 23:01:55 +00:00
dsl
da7ffa3cbe
Look for /boot in the 'a' partition (from the label in the mbr partition)
...
if it can't be found in a filesystem (or raid set) at the start of the
mbr partition.
2004-02-28 22:32:23 +00:00
dbj
5b782a2183
allow err of IREENT_MAGIC when looking for interrupt frames
2004-02-28 20:30:58 +00:00
simonb
a50cc8bd42
Catch up with the November 2002 (!!) change to remove ABI exposure
...
from cpu_fork and the proc trampoline. pthreads programs that fork
now work (at least the regress test case does).
Program reported by Florian Stöhr on port-sgimips.
2004-02-28 16:02:03 +00:00
simonb
7e050bc20e
ANSIfy, wrap long lines.
2004-02-28 15:44:34 +00:00
jdolecek
8af8547957
smbfs_rename(): #ifdef notyet some code related to disabled smbfs_smb_move(),
...
and also fix a return in the code section - we need to do vnode cleanup
before returning error
2004-02-28 09:19:53 +00:00
jdolecek
0a48f48a91
smbfs_rename(): only touch attribute cache properties if the operation
...
is carried out; particularily, don't touch it if the rename files
due to EXDEV - the 'from' or 'to' vnode may not be on smbfs filesystem
at all in that case
this is the final fix for PR kern/24455 by Milos Urbanek
2004-02-28 09:04:00 +00:00
yamt
395e9958f2
change the way to handle NEW_BUFQ_STRATEGY option.
...
instead of putting #ifdefs into each drivers,
use a global variable to indicate default strategy.
XXX should have a way to specify other strategies.
2004-02-28 06:28:47 +00:00
dbj
0dcc30f1ff
fix bug in tracing current process by explicit pid
2004-02-28 02:58:35 +00:00
dbj
ba0f8cbecc
fix an uninitialized variable problem that prevented t/u from working.
...
this also helps some when no symbols are available
2004-02-28 01:00:30 +00:00
sekiya
d289507533
Blinkenlitzen for IP20 (Indigo).
2004-02-28 00:53:56 +00:00
dbj
d3e00c7d64
fix backtracing through interrupt frames and system call frames
2004-02-27 22:52:03 +00:00
enami
ac317107c7
Backout (part of) rev. 1.187, since the control no longer fall through.
2004-02-27 21:37:48 +00:00
scw
c29e82af70
Must Test Before Committing...
2004-02-27 18:55:19 +00:00