197158 Commits

Author SHA1 Message Date
dyoung
3f178d7fdb Protect against a NULL pointer dereference that I've seen in the wild. 2011-01-26 00:55:42 +00:00
dyoung
703c7df20f unifdef -U__bsdi__ -U__FreeBSD__ -D__NetBSD__. No functional change
intended.
2011-01-26 00:54:35 +00:00
dyoung
c168b21fd4 Define masks for subsystem vendor and subsystem ID fields, plus a couple
of macros for extracting them.
2011-01-26 00:49:56 +00:00
pooka
d13f306052 Add bwi from PR kern/40279. There is no know case of testing the
driver on amd64/i386, but if it doesn't work at least we're more
likely to get a PR instead of people wondering about lacking driver
support.
2011-01-26 00:25:55 +00:00
msaitoh
f786db6b15 Fix MAC address check on 8257[156] and 80003 case. Some cards have non 0xffff
pointer but those don't use alternative MAC address in reality. So we check
whether the broadcast bit is set or not like Intel's e1000 driver.
Fixes PR kern/44072 reported by Jean-Yves Moulin.

Remove extra Warning for newer cards.
2011-01-26 00:25:34 +00:00
dyoung
7e230002ef Make oodles of mainly cosmetic changes that make rtw(4)'s PCI attachment
resemble its CardBus attachment very, very closely: slightly more than
24 lines are different.  Alas, I cannot commit the CardBus part of this
change, yet, because I have to finish my overhaul of CardBus resource
handling, first.
2011-01-26 00:16:52 +00:00
dyoung
e664fe9f2c Get out of the interrupt handler early if !IFF_RUNNING. 2011-01-26 00:09:27 +00:00
dyoung
84c27227f5 Improve error reporting during attachment to PCI ath(4). 2011-01-26 00:08:30 +00:00
yamt
b5ca7f5a5b - add some random notes
Basically, KASSERT() should be used for light-weight checks and
     KDASSERT() should be used for heavier ones.

     Callers should not rely on the side effects of expression because,
     depending on the kernel compile options mentioned above, expression might
     not be evaluated at all.

- Xr options(4)
- bump date
2011-01-25 23:46:48 +00:00
skrll
6c1ba1691b Trailing whitespace. 2011-01-25 21:27:48 +00:00
skrll
0f20ab8fc3 define<tab> 2011-01-25 21:27:11 +00:00
macallan
195f4ebf1c Add support for asynchronous drawing in vcons.
This is not finished but good enough for others to play with, enable with
options VCONS_DRAW_ASYNC
With this all drawing operations will be posted to a ring buffer instead
of being run directly, and run by a kernel thread. This avoids having to wait
for drawing operations to finish with the kernel lock held ( to a degree at
least ) and scrolling a (slow) framebuffer console should not disrupt other
operations anymore.
Problems:
- we need to switch back to synchronous operations when panicing or entering
  ddb, also re-enable async drawing when leaving ddb
- there are still occasional glitches
tested on an SS20 with cg14 and cg6 for dumb and accelerated cases
2011-01-25 20:28:21 +00:00
christos
3203d4e972 proved an __ssp_check macro. 2011-01-25 19:13:44 +00:00
christos
13fe5bd280 Fix SSP build.
XXX: This is gross.
2011-01-25 19:13:26 +00:00
christos
c5d359be42 make pthread__sp unsigned long. 2011-01-25 19:12:04 +00:00
pooka
8c818e7121 fix compilation on -current 2011-01-25 17:37:00 +00:00
matt
d32b258b78 When starting the second pass, don't continue the for loop but instead
just test try exceeding limit.
2011-01-25 17:22:43 +00:00
pooka
8d51265b11 Use rump_sp consistently in chapter 7
nothing gets past the wizd, nothing.
2011-01-25 14:05:42 +00:00
tsutsui
8831804ffb Split device_t/softc. Tested on Indy. 2011-01-25 13:22:05 +00:00
tsutsui
fde2c776a7 KNF and misc cosmetics. 2011-01-25 13:12:39 +00:00
pooka
46e9c4686a enable WARNS=4 2011-01-25 12:56:57 +00:00
pooka
493a9cc0b3 manual page for rumphijack 2011-01-25 12:56:25 +00:00
pooka
f4ef6bac83 the usual fun for WARNS=4
signed,
  unsigned
2011-01-25 12:53:45 +00:00
tsutsui
58b06e5f7b Split device_t/softc. Tested on Indy. 2011-01-25 12:43:30 +00:00
tsutsui
59f7d57c5c Some KNF and cosmetics. 2011-01-25 12:30:32 +00:00
skrll
3770380428 Unbreak gdb by ensuring _rtld_debug_state is in the dynamic symbol table.
mmm 1 line diffs

