christos
52e90f00f1
add missing include
2011-05-20 01:29:30 +00:00
christos
b51fed0037
typo
2011-05-20 01:28:40 +00:00
msaitoh
f3a272623e
- Add PCH2 support.
...
- Add 82579 support.
- Change PBA size for PCH from 10K to 26K as FreeBSD's em-7.1.7
- Add yet another 82567V support.
- Add ICH10+HANKSVILL support.
- Add 82580 quad-1000BaseX support.
2011-05-20 00:57:42 +00:00
msaitoh
4ea65b9c4a
regen.
2011-05-20 00:50:47 +00:00
msaitoh
2ecc0b2cf4
Add Intel 82567V, 82580 Quad-1000BaseX and Hanksvill with ICH10.
2011-05-20 00:50:19 +00:00
msaitoh
6687e6b65a
regen
2011-05-20 00:47:11 +00:00
msaitoh
8552d6843d
Add Intel 82579
2011-05-20 00:46:53 +00:00
tsutsui
f893ffa835
Set WARNS in common Makefile.inc.
2011-05-19 21:40:11 +00:00
tsutsui
a0e931c0ee
WARNSfy.
...
XXX: rtcalarm/rtcalarm.c refers obsolete /dev/pow0
2011-05-19 21:26:38 +00:00
joerg
188ae306aa
Spell --fatal-warnings with two hyphens
2011-05-19 21:24:55 +00:00
riastradh
1e0dbea92c
Reject unaligned writes to cgd.
...
Fixes the following PRs:
PR kern/44515 (cgd dies on non-aligned writes to the raw device)
PR kern/44964 (cgd seems to panic on unaligned writes instead of giving EINVAL)
ok christos
2011-05-19 20:34:13 +00:00
hauke
f6d6cbb748
Fix a tyop.
...
The intentions were good...
2011-05-19 15:18:29 +00:00
yamt
3b8a580f96
g/c unused function prototypes
2011-05-19 09:57:20 +00:00
kiyohara
2b5a5f1cfb
Remove unnecessary Tab.
2011-05-19 08:22:38 +00:00
kiyohara
24f1286e60
+ Load TLB-miss-address from SRR0, if ITMISS.
...
+ Remove a white space.
2011-05-19 07:51:50 +00:00
macallan
7c67af7a5b
remove obsolete comment - putchar() does in fact use the blitter now
2011-05-19 04:43:45 +00:00
rmind
4b0ec60601
ubc_release: use voff_t for offsets, rather than int. Constify.
...
Reviewed by matt@.
2011-05-19 03:44:19 +00:00
rmind
5b686f3960
Add some general description of vnode life-cycle.
2011-05-19 03:26:06 +00:00
manu
110816765a
Call ufs_extattr_vnode_inactive before UFS_WAPBL_BEGIN, as the latter will
...
leave the vnode locked, and ufs_extattr_vnode_inactive does lock/unlock
2011-05-19 03:25:11 +00:00
christos
a216f4df59
fix header includes
2011-05-19 03:22:27 +00:00
rmind
7d4d81a323
- tmpfs: do not create dirent/node pools per-mount, there is no need to.
...
- tmpfs_mount: fix a leak of mount structures in error path.
2011-05-19 03:21:23 +00:00
rmind
60c9a518f3
Add comments, clean up.
2011-05-19 03:13:58 +00:00
rmind
4a4e52516e
Remove cache_purge(9) calls from reclamation routines in the file systems,
...
as vclean(9) performs it for us since Lite2 merge.
2011-05-19 03:11:55 +00:00
christos
fa6990dd18
handle prototype for freeall
2011-05-19 03:09:47 +00:00
rmind
95ea6d26ab
Re-implement kthread_join(9), so that it actually works (hi haad@).
2011-05-19 03:07:29 +00:00
christos
2d48e20cb6
include missing includes
2011-05-19 02:56:03 +00:00
christos
7471a8d9e4
include missing headers.
2011-05-19 02:54:58 +00:00
jakllsch
15bf553730
Specify that the sock argument of socktodesc() is an int,
...
instead of letting it default to int.
2011-05-19 02:37:41 +00:00
drochner
582edd8b2a
include the SHA2 hashs into the proposal which goes out with
...
SADB_ACQUIRE -- this doesn't change much because racoon ignores
the proposal from the kernel anyway and applies its own configuration,
but having MD5 and SHA1 in the list but SHA2 not looks strange
2011-05-18 18:56:02 +00:00
drochner
184e1b20e6
use monotonic time rather than wall time for lifetime related timestamps,
...
to make key expiration robust against time changes
2011-05-18 18:36:15 +00:00
christos
6009929c48
add a hacky version of sigsuspendsetup() to satisfy link requirements.
2011-05-18 15:57:14 +00:00
christos
fc6147c605
No need to mask twice. The setup function does it.
2011-05-18 14:48:04 +00:00
drochner
31eddb04eb
remove unused expression
2011-05-18 12:54:15 +00:00
drochner
d999ae2d7d
remove stale declarations / empty function
2011-05-18 12:53:04 +00:00
nonaka
e1f964c37f
Added Psion Teklogix NETBOOK PRO entry.
2011-05-18 12:11:46 +00:00
nonaka
60cff5a788
Use "option noyywrap".
2011-05-18 12:10:22 +00:00
christos
e2543d0362
PR/43625: Mark Davies: Fix pselect(2) to honor the temporary mask. pselect(2)
...
(and pollts(2)) are similar to sigsuspend(2) in that they temporarily change
the process signal mask and wait for signal delivery. Factor out and share the
code that does this.
2011-05-18 03:51:41 +00:00
dyoung
b11777e520
#include <sys/bus.h>, not <machine/bus.h>.
2011-05-18 01:02:43 +00:00
dyoung
399cdcdfe9
MI code must #include <sys/bus.h>, not <machine/bus.h>.
2011-05-18 01:01:59 +00:00
macallan
fa88ee4233
add support for running the console in more than 8 bit
...
Now modes like 1680x1050 work. The hardware requires a stride of a multiple
of 32 bytes, with 1680 this requires 16bit colour.
2011-05-17 22:52:28 +00:00
macallan
9924280d80
add some constants, clarify some hw limitations
2011-05-17 22:26:33 +00:00
dyoung
a5ac491e65
Increase SYMTAB_SPACE to fix compilation of these kernels.
2011-05-17 22:19:37 +00:00
drochner
8ec435e6ba
cleanup some error handling to avoid memory leaks and doube frees,
...
from Wolfgang Stukenbrock per PR kern/44948, and part of kern/44952
2011-05-17 18:57:02 +00:00
drochner
d1cd4a3eb4
fix lookup of SAs for outgoing packets in the !prefered_oldsa case,
...
as done in KAME and FAST_IPSEC after NetBSD imported the code
(The default differs: KAME uses the oldest valid SA while FAST_IPSEC
in NetBSD uses the newest one. I'm not changing this -- there is a lack
of specification and behavior can be changed with the "oldsa" sysctl.)
For incoming packets it shouldn't matter but I made it look similar
just to avoid unnecessary differences.
2011-05-17 18:43:02 +00:00
dyoung
60f387c8f0
Add some grotty #ifdef'age to make this compile w/o DIAGNOSTIC.
2011-05-17 17:42:46 +00:00
dyoung
a6b2b8396b
PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
...
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name. Correct that.
Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.
This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:
algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
2011-05-17 17:34:47 +00:00
martin
7564d2bfd2
Disable DEBUG=-g by default again (accidently slipped in with last changes).
...
Ok: mrg
2011-05-17 07:57:02 +00:00
joerg
eab53d10cd
Add support for source specific AFLAGS and COPTS.
2011-05-17 07:16:02 +00:00
dholland
5d71a1f21c
typo in comment
2011-05-17 05:40:24 +00:00
mrg
a852848eef
fix the ordering and make UVMHIST enable KERNHIST automatically.
2011-05-17 05:32:31 +00:00
dholland
ebbcc1e872
Add missing $NetBSD$ header.
2011-05-17 04:39:57 +00:00
mrg
8169e46991
move and rename the uvm history code out of uvm_stat to "kernhist".
...
rename "UVMHIST" option to enable the uvm histories.
TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories. this is mostly just
allocating something in a bitmap, and is only for viewing multiple
histories in a merged form.
tested on amd64 and sparc64.
2011-05-17 04:18:05 +00:00
rmind
cf52754dce
Hack-around sparc/sun4c case, which modifies const maxdmap/maxsmap.
...
From he@. OK mrg@.
2011-05-16 18:08:04 +00:00
mhitch
08cc54d62a
I was allowing adapt_max_periph to use all available command slots, which
...
easily exceeds the maximum of 256 tags used by the scsipi layer because
the tag information from the scsipi layer was ignored and all the tagging
is handled implicitly internal to ciss(4). But with the DIAGNOSTIC option,
the scsipi layer does a check for > 256 tags and will panic. So, lets just
limit the adapt_max_periph to 256 so the scsipi layer won't try to user more.
2011-05-16 17:21:37 +00:00
dholland
bd77476310
Hack for PR 44961: restore the prior "logic" pertaining to looking up /
...
to prevent a crash when attempting rename("/", "foo"). This is not really
what I want going forward and it may cause e.g. rmdir("blah/") to fail, so
if it causes trouble for anyone back it out. The right fix is going to have
to wait until the qemu/tcp_vtw problems I ran into last night get sorted out.
2011-05-16 15:09:31 +00:00
tsutsui
34637b8687
- merge and move pasted m68k MD setreg() functions into m68k/m68k_machdep.c
...
- move m68881_save() and m68881_restore() declarations into <m68k/m68k.h>
Briefly tested and no obvious breakage on atari, sun3, and x68k.
2011-05-16 13:22:51 +00:00
drochner
0fac92398a
fix detach() to avoid use-after-free problems:
...
-stop transfers before freeing data structures
(and comment out a useless delay)
-free devinfo later
Hot-unplugging an USB cam while in use doesn't crash my box anymore now.
2011-05-16 10:53:19 +00:00
drochner
efd342eb96
split the "crypto_mtx" spinlock into 3: one spinlock each for
...
the incoming and outgoing request queues (which can be dealt with
by hardware accelerators) and an adaptive lock for "all the rest"
(mostly driver configuration, but also some unrelated stuff in
cryptodev.c which should be revisited)
The latter one seems to be uneeded at many places, but for now I've
done simple replacements only, except minor fixes (where
softint_schedule() was called without the lock held)
2011-05-16 10:27:49 +00:00
drochner
ee62067b42
remove redundant declarations
2011-05-16 10:18:52 +00:00
drochner
1234118091
remove redundant declaration
2011-05-16 10:05:23 +00:00
drochner
7c0f80c6a5
remove a useless m_freem() call where the argument is known to be NULL
2011-05-16 10:04:02 +00:00
drochner
06d326df43
use time_t rather than long for timestamps
2011-05-16 10:02:30 +00:00
drochner
48841b961c
cosmetical whitespace changes
2011-05-16 10:00:32 +00:00
macallan
a37153870a
don't leave a mess on screen when attaching, while there use VCONS_DONT_READ
...
if VCONS_DRAW_INTR is set
2011-05-16 00:59:37 +00:00
jym
f4853d4d88
As noted by rmind@, use the _nv() to fetch the new value. A race is
...
possible between the decrement and the fetch of the ref counter value,
hence we might call the G/C routine twice. Not good.
Also remove the 'volatile' attribute, refcnt is only use by xbdi_put/_get
and should not be exposed anywhere else (except for initialization).
2011-05-15 20:58:54 +00:00
tsutsui
06131af6d1
Misc KNF and cosmetics.
2011-05-15 17:27:49 +00:00
tsutsui
2a5cd8e30b
Misc KNF.
2011-05-15 16:57:08 +00:00
tsutsui
19ef8cb0f0
Some KNF.
2011-05-15 16:51:09 +00:00
christos
97a122a2f7
update from OpenBSD by msaitoh. Tested on amd64.
2011-05-15 13:56:20 +00:00
he
4543dbda00
Bump SYMTAB_SPACE so that the contents fits again.
2011-05-15 13:36:13 +00:00
jym
264d3132bf
Use atomic_ops(3) for ref counting.
2011-05-15 07:24:15 +00:00
msaitoh
22c389a767
Add support for Intel 6 series.
2011-05-15 01:00:52 +00:00
msaitoh
720f669b3d
regen.
2011-05-15 01:00:07 +00:00
msaitoh
66284465df
Add entries for Intel 6 series' devices.
2011-05-15 00:59:36 +00:00
martin
a9fb883f63
PR kern/44956: add support for Qinheng PCI cards to the puc driver
2011-05-14 22:07:38 +00:00
martin
0264248b21
Regen
2011-05-14 21:58:48 +00:00
martin
17cff40edc
Add Nanjing QinHeng Electronics, from PR kern/44956.
2011-05-14 21:57:52 +00:00
rmind
4f9fb56b98
fork1: fix stop-on-fork case, lend a correct lock to LWP for LSSTOP state.
...
Fixes PR/44935.
2011-05-14 18:50:07 +00:00
jakllsch
3af888c194
Convert remaining simplelock usage in dmover(4) to a RUN_ONCE(9).
2011-05-14 18:24:47 +00:00
rmind
a4a64d151a
- Sprinkle __read_mostly, consitify maxdmap and maxsmap.
...
- Prevent sys/resourcevar.h from inclusion in userland.
- sys_{set,get}priority: use id_t for 'who', not int.
- Make donice() routine static.
- Remove trailing spaces, KNF.
2011-05-14 17:57:05 +00:00
rmind
53963a9398
Improve/fix comments, give more meaningful names for variables.
2011-05-14 17:12:28 +00:00
jmmv
9b52d4003a
Revert my previous change. christos@ submitted a different fix pretty much
...
at the same time. Did an update amd64 release build to ensure my change was
really not needed.
2011-05-14 16:46:55 +00:00
jmmv
d899efcf6e
Declare for-loop control variable outside of the for statement to prevent
...
a warning and therefore fix the build.
2011-05-14 16:27:49 +00:00
tsutsui
599eb3007d
Fix botch in rev 1.28 that causes wrong results of fcmp and ftst in FPE.
...
fpu_upd_fpsr() should be called even in discard_result case if an emulated
instruction gets proper result without signal.
Fixes weird behavior of awk(1) seen on /etc/rc.d/postfix on XM6i and
TME emulating sun3 without 68881.
Should be pulled up to all netbsd-4 and netbsd-5 branches.
2011-05-14 16:17:55 +00:00
nonaka
f093dce515
Use PXA250 compat. rtc.
2011-05-14 15:02:29 +00:00
nonaka
64488ec1ec
- Only when pxa_size isn't set, pxa_size is set.
...
- Split device_t/softc.
2011-05-14 15:01:50 +00:00
jakllsch
34c3adecb2
Convert simplelock to mutex in this portion of dmover(4).
2011-05-14 14:49:19 +00:00
nonaka
a809f3868a
PXA2X0_LCD_WRITETHROUGH is defflag'd.
2011-05-14 14:00:03 +00:00
jakllsch
4ac4f6b4d6
Modernize simple_lock() and ltsleep() usage in dmover(4).
...
(Thanks to rmind for providing hints on what was necessary.)
2011-05-14 13:52:00 +00:00
rmind
356c1e108a
Replace simple_lock(9) with mutex(9), clean up.
2011-05-14 12:44:15 +00:00
tsutsui
5ecb087061
Use pmap_kenter_pa(9) for msgbuf memory which is not managed by VM.
2011-05-14 10:57:50 +00:00
tsutsui
015835c167
It's a bit horrible to call uvm_page_physload() from consinit().
...
Instead, prepare x68k_init() function for pre-main MD initialization as other
m68k ports and move uvm_page_physload() call and msgbuf initialization there.
Tested on X68030, but options EXTENDED_MEMORY is untested.
2011-05-14 10:49:06 +00:00
tsutsui
4b539d371e
IODEVbase is the same address as intiobase, so make it an alias macro
...
and remove now almost empty x68k_init.c.
2011-05-14 10:19:58 +00:00
rmind
f46b67cca2
Convert to mutex(9). Replace ltsleep with mtsleep.
2011-05-14 02:58:27 +00:00
rmind
bb638787c4
Convert to mutex(9)/condvar(9). Use RUN_ONCE(9) to avoid racy init.
2011-05-14 02:27:35 +00:00
christos
018b374686
- don't assume aligned buffers.
...
- little KNF
2011-05-14 01:59:19 +00:00
nakayama
99c51b3804
Use %zd for ssize_t, and %zu for size_t.
2011-05-13 23:35:09 +00:00
rmind
6a0660a9b0
Replace some ltsleep() uses with kpause() and tsleep().
2011-05-13 22:35:50 +00:00
rmind
3c66f2d262
filemon_open: remove unnecessary check (which has a leak in error path).
2011-05-13 22:31:08 +00:00
rmind
3bc401dcc3
Eliminate few references to ltsleep.
2011-05-13 22:28:40 +00:00