Commit Graph

90554 Commits

Author SHA1 Message Date
pooka 5251a48396 support cv_broadcast() 2007-11-19 14:17:22 +00:00
njoly 40dffa27fd Do sensors inits before trying to attach them on the sysmon_envsys
device.
2007-11-19 12:16:44 +00:00
jnemeth e67de88d89 PR/37404 - Rui-Xiang Guo -- sync phy list with GENERIC 2007-11-19 11:04:46 +00:00
macallan 23cfff0893 various fixes and additions:
- deal with bogus parameters - just return instead of panic()ing
- try to attach a drm
- save and restore BARs in case X messes them up
2007-11-19 04:03:44 +00:00
macallan 7e95514fdc sprinkle \n 2007-11-19 04:00:39 +00:00
macallan 09f5c97a83 add genfb at pci
This should work with all firmware-supported PCI framebuffers but so far it's
only been tested with a PGX
2007-11-19 03:43:28 +00:00
macallan 56fd80e18a pull in ofw_subr.c for some convenience OpenFirmware routines 2007-11-19 03:26:04 +00:00
macallan 3cb71681aa do as macppc does and pass a bunch of parameters to PCI console framebuffers
With this we no longer need machine-dependent code in framebuffer console
drivers and we can use genfb at pci for otherwise unsupported graphics
chips as long as there's firmware support.
2007-11-19 02:52:56 +00:00
macallan f8e81531fa put the physical address of each psycho's memory range into a device
property so we can look it up in device_register() later on
ok'ed by martin
2007-11-19 02:45:50 +00:00
ad 2783731b63 Set curlwp for the boot CPU before entering main(). 2007-11-19 02:12:11 +00:00
bouyer 29d8eba17f Properly setup the IO APIC for ISA and pciide compat interrupts too.
Makes ACPI kernels works again with pciide controllers in compat mode.
2007-11-18 18:44:17 +00:00
ad 2795528241 #include <sys/atomic.h> instead of local prototypes. 2007-11-18 18:09:10 +00:00
ad 928d0fee5e Pull in atomic.h from the thorpej-atomic branch. 2007-11-18 18:08:35 +00:00
christos eb90df6853 From Marco Trillo (marcotrillo at gmail dot com):
Add Advanced power management in atactl(8)
2007-11-18 17:48:21 +00:00
ad 82a0bcef97 Work around issues with pool_cache on sparc. 2007-11-18 16:27:42 +00:00
he 842094660b Add an overlooked define of IPL_ZS, matching with splzs(). 2007-11-18 14:01:28 +00:00
he 3d297e5d56 Ensure that file ends with a newline. 2007-11-18 13:52:44 +00:00
jnemeth 237d2dd7e7 fix 'm' used unitialized 2007-11-18 12:40:15 +00:00
skrll caacd2c467 Typo in comment. From OpenBSD. 2007-11-18 12:18:21 +00:00
tsutsui b069af69e5 Remove complete items and a non cobalt specific one. 2007-11-18 07:14:57 +00:00
isaki 6ab6aa4fcf Use the same prototypes as libx68k.h. 2007-11-18 05:00:08 +00:00
isaki ed972ce998 Correct filename in a comment. 2007-11-18 04:59:51 +00:00
pooka 61b1e9a615 Make puffs_updatenode() take a puffs_node instead of a vnode. This
way we don't need to worry if a vnode has been reclaimed from under
us.
2007-11-17 21:55:29 +00:00
pooka 63e9f065b3 Start playing around with vnode locks. For now, do the very easy
thing and release locks before the userspace wait for operations
which release the lock before exit from the method in any case.
However, releasing the lock after inserting the request on the
operation queue gives us proper ordering possibilities in userspace
(at least if that bit were implemented, but I don't think there
any file system in userspace that depends on kernel locking and
probably there never should be one).

