Commit Graph

170983 Commits

Author SHA1 Message Date
drochner 8456b350de Seperate pseudo-devs which don't use device_t et al. (the classical
ones, mostly network pseudo interfaces) and those which use autoconf
to attach instances dynamically, or to attach child devices.
Use a new keyword "defpseudodev" for the latter.
Issue a warning if interface attributes are used with "old" pseudodevs,
but let it work as before for now. This will be removed soon.
approved by cube
2008-06-10 12:35:32 +00:00
ad 06da5288fa There can be existing waiters on a socket's condition variables when we
change socket::so_lock, and they rely on the old lock to synchronize.
Wake them up whenever we change so_lock so they can restart their waits.
2008-06-10 11:49:11 +00:00
ad 0964f00a45 Replace the example with something a bit more up to date. 2008-06-09 21:58:57 +00:00
njoly f7cecd2466 Do set mbuf in all cases, even for salen value of 0; otherwise this
will make a panic later when trying to free memory from a random
adress.

XXX Need to revisit it later to avoid mbuf allocation in this case.
2008-06-09 21:17:58 +00:00
he 28599b0f97 Mirror the changes to sys/arch/cats/conf/Makefile.cats.inc: remove
some more ELF sections when copying to a.out format: .debug_frame,
.debug_loc, .debug_pubnames, and .debug_aranges.
2008-06-09 20:05:12 +00:00
tsutsui bdb5991549 Emulate open collector output more properly to make it work with
reorganized MI i2c_bitbang.c:
- set GPOER register in set_dir function too according to GPOUTR value
- in set_bits function, don't set SDA_BIT implicitly in input mode and
  check current direction to handle GPOER register
- no need to check direction in read_check function because reading SCL
  is valid even if SDA is output

Tested by Donald T Hayford on port-arm.
2008-06-09 15:42:25 +00:00
ad da0a41c294 Update a comment. 2008-06-09 15:42:01 +00:00
ad 6bb1c8bc6f swappable: invert previous so we check for SACTIVE or SSTOP. 2008-06-09 11:52:34 +00:00
ad a3196ec57e swappable: return false if l->l_proc->p_stat == SDYING. 2008-06-09 11:51:43 +00:00
ad 0cd7bfa598 uvm_proc_exit: use macros to disable preemption. 2008-06-09 11:49:54 +00:00
ad f77c704577 Fix error in previous. 2008-06-09 11:49:40 +00:00
ad c862aeca6f ras_purgeall: avoid taking p_auxlock. 2008-06-09 11:46:34 +00:00
freza 6e9d339816 o Split device_t/softc for agp(4).
o agp_ali.c: remove unused 'agp' member from agp_ali_softc.
o drm: agp_find_device() returns 'void *', not a device_t.
o Use device_t, cfdata_t instead of struct pointers.
o Don't cast void pointers in assignments.
2008-06-09 06:49:54 +00:00
lukem 8cc604a385 Add missing RCSID. 2008-06-09 01:00:23 +00:00
lukem ef70558f4f Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
2008-06-09 00:33:39 +00:00
uwe b3f49ac041 sh_vector_generic - reorder literals to improve locality of reference. 2008-06-08 23:45:33 +00:00
uwe 1a80db70f1 Match PC address for single-stepping, program BARA = tf->tf_spc before
returning from exception.

