rmind
1293cee4bd
Replace some wakeup_one(9) uses with mutex(9) or plain wakeup(9).
2011-08-07 13:39:23 +00:00
uebayasi
8184d5dc03
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
...
some other constants. These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
bouyer
8f7318d794
Fix confusion about PRE/POST in previous; and another place that has the
...
same issue. Also add a BUS_DMASYNC_POSTWRITE to the POLL operation.
Problem pointed out by tsutsui@.
Still not perfect (a BUS_DMASYNC_PREREAD would be needed after the
testing the condition in the POLL() macro), but closer.
2010-02-21 18:50:10 +00:00
bouyer
80f97b6e05
Fix bus_dmamap_sync(): it should be a BUS_DMASYNC_POSTWRITE after
...
writing to DMA memory.
Found by code inspection.
2010-02-21 14:16:47 +00:00
asau
bf551971e8
Don't mix BUS_DMASYNC_PREREAD and BUS_DMASYNC_POSTWRITE.
...
Suggested by <bouyer>, fixes PR kern/42662
2010-02-19 12:36:15 +00:00
rmind
40cf6f3659
Remove uarea swap-out functionality:
...
- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.
Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).
Discussed on <tech-kern>, reviewed by <ad>.
2009-10-21 21:11:57 +00:00
cegger
529e91fca1
struct device * -> device_t, no functional changes intended.
2009-05-12 14:16:35 +00:00
cegger
32c4940900
struct cfdata * -> cfdata_t, no functional changes intended.
2009-05-12 12:10:29 +00:00
mhitch
2c6d71a592
More device_t/softc split fallout, this time in iop(4). Fix from
...
Juan Romero Pardines. Tested on alpha by me.
2008-12-15 18:35:48 +00:00
mhitch
f60765db47
Use the physical address from the bus_dmamap_load() map, not the one from
...
the bus_dmamem_alloc(). Fixes iop(4) on alpha, and possibly sparc64 as
described in the thread
http://mail-index.netbsd.org/port-sparc64/2008/06/04/msg000413.html .
2008-09-14 18:12:16 +00:00
tron
362b2f2b14
Complete device_t/softc split for the ld(4) attachments. This should
...
prevent crashes while attaching a drive.
Patch supplied by Juan RP in PR kern/39468.
2008-09-09 12:45:39 +00:00
gmcgarry
0de5da9678
Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
...
preprocessor macros.
2008-09-08 23:36:53 +00:00
simonb
82bb1c2ff8
Add a flags argument to the ld(4) flush handlers, and call these with a
...
"poll" flag when called from ld_shutdown().
This is the infrastructure part of kern/38655 - in itself it doesn't
fix the panic referenced in that PR.
XXX: At least ld_twa.c and perhaps ld_iop.c and ld_icp.c need to
check for this new poll flag and do something useful.
2008-08-11 06:43:37 +00:00
tsutsui
1f459d82b5
Replace device_lookup() with device_lookup_private() on getting softc
...
for future device_t/softc spilt.
2008-06-08 12:43:51 +00:00
ad
536e41c542
Fix up bus_dmamap_sync calls.
2008-06-08 11:58:50 +00:00
ad
107b551a56
Include machine/cputypes.h explicitly.
2008-05-11 14:25:48 +00:00
simonb
dc15915150
Fix a tyop in a comment.
2008-05-10 14:52:55 +00:00
ad
e071d39c84
- Convert hashinit() to use kmem_alloc(). The hash tables can be large
...
and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.
2008-05-05 17:11:16 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cegger
0e50a9464d
use aprint_*_dev and device_xname
2008-04-06 20:25:59 +00:00
dyoung
6127f4ed3f
Don't get under the device_t abstraction by measuring the length
...
of dv_xname, especially not to set the length of a buffer that
(apparently) belongs to the kernel ABI. Instead, set the buffer
length to 16, which is the current length of dv_xname.
2008-02-11 03:36:25 +00:00
ad
598ab03ad0
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
...
for Solaris.
2007-12-05 07:06:50 +00:00
ad
0e93b3c25e
The I2O LAN stuff was never tested and is just more code to maintain -
...
remove it.
2007-12-01 18:14:48 +00:00
ad
b46323f065
I2OVERBOSE/opt_i2o.h were removed
2007-12-01 18:13:17 +00:00
ad
8ef7991906
Noisy printfs.
2007-12-01 18:12:37 +00:00
christos
f5673d6a27
defopt I2OVERBOSE
2007-11-16 21:14:26 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
dyoung
c53c02b0c9
Once again, use ether_ioctl() instead of (cmd == SIOCADDMULTI) ?
...
ether_addmulti() : ether_delmulti().
2007-09-01 07:43:36 +00:00
dyoung
f004b71d98
Constify.
2007-08-26 22:36:35 +00:00
ad
eb171eaaa7
It's not a good idea for device drivers to modify b_flags, as they don't
...
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:50:17 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
ad
e5bca80a53
- Merge changes from the vmlocking branch.
...
- Eliminate opt_i2o.h, since I2OVERBOSE is gone.
2007-06-16 12:32:12 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
ad
9abeea588a
Replace some uses of lockmgr() / simplelocks.
2007-02-15 15:40:50 +00:00
cube
aaf0bffcea
Fix uninitialised warnings. All are false positives, except one which was
...
indeed real.
2007-01-13 19:43:20 +00:00
elad
432c309931
Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
...
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.
Discussed on tech-security@ and tech-kern@. Okay tls@.
2006-12-02 03:10:42 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
elad
87d047b739
Replace securelevel checks with kauth(9) calls.
2006-11-08 00:17:09 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
christos
1f689bbab1
fix empty if.
2006-10-04 15:52:35 +00:00
christos
888446efb0
fix empty if
2006-10-04 15:41:25 +00:00
dogcow
f2d329dca0
remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.
2006-09-07 02:40:31 +00:00
christos
e6aa223b06
- fix initializers
...
- comment out dead code.
2006-08-30 17:07:33 +00:00
christos
2ddf5cde1a
fix incomplete initializers.
2006-08-30 00:41:46 +00:00
christos
d5ca3efd41
undo previous. Andy says the struct is used in pkgsrc.
2006-08-27 21:39:39 +00:00
christos
1b3d66a467
Sprinkle _KERNEL.
2006-08-27 20:32:44 +00:00
christos
f0f1731b24
Acting as Elad's keyboard:
...
Place the securelevel checks in their logical locations.
This will be clearer in the future when code changes to use kauth(9) calls.
input and okay ad@
2006-08-23 15:44:29 +00:00
christos
e35ee08ce3
Coverity CID 1532: Off-by-one array overrun.
2006-04-14 20:17:34 +00:00
christos
31535ad130
Coverity CID 1081: Avoid NULL deref.
2006-04-14 20:16:02 +00:00
thorpej
8fc3572573
Use device_private().
2006-03-29 06:41:24 +00:00