joerg
23abb27f60
Fix logic error
2011-05-24 15:23:41 +00:00
rmind
cc2c5ce631
tmpfs_free_node: comment out assert, which can fire e.g. on shutdown.
2011-05-24 14:18:03 +00:00
mrg
bb85999d1f
for SPI devices, allow platform code to set "scsi-initiator-id" device
...
property, and if set, use it instead of pfp.PortSCSIID.
on sparc64 systems on "scsi" or "scsi-2" devices, look from our node
up the tree for a "scsi-initiator-id" property, and if present, copy
it into the device properties.
this fixes mpt(4) issues on PRIMEPOWER250 (and probably other) systems.
idea from freebsd r207243/r207287, but reworked to use our device
properties instead of platform #ifdefs.
look in "device_type" as well as "name" for "ethernet" or "network",
and also look to see if a "local-mac-address" is set when choosing if
this may be a network device. fixes bge(4) nul ethernet address on
the same PRIMEPOWER250.
2011-05-24 10:08:03 +00:00
mrg
046a9cdb65
avoid mutex locking botch and introduce an unlocked version of
...
pcppi_bell_stop(). fixes a problem reported in private email.
2011-05-24 09:28:03 +00:00
buhrow
463102d28a
Suggested to oster@ and approved via private e-mail as a help to
...
people who are getting reconstruction failures.
2011-05-24 07:33:41 +00:00
mrg
cdf9d44f55
fix proc.pid.corename:
...
- "oldp is not NULL" means the get case
- "newp is not NULL" means the set case
which may both happen at the same time.
2011-05-24 01:19:48 +00:00
mrg
6cc4338539
also match the fujitsu sab: "FJSV,se" (from openbsd, pointed out by jdc)
2011-05-24 01:17:36 +00:00
rmind
7384069ad1
- tmpfs_alloc_node/tmpfs_free_node: move inode limiting into tmpfs_node_get()
...
and tmpfs_node_put(), update outdated/wrong comments and move/add asserts.
- tmpfs_mount: check for the version of arguments a bit earlier.
2011-05-24 01:09:47 +00:00
rmind
662361ae07
ufs_wapbl_verify_inodes: update to reality (if somebody decides to use this).
2011-05-23 22:02:26 +00:00
rmind
5cee5af52c
Convert some simple_lock(9) uses to mutex(9) and malloc(9) to kmem(9).
2011-05-23 22:00:30 +00:00
joerg
ba3d695217
Use __builtin_offsetof if present for _DIRENT_NAMEOFF to avoid false
...
positives for uninitialized variable checks.
2011-05-23 21:59:23 +00:00
joerg
15e751808f
simplify
2011-05-23 21:52:54 +00:00
joerg
a66d2b0d4c
Don't use the name of the task queue as format string
2011-05-23 21:50:44 +00:00
joerg
f62ac60184
rf_panicbuf is already format, so don't pass it as format string to
...
panic()
2011-05-23 21:49:35 +00:00
joerg
4d037bbbc9
Update from GNU extension to C99 syntax for designated initializer
2011-05-23 21:34:47 +00:00
joerg
8e5ceb1134
Use __UNCONST to get rid of const
2011-05-23 21:34:01 +00:00
joerg
4f9b8d73fe
Don't use the device name as format string.
2011-05-23 21:30:56 +00:00
joerg
8c8d4b56e2
Don't use string literal as format string.
2011-05-23 21:18:55 +00:00
joerg
cfb300c780
Mark rumpuser_exit and rumpuser_thread_exit as dead.
2011-05-23 20:49:35 +00:00
rmind
9db0d4e385
nmi_hard: convert nmi_hard_wait to use atomics.
...
OK mrg@
2011-05-23 18:40:30 +00:00
rmind
8b6402a800
kgdb_acc: use mutex since pm_lock was converted to it.
2011-05-23 18:38:51 +00:00
tsutsui
a197c7a73f
- use DPRINTF() style debug printfs
...
- use __func__ to print function names
- consistently use #ifdef DEBUG_FPE
- add some missing debug messages including \n in error paths
2011-05-23 15:40:34 +00:00
drochner
4bd7f95161
-remove references to crypto/arc4/arc4.* -- the code isn't used
...
anywhere afaics
(The confusion comes probably from use of arc4random() at various places,
but this lives in libkern and doesn't share code with the former.)
-g/c non-implementation of arc4 encryption in swcrypto(4)
-remove special casing of ARC4 in crypto(4) -- the point is that it
doesn't use an IV, and this fact is made explicit by the new "ivsize"
property of xforms
2011-05-23 15:37:35 +00:00
drochner
893c8ed684
If symmetric encryption is done from userland crypto(4) and no IV
...
is specified, the kernel gets one from the random generator. Make sure it
is copied out to the user, otherwise the result is quite useless.
2011-05-23 15:22:57 +00:00
drochner
fe35ba177e
g/c remainders of IV handling in pfkey code -- this is done in
...
opencrypto now
2011-05-23 15:17:25 +00:00
tsutsui
9e59c87c59
KNF, mostly indent. No binary change.
2011-05-23 14:52:31 +00:00
drochner
22a8d55c40
allow ESP to use AES-CTR
...
(pfkey and userland tool support is already there because it has been
in KAME IPSEC all the time)
tested against KAME IPSEC
2011-05-23 13:57:52 +00:00
joerg
d3630a7492
Reorder flag order to not depend on -Wextra being applied before
...
-Wno-sign-compare
2011-05-23 13:55:55 +00:00
drochner
001a6a7632
being here, export camellia-cbc through crypto(4) to allow userland tests
2011-05-23 13:53:59 +00:00
drochner
3e66cf4890
add an AES-CTR xform, from OpenBSD
2011-05-23 13:51:10 +00:00
drochner
5fafa9c424
-in the descriptor for encryption xforms, split the "blocksize" field
...
into "blocksize" and "IV size"
-add an "reinit" function pointer which, if set, means that the xform
does its IV handling itself and doesn't want the default CBC handling
by the framework (poor name, but left that way to avoid unecessary
differences)
This syncs with Open/FreeBSD, purpose is to allow non-CBC transforms.
Refer to ivsize instead of blocksize where appropriate.
(At this point, blocksize and ivsize are identical.)
2011-05-23 13:46:54 +00:00
mrg
45a8ff3bec
move KERNHIST stuff much earlier, so drivers can depend upon it.
2011-05-23 06:50:17 +00:00
joerg
56a181efa4
Let's not be silly. Use a fancy "if else" to decide behavior of a bool
...
and hope cosmic radition doesn't create a third state.
2011-05-22 22:13:33 +00:00
mellon
4159594e32
Add support for Dreamplug CPU clock speed detection.
2011-05-22 21:52:25 +00:00
joerg
abe88b5ff5
Inherit SSP settings from bsd.sys.mk
2011-05-22 20:49:46 +00:00
christos
83b36637a6
remove _
2011-05-22 16:01:43 +00:00
macallan
821ed8ac36
crmfb may run in more than 8 bit now so we need the other rasops* as well
2011-05-22 12:33:49 +00:00
jdc
22439c395e
Fix corrupted packet problem on 100Mb/s half duplex links.
...
We need to set "echo disable" on the internal phy too, not just on the
external phy.
Tested on:
SUNW,Sun-Blade-2000
gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
Setting pointed out by bad@.
2011-05-22 11:19:23 +00:00
mrg
de5a910070
match some fujitsu bge interfaces seen on PRIMEPOWER 250/450 systems.
...
from Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.
2011-05-22 08:15:20 +00:00
mrg
cdcd8bddc9
regenerate.
2011-05-22 08:13:56 +00:00
mrg
8e96c9415e
add some fujitsu ethernet id's and a new vendor id. partly from
...
Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.
XXX: move the #if 0'd usage of PCI_VENDOR_CITICORP inside the #if 0 code
XXX: region, as this id conflits with the (4th) fijutsi id.
2011-05-22 08:13:17 +00:00
rmind
5df9d86377
- Replace uses of simple_lock and ltsleep with mutex and condvar.
...
- Improve some parts of the code to be more MP-friendly.
Tested by jakllsch@.
2011-05-22 04:27:15 +00:00
rmind
e8bf34f1e4
tmpfs_alloc_vp:
...
- Do not check for vn_lock(9) error, if LK_RETRY.
- Fix/improve comments.
2011-05-22 04:20:50 +00:00
nakayama
3bf0795076
Fix debug build.
2011-05-21 16:32:00 +00:00
tsutsui
c95f237aba
WARNSfy and fix dumb bugs noticed by warnings.
2011-05-21 15:50:42 +00:00
jym
99c9ae6dfa
In xbdback(4), move the code that copies segments after the bound checks
...
of the ``nr_segments'' variable.
In cases where we are running domUs with an architecture different from the
dom0 one (for example: 32 bits domUs on 64 bits dom0), copying segments
with an invalid nr_segments value will lead to the corruption of the
xbdback instance structure and quickly crash the dom0 backend.
Tested under 64 bits dom0 with 32 bits domUs. No regression observed.
ok bouyer@.
Will be pulled up to -4 and -5.
2011-05-21 15:22:49 +00:00
christos
fa20324c60
more missing includes
2011-05-21 15:10:34 +00:00
christos
884d0fb066
ifdef _KERNEL the inlines
2011-05-21 14:49:35 +00:00
drochner
bd8641a3b2
sync minimum key size for AES with reality
2011-05-21 13:23:36 +00:00
drochner
a194baae12
check key size on initialization -- othwise the rijndael code
...
can fail silently
2011-05-21 13:22:45 +00:00
msaitoh
ab5c26c930
Add newer Wireless WiFi Link 4965 devices, Centrino Wireless-N 1030
...
and Centrino Advanced-N 6230
2011-05-21 12:51:47 +00:00
msaitoh
939f31d12a
regen
2011-05-21 12:49:50 +00:00
msaitoh
7d7e944c06
Add some iwn(4) devices.
2011-05-21 12:48:59 +00:00
tsutsui
6d45816bf7
Add sti at sgc configuration for SGC EVRX framebuffers found on
...
some later HP4xx models. Untested, and disabled in GENERIC for now.
2011-05-21 12:06:14 +00:00
tsutsui
823c8d62ae
Add a kludge to make this build on hp300.
...
(anyway bus independent driver should not include bus dependent sti_pci.h)
2011-05-21 12:02:55 +00:00
tsutsui
8db5928a80
Move several static wsdisplay variables into proper device specific structures
...
to resolve XXX comments. Tested on GXemul.
2011-05-21 12:00:18 +00:00
tsutsui
2d7fb158b6
No need to pass UVM_FLAG_COLORMATCH to uvm_pagealloc()
...
if no valid vaddr is specified.
2011-05-21 11:49:34 +00:00
drochner
c53cf15519
fix a logics bug (which has been here from the beginning) which made
...
that only 96 random bits were used for IV generation,
this caused eg that the last 4 bytes of the IV in ESP/AES-CBC
were constant, leaking kernel memory
affects FAST_IPSEC only
2011-05-21 10:04:03 +00:00
joerg
ef5d0bd3b7
Disable integrated assembler for files that use .code16 or .code32 for
...
now. Disable Clang completely for bootxx and netboot for now until the
size issue has been sorted out.
2011-05-20 22:29:55 +00:00
nonaka
751c31a9e4
Uncommented out "file-system CD9660".
2011-05-20 21:56:46 +00:00
nakayama
88e42b609b
Add fenv support for sparc. Mostly copied from sparc64 and share with it.
2011-05-20 21:42:48 +00:00
tsutsui
f38f34147b
KNF a bit.
2011-05-20 16:33:07 +00:00
joerg
3cf929db2b
mbr.S and gpt.S want to reassign ., so don't use the integrated
...
assembler for now.
2011-05-20 15:05:02 +00:00
he
4f951ec855
Put the external functions from net.c in it's own header file and
...
include it, and do some other minimal adjustments to bring this
back to a buildable state.
OK'ed by martin@
2011-05-20 14:49:54 +00:00
joerg
d09aac6c0a
The %dx argument of in/out is not a memory reference, so don't use it as
...
such.
2011-05-20 13:33:11 +00:00
joerg
fe4adbc6f4
Be more explicit that the "w" part of %r11 is meant.
2011-05-20 13:32:35 +00:00
joerg
78fa586054
Use -x assembler-with-cpp from sys.mk.
2011-05-20 13:22:53 +00:00
joerg
97c3f9abba
LLVM's assembler parser doesn't support .code16 yet, so disable it as
...
needed.
2011-05-20 13:22:30 +00:00
joerg
4ec891b848
Drop redundant -I.
2011-05-20 13:21:54 +00:00
joerg
285f1a72ec
Really apply the -no-integrated-as only for clang.
2011-05-20 13:21:19 +00:00
joerg
4ab4d5ff28
Reuse -x assembler-with-cpp from sys.mk.
2011-05-20 13:19:59 +00:00
joerg
d1f26e9727
LLVM's assembler parser doesn't support .code32 yet, so disable it as
...
needed.
2011-05-20 13:18:42 +00:00
joerg
ac7187524d
The %dx argument for in/out is not a memory reference, so don't use the
...
"feature" of GNU as to hide it as such.
2011-05-20 13:17:12 +00:00
joerg
316b3ac0de
LLVM's assembler parser doesn't support .code32 yet, so disable it as
...
needed.
2011-05-20 13:11:40 +00:00
joerg
45f776be20
LLVM's assembler parser doesn't support .code32 yet, so disable it.
2011-05-20 13:08:07 +00:00
tsutsui
032115b7d7
Add (commented out) options MODULAR. Just works fine as other arm ports.
...
This will be mandatory because zbsdmod.o loader has size (5MB) restriction.
2011-05-20 09:25:15 +00:00
reinoud
9ba99564ec
Fix size reporting for DVD+R/DL and BluRay's; the value was trunced due to a
...
32 bit trunc due to a lacking type cast. The number of sectors for such media
can be more than 1<<32-1.
2011-05-20 09:23:37 +00:00
tsutsui
7e9ec9a509
Remove unnecessary count arguments from some pseudo-devices.
2011-05-20 09:06:02 +00:00
tsutsui
7b660f6158
Move pseudo-device bpfilter to proper place.
2011-05-20 09:01:39 +00:00
tsutsui
8edbaaf3c0
Shrink ramdisk size to 2048KB.
2011-05-20 07:57:07 +00:00
tsutsui
bbdfecc8f0
Enable cd* at atapibus? for some USB CD/DVD drives.
2011-05-20 07:49:31 +00:00
tsutsui
e8f4e13ead
Shrink INSTALL kerenl more:
...
- disable KERNFS (install ramdisk uses /sbin/dmesg directly)
- disable mice, audio, uk(4), and wsfont(4)
2011-05-20 07:47:53 +00:00
tsutsui
666a2b17b6
Comment out options COMPAT_09, COMAPT_10, COMPAT_11, and COMPAT_12.
...
(no NetBSD/arm32 binary release before 1.3)
2011-05-20 06:26:58 +00:00
msaitoh
e43e4777a3
82579 support.
2011-05-20 06:06:59 +00:00
msaitoh
56f5ce9baa
Add support for 6050(6250 and 6150) and 6005(6205).
...
TODO: update iwn.4 manpage.
2011-05-20 01:59:14 +00:00
msaitoh
40d6eb691f
Add PCH2 support.
2011-05-20 01:51:36 +00:00
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