mmm not breaking backwards compatibility for anything known/unknown or
public/private.
2011-01-25 12:25:43 +00:00
pooka
14186479f2 dramatic whitespace fix 2011-01-25 12:21:36 +00:00
tsutsui
f016e29297 u_intNN_t -> uintNN_t 2011-01-25 12:21:04 +00:00
pooka
9d0409a087 Rewrite to declare most dual-kernel calls with macros. This helps
with adding new calls and makes all existing fd-accepting hijacked
calls dual-kernel.  It would be better to autogenerate the code
from syscalls.master, but this is easier for now.
2011-01-25 12:18:33 +00:00
tsutsui
984da15cb1 - MAXPHYS is enough for DMA xfer size (hpc->scsi_max_xfer seems too large)
- switch BUS_DMASYNC_*READ and BUS_DMASYNC_*WRITE properly in
  bus_dmamap_sync(9) ops per each xfer dir

Tested on R5000 Indy.
2011-01-25 12:14:02 +00:00
tsutsui
2f9d0dfc33 Small bus_dma(9) tweaks:
- call bus_dmamap_create(9) after bus_dmamem_alloc(9) and bus_dmamem_map(9)
  return successfully
- no need to use PAGE_SIZE for size of descriptor dmamap
- use bus_addr_t to store DMA address
- BUS_DMASYNC_PREWRITE is enough for host-to-device only descriptors

Tested on R5000 Indy.
2011-01-25 12:11:27 +00:00
gsutre
b1dbb239c6 Typos, fix memory binding for memory type 2, and add consistency checks.
From OpenBSD.

ok jmcneill@
2011-01-25 10:52:11 +00:00
he
a73bf0c204 Default MKREPRO to "no", so that the tests in stand/ etc. don't need
to add ":Uno" to the variable expansion inside the test to avoid errors
from nbmake.
2011-01-25 10:28:56 +00:00
mrg
71bf2390d1 use ${PRINTOBJDIR} to find the ../kernel-ramdisk/netbsd-INSTALL.gz, don't
depend upon a particular obj setup.
2011-01-25 08:19:39 +00:00
mrg
88f188d88a fix the previous. there's no "vc" variable, nor does the local "dc"
have a "softc" member.  use sc->sc_dev instead.

compile tested only, but that's better than the previous revision.
2011-01-25 07:17:07 +00:00
matt
c2f76ff004 Use END(sym)
use RCSID
2011-01-25 04:45:28 +00:00
enami
7f4cb8b53c Remove nop code; the code is moved to uao_dropswap_range1() when it is
introduced in rev. 1.75.
2011-01-25 03:34:29 +00:00
matt
787e823fd1 Move IDs into .ident
Use END(x)
Remove a.out support
Make CERROR hidden
2011-01-25 02:38:15 +00:00
matt
4ce9ec6b46 Align functions on 4 byte boundaries, not 16.
Add END(x) for function sizing.
2011-01-25 02:37:35 +00:00
matt
cb4ebd8be4 Use the (new) KDASSERTMSG 2011-01-24 22:54:01 +00:00
matt
084c578c30 Add KDASSERTMSG (KDASSERT already exists). 2011-01-24 22:53:07 +00:00
wiz
e4b7bc4a76 Do not xref man pages that are not installed.
New sentence, new line.
2011-01-24 22:06:31 +00:00
jakllsch
881a473fd3 Capture more initial GPIO state.
Also, fix behaviour if the number of GPIOs exceed 32.
2011-01-24 21:07:28 +00:00
njoly
7ef8fa728e Redo Vt macro fixes (from r1.35) which were lost. 2011-01-24 19:37:35 +00:00
joerg
c7d2d6685d Ensure that NOMAN is defined earlier. 2011-01-24 19:27:18 +00:00
joerg
5ed8b0e973 Define NOMAN earlier 2011-01-24 19:26:16 +00:00
matt
12708a66ee Fix start_hint in "simple" alloc (fencepost error).
When restarting the loop, make sure end is not above current limit.
Do a quick test to see if the physseg is within the range of desired addresses.
2011-01-24 19:13:55 +00:00
pooka
9f8026fdd0 new helperprog 2011-01-24 17:52:07 +00:00
pooka
7605725b2b test for rumpclient reconnect feature 2011-01-24 17:51:29 +00:00
pooka
19a57922d0 Add reconnect code to librumpclient. In case the connection to
the kernel server is lost, the client will now automatically attempt
to reconnect.

Among other things, this makes it possible to "reboot" and restart
the TCP/IP stack from under firefox without any perceivable less
of service.  If pages were loading at the time the TCP/IP server
was killed, there may be some broken links, but nothing a ctrl-r
cannot fix.
2011-01-24 17:47:51 +00:00