Commit Graph

171328 Commits

Author SHA1 Message Date
kent eadd4f5dcf Make uaudio compilable as a kmod.
XXX:
"modload uaudio.kmod" doesn't attach the uaudio driver to
plugged USB devices for now because uhub_rescan() is not
implemented yet.  We need to re-plug USB devices after modload.
2008-06-28 09:14:56 +00:00
kent b46d745a05 We don't need to include opt_usbverbose.h here. 2008-06-28 09:06:20 +00:00
isaki 3e6d14da34 Unify splraiseipl(9) implementation among m68k ports,
discussed with tsutsui@ on port-m68k. OK'ed by jdc@.

For atari:
- export ipl2psl_table[] and make it uint16_t
- make makeiplcookie(9) inline
- put PSL_S bit into ipl2psl_table[] rather than adding it in makeiplcookie(9)
- vme/if_le_vme.c: fix a wrong usage of IPL_NET
2008-06-28 05:26:33 +00:00
simonb b48dda4894 For simonb-wapbl branch, journalling is not known to have any stability
issues any more.  Remove that note.
2008-06-28 03:30:24 +00:00
rumble 28f5ebd853 Create sysctl entries during module initialisation and destroy them
appropriately.

Many of these file systems are now ready for modularisation.
2008-06-28 01:34:05 +00:00
mlelstv 90dd6be882 Always cast to the right result type, independent of compiler
and optimizer settings, otherwise this causes signed/unsigned errors.
2008-06-27 22:19:43 +00:00
dyoung a475a8844f Make build.sh -C work as advertised. 2008-06-27 21:38:36 +00:00
he 9a4020480e Bump SYMTAB_SPACE so that it fits again. 2008-06-27 21:10:38 +00:00
ad 5fbf4abeea mutex_spin_enter: xchg is usually cheaper than cmpxchg, so use it. 2008-06-27 18:16:02 +00:00
degroote ba4ebf7e6b Kill caddr_t introduced in the previous revision
Fix build with FAST_IPSEC
2008-06-27 17:28:24 +00:00
drochner 04fc7d252f kill some abuse of __strong_alias which is not compatible with
split device/softc, this might fix crashes on umodem disconnect
reported by some people (eg PR kern/39050 from Matthias Pfaller)
2008-06-27 16:05:59 +00:00
christos fc2d56c7e9 Fix perms for /var/db/postfix thanks to Matthias Drochner for the report. 2008-06-27 14:29:30 +00:00
tsutsui 99644a6f1e Remove ({ }) gcc extensions and use static inline functions instead. 2008-06-27 13:05:12 +00:00
njoly 9084eed1a8 Add SIOCGIFHWADDR support.
Tested by Cem Kayali.
2008-06-27 12:38:25 +00:00
cegger c82e679e68 struct device * -> device_t 2008-06-27 11:03:13 +00:00
cegger 6e15fd7e81 remove undeclared caddr_t. makes i386 ALL kernel build again. 2008-06-27 09:16:21 +00:00
cegger e56aa07054 ansify 2008-06-27 08:59:36 +00:00
dogcow c3b638be42 %d doesn't work so well with the now-u_long type. (HI GMCGARRY!) 2008-06-27 08:17:43 +00:00
mlelstv fa014c6383 Verify icmp type and code in IPSEC rules.
Fixes PR kern/39018
2008-06-27 05:18:58 +00:00
gmcgarry 21385c9124 Remove gcc comma-eliminating variadic macro. Prefer __func__. 2008-06-27 02:09:49 +00:00
gmcgarry c6470d3748 ioctl commands are unsigned long. 2008-06-27 01:42:44 +00:00
gmcgarry 444423850d pcc now supports __section(). 2008-06-27 01:24:52 +00:00
gmcgarry 9b5de72b31 Convert lmc(4) to mutexes, removing ({ }) gcc extension along the way. 2008-06-27 00:53:41 +00:00
gmcgarry e31e503a44 Replace lines beginning with assembler-style comments with c-style comments,
since '#' can be interpretted as a preprocessor directive.  Remove single
quote ''' from assembler-style comments, as the preprocessor may ignore
everything between them.

Fixes compilation with pcc.
2008-06-27 00:41:39 +00:00
drochner ef7fd726d9 delete more dead code, remove use of pcic_handle except of some local
uses in pcmcia ressource management which is copied from ISA pcic,
so use our softc as handle exported to generic pcmcia code and kill
the ph_parent backpointer - this makes the code simpler and smaller
2008-06-26 20:57:10 +00:00
drochner c1194a4601 remove some more dead code, and use the softc as handle in more internal
functions rather than pcic_handle
2008-06-26 18:05:48 +00:00
drochner ed1bea6b56 remove references to nonexisting members of pcic_handle in commented out
and debug code, from Patrick Welche
(we could as well drop pcic_handle completely and use our softc as
the opaque handle for the pcmcia code - this would simplify the code
even more)
2008-06-26 17:22:23 +00:00
kent 78e5efcf6e build and install azalia.kmod for amd64 and i386. 2008-06-26 16:10:35 +00:00
kent fcc61272b4 * azalia_rirb_intr()
fix a problem that normal responses are skipped unintentionally.

* azalia_stream_start()
  access HDA_INTCTL with AZ_READ_4()/AZ_WRITE_4().
  access HDA_SD_CTL with STR_READ_1()/AZ_WRITE_1().

* azalia_modcmd()
  enclose config_cfdata_attach() with splaudio().
2008-06-26 15:51:10 +00:00
nakayama fe90ebb7eb - remove unused old code.
- avoid use of "<< TSTATE_PSTATE_SHIFT".
2008-06-26 15:17:06 +00:00
nakayama 88b527f6d7 Ansify and follow the recent cardbus changes:
- split device/softc
- avoid the use of i82365var.h
2008-06-26 15:08:48 +00:00
plunky d7fdc240c9 do not hold bt_lock while detaching bthub, as devices may need to aquire
it in order to detach cleanly.
2008-06-26 14:17:27 +00:00
reinoud d769966488 Count the length correctly when encountering an allocation extension
redirect in the sanity checking.
2008-06-26 13:28:45 +00:00
drochner cc29fcf8b9 constify the pcmcia/cardbus method tables 2008-06-26 12:33:17 +00:00
kiyohara c7f7a60802 Fix split device_t/softc.
And reorder.
2008-06-26 03:32:17 +00:00
isaki 48d12f0315 Unify splraiseipl(9) implementation among m68k ports,
discussed with tsutsui@ on port-m68k.

For mvme68k:
- export ipl2psl_table[] and make it uint16_t
- make makeiplcookie(9) inline
- put PSL_S bit into ipl2psl_table[] rather than adding it in makeiplcookie(9)
- define both IPL_SCHED and IPL_HIGH independently to avoid confusion
- replace the order of IPL_SOFTCLOCK and IPL_SOFTBIO according to spl(9)
2008-06-26 02:52:29 +00:00
isaki ad81ade3ae Unify splraiseipl(9) implementation among m68k ports,
discussed with tsutsui@ on port-m68k.

For next68k:
- export ipl2psl_table[] and make it uint16_t
- make makeiplcookie(9) inline
- put PSL_S bit into ipl2psl_table[] rather than adding it in makeiplcookie(9)
- define both IPL_SCHED and IPL_HIGH independently to avoid confusion
2008-06-26 02:52:03 +00:00
joerg 6c136cabc8 Mask the interrupt pin in the other places as well as reminded by
Jared.
2008-06-25 19:57:22 +00:00
ad 321c12209b Don't swap kernel stacks of realtime threads. 2008-06-25 19:20:56 +00:00
joerg eecefde4f0 Mask the higher bits of the interrupt pin extract from the _PTR.
Alan Barrett reported a system in PR 38959 that (incorrectly) uses the
higher bits and which resulted in a bad table being built.
2008-06-25 18:05:17 +00:00
reinoud 93d7f858ba Disable read/write mounting for metadatapartition since attempts to delete
files now corrupt the image due to the lack of allocation scheme support.
2008-06-25 16:06:29 +00:00
reinoud 30c78783eb Allow metadata partitioned discs to be mounted read-write even though its
allocation scheme is not implemented yet. Creating new files or deleting
anything is thus not possible.
2008-06-25 15:59:24 +00:00
drochner 2b26f69613 Avoid the use of i82365var.h - we don't use any functions from there.
Extract some data structures for ressource management into our private
header instead. This allows to use a typed pointer instead of a
generic one which saves a lot of typecasts.
Also remove something marked as "dirty hack" which I admittedly don't
understand, but it doesn't look useful...
2008-06-25 15:29:23 +00:00
reinoud ca7a0d4ebd Fix lookup problems in very fragmented metadata partitions that use
allocation extent descriptors.
2008-06-25 15:28:29 +00:00
reinoud 7536094ea3 Bump maximum number of allocation extents descriptors in a file/directory;
10 did seem far too many, but aparently ``640 kb should be enough for
everyone''.
2008-06-25 15:27:14 +00:00
isaki b50b2ac3ed Split device_t/softc for dmac_*_xfer().
Rename some variables to avoid confusing.
2008-06-25 13:30:24 +00:00
ad 1c7f0a02df Use pool_cache. 2008-06-25 13:21:04 +00:00
pooka d496f014ff Don't compile kern_lock for rump any more, it's no longer required.
Allows us to get rid of the incorrect _RUMPKERNEL ifdefs outside sys/rump.
2008-06-25 13:16:58 +00:00
isaki 2b1a1a9c7f Link to device_t. I had forgotten it in previous commit. 2008-06-25 12:56:40 +00:00
ad 2a7116daf3 ttyname_r is another of the strange functions that returns its error code
instead of setting errno.
2008-06-25 11:47:29 +00:00