Commit Graph

90831 Commits

Author SHA1 Message Date
ad
901f9ae9f6 cv_init(&lbolt, "lbolt"); 2007-11-29 15:41:07 +00:00
ad
afb9be47ba - Change _lock_cas() to do compare-and-swap instead of compare-and-set.
- Add aliases for atomic_cas_ulong() and friends.
2007-11-29 15:17:45 +00:00
ad
ccbc7a4bd9 Add 'bool returning' argument to cpu_switchto (unused). 2007-11-29 14:30:32 +00:00
ad
86b20896d3 Use system-provided atomic ops. 2007-11-29 14:29:29 +00:00
yamt
d0f12a6ad9 instead of setting pcb_onfault on every calls of copyin and friends,
make the fault handler investigate program counter of faulting code.
inspired from linux.
2007-11-29 09:53:33 +00:00
nisimura
5155a3ee9b comment-out lpt0 since EnCorePP1 experiences occasional irq 7 flood
regardless of the special care to disable LPT function in VIA 686SB.
May not revive anytime soon as it's considered little use.
2007-11-29 06:50:37 +00:00
nisimura
e511172428 add preliminary wm.c, a lot of fixes to make other NIC more sensible. 2007-11-29 04:00:17 +00:00
jnemeth
bf33c34cf5 add dev/ofw/ofw_subr.c to VARSTACK 2007-11-29 01:39:27 +00:00
ad
92d7e73c2a Add alias for atomic_cas_64() if available. 2007-11-29 01:04:20 +00:00
ad
f5474801b3 __HAVE_ATOMIC64_OPS if 64-bit 2007-11-29 00:58:03 +00:00
ad
32c745d42e __HAVE_ATOMIC64_OPS 2007-11-29 00:56:53 +00:00
ad
962de970f5 __HAVE_ATOMIC64_OPS for SUN4U. 2007-11-29 00:56:13 +00:00
ad
c291a9d4fa RW_GIVE() needs to do a mb_memory() now. 2007-11-29 00:17:54 +00:00
ad
872af53778 - Change _lock_cas and friends to do "compare and swap" instead of "compare
and set".
- Rename them to _atomic_cas_uint, _atomic_cas_ulong etc and provide strong
  aliases for the other names CAS goes by.
2007-11-29 00:14:27 +00:00
degroote
9a2478a81d Fix compilation in case of COMPAT_FREEBSD_NET80211.
Any reason that we use by default the old api ioctl instead of the 'new' api ioctl ?
(Time is a good reason :)).
2007-11-28 23:23:11 +00:00
he
ddc4103ec7 Allow this to build both for sparc64 and for the GENERIC_SUN4U sparc kernel. 2007-11-28 22:54:46 +00:00
degroote
db9d3119cf In wpi_init, check for the status of radio switch and print a useful message
in this case.
2007-11-28 22:51:49 +00:00
plunky
87914664c7 [experimentally] report failing commands
this does happen sometimes and I would like to see if it happens
more often than I know of.
2007-11-28 21:46:52 +00:00
ad
57ab3d5998 Grab tty_lock in more places. Noted and tested by degroote@. 2007-11-28 21:44:11 +00:00
ad
a906840a60 There is no mvme88k! 2007-11-28 20:50:10 +00:00
jnemeth
f3ce6c9275 don't include sys/intr.h twice, why aren't the includes sorted? 2007-11-28 20:41:35 +00:00
plunky
736a9db087 Clean up the way that bluetooth drivers attach to the bluetooth stack,
to remove the frobbing that drivers must do in the hci_unit structure.