Makes single-stepping work on sh3 - without matching the address sh3
gets stuck at the instruction we are at, getting EXPEVT_BREAK before
executing the instruction.
2008-06-08 22:13:09 +00:00
uwe ce2ea531e9 Use "pc" and "sr" instead of "spc" and "ssr" to refer to those
registers in DDB.  Names with initial "s" (for "saved") are somewhat
confusing to use.  The fact that we use SPC/SSR registers to retrieve
values of PC/SR at the moment of trap is an immaterial implementation
detail.
2008-06-08 22:02:08 +00:00
tsutsui 62e807c2fe Use device_lookup_private() rather than using cd_devs[] directly to get softc. 2008-06-08 18:35:25 +00:00
tsutsui 9499107496 Use device_lookup_private() rathter than device_private(device_lookup()). 2008-06-08 18:34:06 +00:00
tsutsui 887a89aa5c Use device_lookup_private() rather than using cd_devs[] directly to get softc.
XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.
2008-06-08 18:18:33 +00:00
tsutsui c9a8620b99 Replace homegrown pad_find_softc() with device_lookup_private(). 2008-06-08 18:14:31 +00:00
tsutsui fefb677d21 Use device_private() and device_lookup_private() to get softc
and to see if device unit is vaild.
2008-06-08 17:30:08 +00:00
tsutsui edcf0507a0 Use device_private() and device_lookup_private() in more places. 2008-06-08 17:27:51 +00:00
tsutsui e45b74073d Use device_private() and device_lookup_private() to get softc. 2008-06-08 17:08:23 +00:00
tsutsui a0e4edbb58 Use device_lookup_private() to get softc. 2008-06-08 16:39:43 +00:00
tsutsui 40b72ee81a Use device_private() and device_lookup_private() to get softc. 2008-06-08 16:39:11 +00:00
tsutsui 5b30cb96d9 Use device_lookup_private() to get softc. 2008-06-08 15:44:17 +00:00
joerg d2768df2f3 Mention 64bit support once during boot and not every time the controller
is reset.
2008-06-08 14:02:25 +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 5ab3329550 Correct previous. 2008-06-08 12:23:18 +00:00
ad 7304342b50 cdev_tty: don't acquire kernel lock, as we may need to call this with
tty_lock already held (and it would reverse the usual lock order).
2008-06-08 12:22:39 +00:00
ad 536e41c542 Fix up bus_dmamap_sync calls. 2008-06-08 11:58:50 +00:00
mlelstv 6e5c763373 really set Tx thresholds 2008-06-08 11:41:26 +00:00
darrenr 1752f1637c Use of kernel malloc to record what memory ipfilter was using was broken
due to bad placement of a #define inside a macro that was never true for
a kernel build.
2008-06-08 11:31:28 +00:00
cegger cd3c32c639 make this build with AZALIA_DEBUG
get rid of XNAME macro
2008-06-08 08:47:05 +00:00
tsutsui 1c6ef0f169 Add device nodes for usb devices. 2008-06-08 04:05:58 +00:00
tsutsui b3d67eaca7 Remove unnecessary casts against void pointers. 2008-06-08 03:56:09 +00:00
tsutsui ec3c45aecf Replace device_lookup() with device_lookup_private() to get softc
after device_t/softc split.  PR kern/38885 from Jonathan A. Kollasch.
2008-06-08 03:49:26 +00:00
uwe bb8100256b Cosmetics: add blank lines to make db_trap() call more prominent.
s/kdb/ddb/ is a comment (does anyone really still calls it kdb?)
2008-06-07 22:37:11 +00:00
uwe dcbf54d0f9 We never pass type = -1 to kdb_trap() so g/c that cargo-culted case. 2008-06-07 22:32:18 +00:00
uwe 720af5afe1 Fix IS_BREAKPOINT_TRAP: EXP_BREAK is not a breakpoint trap, it's UBC
(user break controller) trap, and we use UBC for single-stepping, not
for ddb breakpoints.  ddb breakpoints are "trapa 0xc3".
2008-06-07 22:22:10 +00:00
uwe 5fc69ea9ab Pass trap code to kgdb_trap(). 2008-06-07 22:04:40 +00:00
bouyer 581b1e5743 Initialize ih_ilevel for the special xenevt_processevt() handler.
Should fix KASSERT panic reported by Sarton O'Brien and Kazushi Marukawa
on port-xen@
2008-06-07 20:07:42 +00:00
he 61b81543f6 Mirror the change from shark: something, somewhere is emitting new
ELF sections which we need to filter out when objcopying to the a.out
kernel.  The new sections are .debug_frame, .debug_loc, .debug_pubnames,
and .debug_aranges.
2008-06-07 19:22:43 +00:00
he 9072349832 Something, somewhere has started emitting a number of new ELF sections,
and these need to be removed when objcompying to netbsd.aout.  The new
ones were .debug_frame, .debug_loc, .debug_pubnames, and .debug_aranges.
2008-06-07 18:47:41 +00:00
oster ea16b13f64 - Use bdev_strategy() instead of VOP_STRATEGY().
- Don't bother taking the v_interlock or bumping b_vp->v_numoutput --
there won't be any other writers for this bp, and so there's no point
doing this locking song'n'dance.

Patch from Juergen Hannken-Illjes.  Thanks!!!

Addresses PR#38856.  With this change I've been unable to
replicate the hard hangs.
2008-06-07 17:50:34 +00:00
freza 564b3de4f4 Split device_t/softc. Remove unused macros. 2008-06-07 16:32:38 +00:00
bouyer 36a9122525 For ATAPI, in addition to storing the short sense, report a SCSI_CHECK
condition, to that the scsipi layer will issue a request sense.
2008-06-07 12:56:57 +00:00
uwe 3a3f6e0005 Use _SH_TRA_BREAK instead of hardcoded constant under ifdef KGDB too. 2008-06-07 04:01:41 +00:00