inspired by a conversation with Nacho Navarro
2007-11-17 21:30:48 +00:00
pooka 2632ba6df4 Implement cv_timedwait(), requested by Reinoud. 2007-11-17 20:50:18 +00:00
dsl 6748a0d09a Remove syscall_fancy.
Use MI code for SYS_SYSCALL and SYS___SYSCALL.
Optimise code to minimise normal path.
2007-11-17 19:48:40 +00:00
ad 705e179fb2 Reserve the top 4 bits of `boothowto' for MD flags. 2007-11-17 18:12:31 +00:00
oster d5020b9a35 Nuke debugging output that is a) misleading at best, and
b) often just wrong.  Thanks to wiz for catching this.
2007-11-17 18:11:19 +00:00
pooka ac5e27103d Implement a biodone callback for async writes similar to reads and
use that when possible.
2007-11-17 18:09:04 +00:00
pooka 803c088ce0 fix some debug prints 2007-11-17 18:03:15 +00:00
macallan 376f378895 deal with macppc not defining OPENPIC 2007-11-17 18:02:42 +00:00
macallan a11007a5fa have uninorth and bandit pull in their resp. IPI support stuff 2007-11-17 17:07:57 +00:00
macallan 40e17603bf sprinkle #ifdef OPENPIC so SMP-kernels without OpenPIC support build again. 2007-11-17 17:02:55 +00:00
ad e15eca1b5a Make it compile. 2007-11-17 15:28:37 +00:00
skrll 64ad60da4f Remove the .note section when creating the a.out kernel image. 2007-11-17 09:07:42 +00:00
skrll 833a64ae25 Deal with arm gas weirdness. 2007-11-17 08:59:51 +00:00
tsutsui d1112c275c Misc cosmetics. 2007-11-17 08:51:51 +00:00
tsutsui b95d1c0be7 Some KNF and cosmetics. 2007-11-17 08:34:38 +00:00
kefren 7ff1853b95 Initialize sensor's state
on behalf of xtraeme
2007-11-17 08:30:35 +00:00
kefren c61259ee1f initialize via sysmon_envsys_create()
make sensors valid
2007-11-17 08:23:46 +00:00
tsutsui bf39da4423 Also bswap recently added e2fs_reserved_ngdb in e2fs_sb_bswap(). 2007-11-17 03:43:18 +00:00
dyoung aadb8be251 Count received frames, Rx PLCP errors, Rx FCS (CRC32) errors, and
Rx ICV errors using evcnt(9).

In promiscuous mode, and when scanning (hmm), ask the NIC for bad
packets (e.g., those that do not pass CRC32).  Pass bad packets to
radiotap listeners.  Pass packets to radiotap listeners before
stripping FCS.  Re-order operations in atw_rxintr() to accomplish
all of this without passing bad packets up to net80211.

Set radiotap channel once in atw_tune() instead of in atw_rxintr().

Fix an endianness bug: it_len is little-endian, but bpf_mtap2()'s
argument needs to be in host order.
2007-11-16 23:51:02 +00:00
martin 62901ed523 Initialize curlwp early 2007-11-16 23:46:20 +00:00
dyoung 5c5f8f488c Accommodate the variety of RF front-ends when radiotapping frames:
tap only RSSI when there is a Philips RF front-end.  Tap both Barker
lock quality and RSSI when there is any other RF front-end.

Provide radiotap listeners a more complete picture of channel
activity:

    in promiscuous mode, tap frames who do not pass the CRC32 check.
    Flag packets that were received with a short preamble.  Ask
    the NIC to pass us 802.11 Control frames.  Pass frames to
    radiotap listeners before stripping the FCS.  Re-order operations
    in rtw_intr_rx() in order to accomplish all of this, taking
    care not to pass a broken packet to net80211!

Do not provide a flags field when tapping xmitted frames.

Assert sane Rx packet lengths.  Really should check and drop instead
of KASSERTing.  I will revisit this, soon.

Update copyright.
2007-11-16 23:35:19 +00:00
martin 223dc4f56f Define a simple variant of CPUINFO_FOREACH for non-MULTIPROCESSOR
kernels. The SMP variant does not work early in bootstrap, but I'll
leave that for Andrew to fix ;-)
2007-11-16 23:21:14 +00:00
njoly 20aee1e2a0 Set sensor state to ENVSYS_SVALID for correct values. Otherwise,
envstat(8) will report an unknown state and won't print the sensor
value.

ok by xtraeme.
2007-11-16 22:46:56 +00:00
skrll cf7197a7f7 Fix previous. Very sorry. 2007-11-16 21:48:19 +00:00
christos 62edf45793 defflag IPSEC_DEBUG 2007-11-16 21:15:20 +00:00
christos f5673d6a27 defopt I2OVERBOSE 2007-11-16 21:14:26 +00:00
pooka 622412c6c3 Restructure the messaging interface a bit more: make all interfacing
with the file server happen through puffs_msg_enqueue() and
puffs_msg_wait() instead of having a billion different routines.
Build the existing system upon these two.  Most importantly though,
decouple insertation into the op queue from the actual wait.  This
is useful for a number of reasons coming soon to a cvs repo near you.
2007-11-16 20:32:17 +00:00