- driver provides a static const interface descriptor
- hci_unit is allocated by hci_attach() rather than part of softc
- statistics are compiled by driver and provided on request
- driver provides output methods and is responsible for output queue
- stack provides input methods and is responsible for input queue
- mutex is used to arbitrate device queue access
2007-11-28 20:16:11 +00:00
rmind
c75dc3277a Unify the license: All rights reserved.
No functional change.
2007-11-28 19:30:55 +00:00
ad
b8f8bca01a Use the softint API. 2007-11-28 18:55:30 +00:00
pooka
e49789dd46 more l removal 2007-11-28 18:50:10 +00:00
ad
16b547ec7f Please can we nuke this code? 2007-11-28 18:45:03 +00:00
ad
4517da3861 x86_mb_nop is now unused. 2007-11-28 18:19:20 +00:00
ad
1a82318781 Use the softint API. 2007-11-28 18:03:56 +00:00
ad
77724e6afd Hook in the atomic ops on alpha. 2007-11-28 17:40:02 +00:00
pooka
bce4ea0296 one more lock to destroy 2007-11-28 17:01:59 +00:00
pooka
efe797dc32 * version the registration interface
* destroy all created locks
2007-11-28 16:59:02 +00:00
ad
a0b58b4601 Remove remaining CPUCLASS_386 tests. 2007-11-28 16:44:46 +00:00
ad
157ae0ddef Use the new atomic ops. 2007-11-28 16:40:40 +00:00
ad
6def667f04 Use the new atomic ops. 2007-11-28 16:28:43 +00:00
ad
0cddf536c0 Hook in the atomic ops from libkern. 2007-11-28 15:26:00 +00:00
yamt
82d61b9ade - merge {i386,xen}/i386/trap.c.
- add a comment about a hack for xen2.
2007-11-28 14:02:30 +00:00
jnemeth
fd5cef8508 Sync with src/sys/sparc/dev/fd.c change to use softint(9) API.
XXX Please keep these two in sync as this one is a drop-in replacement
for the sparc version and the idea is to have both sparc and sparc64
use the same file one day.
2007-11-28 12:44:13 +00:00
simonb
f717d58276 Use lswi/syswi instead of lwz/stw when doing loads/stores since we don't
know the alignment of data being copied.  403 cores have alignment
restrictions on lwz/stw that 405 cores don't have.  lswi/syswi benchmark
at the same speed as lwz/stw on a 405 Walnut.

