Commit Graph

200997 Commits

Author SHA1 Message Date
joerg
998c5d780f Make intermediate size variable size_t like the rest to avoid
unnecessary casting.
2011-05-23 14:53:46 +00:00
joerg
04d16b5c6d Use C99-style init in _CITRUS_PROP_HINT_END to avoid warnings for
uninitialised type field.
2011-05-23 14:52:32 +00:00
tsutsui
9e59c87c59 KNF, mostly indent. No binary change. 2011-05-23 14:52:31 +00:00
joerg
939ab48f97 Actually return something deterministic 2011-05-23 14:45:44 +00:00
joerg
608276435f Remove self-assignment of an argument that is later used. 2011-05-23 14:34:29 +00:00
joerg
0cd1e39abe Disable Clang's array boundary checker for now (hits e.g. in GCC and BDB) 2011-05-23 14:32:05 +00:00
drochner
cfdc35650d report aes-ctr statistic counter by name 2011-05-23 14:29:55 +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
dholland
58a3e249b1 sort includes 2011-05-23 02:54:53 +00:00
christos
b3030fe685 need to include in fb. 2011-05-23 02:48:48 +00:00
dholland
d2f44d281f Don't use _t as an identifier suffix meaning "variable containing a time". 2011-05-23 02:43:10 +00:00
christos
2911e3e3dc get the afb.h file from the normal place. 2011-05-23 02:37:58 +00:00
dholland
86a03218b2 Introduce DPRINTF() macro, remove most #ifdef DEBUG usages.
No change to compiler output.
2011-05-23 02:36:35 +00:00
christos
d04eeaedcf not enough fixing the Imakefile, we need this one too. 2011-05-23 02:35:28 +00:00
dholland
41741c3c2a u_int32_t -> uint32_t and similar 2011-05-23 02:06:41 +00:00
christos
c419ca3c2c include system headers after config.h 2011-05-23 00:21:50 +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
christos
0477909eb4 From Nathan Whitehorn (nwhitehorn at freebsd dot org):
Add code to generate bootable ISOs on Powermac and CHRP systems.
Synthesize some partition maps (APM and MBR, respectively) pointing
to (a) the whole disk, and (b) relevant El Torito boot images that
have been added by other code. These partition maps are a little
bit funny looking, but they seem to work. FreeBSD has been using
this successfully in their release generation on powerpc, as well
as generating all non-SPARC install media. SPARC support could
probably be added as an extension of this patch.
2011-05-22 21:51:39 +00:00
joerg
1742cf8828 Simplify a bit 2011-05-22 20:52:12 +00:00
joerg
abe88b5ff5 Inherit SSP settings from bsd.sys.mk 2011-05-22 20:49:46 +00:00
joerg
7cfd64c6f6 Split SSP parameters on a per-compiler base 2011-05-22 20:49:16 +00:00
joerg
e7d3de7e55 No -Wno-traditional for clang. 2011-05-22 20:24:46 +00:00
joerg
b53ad3df44 Use a plain float constant, no need to deal with messy 0r prefix 2011-05-22 20:11:47 +00:00
christos
4c91249bf3 fix name 2011-05-22 16:08:48 +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
plunky
1c3db706be provide endian information to libpcc
(shame this doesn't use the same TARGET_XXX_ENDIAN
definition as the rest of the sources)
2011-05-22 12:01:26 +00:00
plunky
e73fc4c682 let external.h be built as a side effect of external.c, as
listing it explicitly means that mkext is run concurrently
twice when MAKE_JOBS > 1
2011-05-22 11:53:46 +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
tsutsui
27dffeb3fc Remove mount_kernfs(8). INSTALL kernel doesn't have file-system KERNFS
and dmesg(8) is enough for sysinst.
2011-05-22 10:49:37 +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
riastradh
d9e31e357d Make `mount_ptyfs -c' actually work.
The ALTF_* are bit masks, not indices, so use 4, not 3, for the one
after 2.  Use 0x on all the values to emphasize this.

ok rmind
2011-05-21 20:05:02 +00:00
dholland
d392ff6e7a Clarify paragraph about calling setprogname, requested by Tobias Ulmer on
freenode. Bump date.
2011-05-21 19:06:44 +00:00
wiz
d01698ddc5 Do not use TAB to line up library arguments, use spaces. 2011-05-21 17:15:46 +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