Fixes problems reported by Juergen Hannken-Illjes on the Explora.
2007-11-28 12:22:28 +00:00
he
756f91194a Follow up the removal of the lwp argument to VOP_ functions.
In some cases, use curlwp instead of the now missing argument.
2007-11-28 10:34:37 +00:00
dyoung
b6995d1653 Bug fix: make pf_route() set M_CSUM_IPV4 before calling ip_fragment().
If you use a route-to rule such as 'pass out quick on ath0 route-to
gre2 all', and the MTU on gre2 is smaller than the MTU on ath0,
then pf_route() will fragment your packet by calling ip_fragment().
Because pf_route() did not set M_CSUM_IPv4, ip_fragment() would
not compute the checksum on the fragments, and PF would send IP
fragments with bad checksums out of gre2.
2007-11-28 04:23:33 +00:00
dyoung
79d53b3100 Move IN_NEED_CHECKSUM() to in_offload.h for re-use. 2007-11-28 04:14:11 +00:00
briggs
75b18122f2 Correct a typo. To create the command/status word, shift the components
left, not right.
2007-11-28 04:03:16 +00:00
dyoung
453e5e8a7d Cosmetic: join two lines. 2007-11-28 02:40:21 +00:00
kiyohara
b8e760f970 + Use device_t.
+ Increment rptr if send the ESCAPE char.
+ Use m_pkthdr.len for pktlen.
2007-11-28 01:31:55 +00:00
ad
15619e77dc Remove the sub-word atomic ops because they can not be implemented correctly
on some architectures and so are misleading. The same effect can be had by
building on top of the 32-bit CAS. As a side effect this makes it somewhat
easier to complete and document the operations across all platforms.
2007-11-28 01:30:06 +00:00
dogcow
3c143b9440 more lwp cacking fallout 2007-11-27 23:30:56 +00:00
christos
a9c710744b require that the options argument is the right size, not that it is greater
or equal to the requested size. Suggested by Matt Thomas.
2007-11-27 22:45:29 +00:00
ad
23589af2fb lwp arg to VOPs is gone. 2007-11-27 22:12:24 +00:00
ad
99801e924b Use the softint API. 2007-11-27 21:56:06 +00:00
christos
c98098ca80 Add aligned(16) in savefpu like the i386 port has. Suggested by Matthias
Drochner.
2007-11-27 18:23:03 +00:00
reinoud
1783f9c4fa Pullup fixes from UDF RW support project. This commit fixes the
mmc_discinfo conceptional bug and also vastly improves VAT searching.
2007-11-27 18:10:42 +00:00
reinoud
9c2e200bb1 Pullup fixes from UDF write development project. This patch fixes a
conceptional bug in mmc_discinfo, improves DVD+R feature detection and
prevents corruption of mmc_trackinfo readout on some devices that return
short trackinfo structures.
2007-11-27 18:06:37 +00:00
pooka
25e04cd80d regen: assert l == curlwp in NDINIT 2007-11-27 15:52:56 +00:00
pooka
94b846957b Do some dynamic analysis for the next few days: KASSERT that
l == curlwp in NDINIT
2007-11-27 15:52:26 +00:00
christos
8f2e876039 Shuffle things around so that pcb_savefpu goes back to be aligned in a 16
bit boundary. Noted by Arto Huusko.
2007-11-27 15:49:48 +00:00
pooka
69668a6b81 regen 2007-11-27 15:27:51 +00:00
pooka
064cfb563e pull in rev 1.54 of namei.h 2007-11-27 15:27:30 +00:00
tsutsui
fdc8440c81 - use prop_dictionary_set_bool() to set "aic7xxx-use-target-defaults" property
- set "override_ultra" property against not all but only built-in ahc
2007-11-27 13:26:37 +00:00
pooka
f9379f7719 a_l -> curlwp 2007-11-27 11:37:27 +00:00
pooka
6a3d9a187d Remove "puffs_cid" from the puffs interface following l-removal
from the kernel vfs interfaces.  puffs_cc_getcaller(pcc) can be
used now should the same information be desired.
2007-11-27 11:31:17 +00:00
dogcow
6c09f19fb4 and one more lwp removal victim 2007-11-27 11:25:29 +00:00
hannken
8b99233008 When using bus_space_map() on the ISA bus unstride the address. Since
Rev. 1.13 of sys/arch/powerpc/powerpc/bus_space.c the address will be
strided by memio_map().
2007-11-27 10:59:24 +00:00
hannken
3b59dbb195 Bump SYMTAB_SPACE so that it fits again. 2007-11-27 10:55:27 +00:00
dogcow
3465a006e9 more VFS_STATVFS(x,y,z) fallout; change them to VFS_STATVFS(x,y). (hi, pooka!) 2007-11-27 09:47:15 +00:00
dogcow
1e02f40f0f fallout from the not-quite-complete curlwp removal.
I'm not sure why I had to monkey about with the includes to get VFS_SYNC to
reappear.
2007-11-27 09:14:21 +00:00
ad
c3a9a185b4 Tidy up the sigacts locking a bit: sigacts can be shared between
multiple processes.
2007-11-27 01:27:30 +00:00
dyoung
2db1c5cdfa Bug fix: in ath_init(), if ath_enable() fails, ATH_UNLOCK() before
returning.
2007-11-27 00:07:42 +00:00
dyoung
e45771984e Don't process the CAB queue twice in ath_tx_proc_q0123. 2007-11-26 23:54:48 +00:00
dyoung
37bdac8857 Eliminate redundant check for read-only mbuf data, since
M_TRAILINGSPACE() does a more complete check on NetBSD.
2007-11-26 23:52:40 +00:00
dyoung
84a52560a3 Bug fix: restore antenna diversity settings after reset. 2007-11-26 23:49:55 +00:00
dyoung
ecfc7c1996 Use device_xname(). Make device_printf() take a device_t argument.
Add __attribute__((__format__(__printf__,2,3))) to device_printf()
so that the compiler will help us detect bad arguments.

Retire unused subroutine m_defrag(), and unused declaration m_getcl().
2007-11-26 23:48:37 +00:00
ad
34db286793 Use the softint API. 2007-11-26 23:29:36 +00:00
ad
afa1151e21 IPL_STATCLOCK -> IPL_HIGH 2007-11-26 23:28:31 +00:00
he
0bfa260fce Remove a now-unused variable. 2007-11-26 23:16:15 +00:00
macallan
b795935f14 repeat after me: I will not test OF nodes for validity by checking for >0
since node numbers may well have 0x80000000 set
2007-11-26 23:13:37 +00:00
dyoung
ca57c50be5 Make this compile. Use callout_init() instead of ATH_CALLOUT_INIT(),
since callout_init() on FreeBSD and NetBSD are the same, now.
2007-11-26 20:45:01 +00:00
garbled
b0f4d9f970 Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc.  In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.
2007-11-26 19:58:29 +00:00
pooka
c4de3009af 4.99.38: struct lwp gone from VFS/VOP interfaces 2007-11-26 19:04:28 +00:00
pooka
0aea761bea regen: remove struct lwp as a parameter to VOPs 2007-11-26 19:03:30 +00:00
pooka
61e8303e9d Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern
2007-11-26 19:01:26 +00:00
christos
1b601e0085 Add dell latitude 420 in the list of machines that need special treatment
to silence speakers when headphones are plugged in. From Marcin Michal Jessa
2007-11-26 15:47:36 +00:00
tsutsui
e2199739d6 Misc cosmetics. 2007-11-26 15:46:48 +00:00
tsutsui
da1f43d88f Account e2fs_reserved_ngdb blocks accordingly in ext2fs_statvfs(). 2007-11-26 15:41:03 +00:00
christos
759df5a6a0 make cr2 64 bits. Requested by fvdl. 2007-11-26 15:38:29 +00:00
joerg
1fa4940a62 Separate handling of __attribute__, __dead and __pure:
- define away __attribute__ if not running GCC or running GCC < 2.0.
- use __attribute__((__return__)) for GCC >= 2.5, keep other cases.
- use __attribute__((__pure__)) for GCC >= 29.6, keep other cases.
2007-11-26 14:52:34 +00:00
pooka
1b346350d5 In case the userspace wait is interrupted, don't use ERESTART as
the return value, rather use EINTR.

reported by Reinoud
2007-11-26 12:57:26 +00:00
yamt
e43896bb4f free: fix size passed to LOCKDEBUG_MEM_CHECK. 2007-11-26 11:48:55 +00:00
bjs
759a913b44 Add PCI_PRODUCT_ATI_RADEON_R430_554F to the R420 chip class.
This will not work until (at the very least) we map the memory properly
(MMIO/VRAM BARs are 64-bit)--some of the values in the configuration
space may be different.  I will discuss this with others, and maybe
it will work someday.
2007-11-26 09:39:50 +00:00
bjs
24e9564be9 Add PCI IDs for the ATI Radeon X800 GTO (R430). Most sources I have
consulted indicated that this ID is an R430 (including xf86-video-ati).

PCI_PRODUCT_ATI_RADEON_R430_554F (primary)
PCI_PRODUCT_ATI_RADEON_R430_556F (secondary)

vga0 at pci1 dev 0 function 0: ATI Technologies product 0x554f (rev. 0x00)
ATI Technologies product 0x556f (miscellaneous display) at pci1 dev 0 function 1 not configured
2007-11-26 09:36:28 +00:00
yamt
8ed07fbf78 inetctlerrmap: use designated initializer. 2007-11-26 08:40:46 +00:00
yamt
ee7cf9f0ab pmap_create: M_VMMAP -> M_VMPMAP for pmap. 2007-11-26 08:33:11 +00:00
xtraeme
f444fd7856 Make this build without LOCKDEBUG (the if statement that uses
LOCKDEBUG_MEM_CHECK).
2007-11-26 08:22:32 +00:00
yamt
1a95aafc2b uvm_map_extract: for UVM_EXTRACT_QREF, mark entries UVM_MAP_NOMERGE. 2007-11-26 08:20:46 +00:00
yamt
354863d6e5 lockdebug_mem_check: turn a redundant check into a panic. 2007-11-26 08:16:49 +00:00
yamt
89169ed40b uvm_unmap1: LOCKDEBUG_MEM_CHECK for kernel_map. 2007-11-26 08:15:19 +00:00
yamt
5e36d79445 in6_pcbsetport: add missing htons. (fixes ephemeral port allocation.) 2007-11-26 08:12:33 +00:00
kiyohara
a6caad5208 #ifndef-ed macro BTBC_DEFAULT_BAUDRATE. 2007-11-25 23:32:44 +00:00
bouyer
e6190ce36f Ops, don't forget break in switch statements ... 2007-11-25 23:23:09 +00:00
bouyer
d3cd257630 Add support for the "protocol" entry in xenstore, which really specifies
the ABI used by the front-end (x86 32 or 64 bit). A linux 32bit PAE kernel
can now boot on a NetBSD 64bit dom0 and use the block devices.
2007-11-25 22:44:39 +00:00
rmind
8cfca2b5e3 - Retry the operations (instead of failing) in case of reallocation.
Suggested by <yamt>.
- Use predicts in checks for reallocation state.
2007-11-25 19:03:24 +00:00