Commit Graph

201179 Commits

Author SHA1 Message Date
drochner
0a8dabda40 pull in AES-GCM/GMAC support from OpenBSD
This is still somewhat experimental. Tested between 2 similar boxes
so far. There is much potential for performance improvement. For now,
I've changed the gmac code to accept any data alignment, as the "char *"
pointer suggests. As the code is practically used, 32-bit alignment
can be assumed, at the cost of data copies. I don't know whether
bytewise access or copies are worse performance-wise. For efficient
implementations using SSE2 instructions on x86, even stricter
alignment requirements might arise.
2011-05-26 21:50:02 +00:00
christos
44a292d910 need mi now. 2011-05-26 21:20:26 +00:00
drochner
92976d49aa fix building of a linked list if multiple algorithms are requested
in a session -- this just didn't work
2011-05-26 20:33:24 +00:00
nonaka
e0475d7d2d fix ELFxx_M_SIZE macro. 2011-05-26 16:42:15 +00:00
nonaka
ff02d33fd1 fix spelling. 2011-05-26 16:40:38 +00:00
para
2f1f53a009 typo in comment 2011-05-26 16:38:57 +00:00
para
096446fa2f put userconf_bootinfo under option USERCONF, to allow kernels without that option 2011-05-26 16:29:13 +00:00
joerg
a2bf8e5d19 Introduce DDB_EXPR_FMT and replace the logic around DB_EXPR_T_IS_QUAD. 2011-05-26 15:34:12 +00:00
joerg
9411f274f4 Use CWARNFLAGS.clang and not CWARNFLAGS here 2011-05-26 14:20:22 +00:00
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
reinoud
43e731a9af Fix accidental use of logical && instead of binary & in rare case.
Bug noticed by Joerg and clang :)
2011-05-26 07:59:08 +00:00
uebayasi
c6e687b646 Catch up with B_* flag name changes in debug code. 2011-05-26 04:51:57 +00:00
uebayasi
f90b4a715a Note userconf(4) + boot.cfg(5) + boot(8) support on i386/amd64. 2011-05-26 04:29:18 +00:00
uebayasi
dcf649145a Support userconf(4) command in boot(8)/boot.cfg(5) on i386/amd64.
From jmmv@, no objections seen in the proposed thread:

	http://mail-index.netbsd.org/tech-kern/2009/01/22/msg004081.html
2011-05-26 04:25:26 +00:00
jakllsch
8e78c7985c Convert malloc(9) to kmem(9) in atppc(4).
(Intended to have been part of previous commit.)
2011-05-26 02:37:25 +00:00
jakllsch
c0d7afac87 Convert ltsleep() in atppc(4) to modern interfaces.
Reviewed by rmind@.
2011-05-26 02:29:23 +00:00
christos
ab866f07da add debuglibs for sparc compat 2011-05-26 00:44:14 +00:00
gdt
c238210804 Remove erroneous additional tick in RTO estimation. The variable
ts_rtt is 1 plus the RTT, so that 0 can mean invalid measurement.
However, the code failed to subtract the 1 back out before use.  With
this change, TCP from Massachusetts to France now typically has 1s RTO
values, rather than 1.5s.

This bug was found and fixed by Bev Schwartz of BBN.  This material is
based upon work supported by the Defense Advanced Research Projects
Agency and Space and Naval Warfare Systems Center, Pacific, under
Contract No. N66001-09-C-2073.  Approved for Public Release,
Distribution Unlimited
2011-05-25 23:20:57 +00:00
gdt
2377e629f8 Add comment urging a separation of TCP_RTT_SHIFT into separate defines
describing the EWMA calculation and the storage representation.
(No code change.)
2011-05-25 23:17:44 +00:00
dyoung
709b8c23f7 Add some missing prototypes for streaming routines.
Correct some bus_space_*_8 prototypes that used uint32_t instead of
uint64_t.

Replace size_t with bus_size_t where that's what bus_space(9) calls for.
2011-05-25 22:58:29 +00:00
dyoung
52abc93d99 Increase SYMTAB_SPACE. 2011-05-25 22:43:20 +00:00
dyoung
1c48d04579 Increase SYMTAB_SPACE. 2011-05-25 22:32:18 +00:00
phx
c91ba1563d Use printf() from libsa.
Ok by nisimura@.
2011-05-25 19:26:21 +00:00
he
6cf367a4a1 Fix up Heimdal so that it can be built statically, allowing the
sun2 port to proceed beyond trying and failing to build Heimdal.
This is done by:

1) Stop pretending that libipc is a separate library, and instead
   build it as part of libkrb5.  The version map for libkrb5 needed
   to be updated to expose the required symbols from libipc.

2) The lexer in libhx509 needs to use its own prefix, so that the
   resulting library can be statically linked with a lexer which
   uses the default prefix.  This was hidden because libhx509's
   version map file (which is only used for the shared libs) hid
   away the lexer symbols.  Some defines needed tweaking as well
   to restore buildability.

3) Excplicitly mention all the required libraries in LDADD+= and
   make sure DPADD is set to correspond.  This allows static linking;
   earlier this relied on shared library dependencies to have all the
   libs pulled in.  In the process, convert to single-line LDADD+=
   and DPADD+= settings.  Use Makefile.inc for the common libraries
   to the extent possible.

Successfully built from scratch for i386 and sun2 several times,
and for lots of other ports as well.

Discussed with elric@ and christos@.
2011-05-25 19:21:16 +00:00
uebayasi
3f383b9dd4 Declare cfdrivers using extern rather than including ioconf.h. 2011-05-25 16:33:37 +00:00
joerg
7411798a6a Don't define explicit instantiation as inline. 2011-05-25 15:51:55 +00:00
tsutsui
1831386b4e - consistently use #ifdef DEBUG_FPE and #ifdef DIAGNOSTIC
- use DPRINTF() style debug printfs
- use __func__ to print function names
2011-05-25 15:47:19 +00:00
joerg
8c28cc4858 Simplify 2011-05-25 15:34:19 +00:00
joerg
fb659447a4 Set WARNS explicitly to 0. 2011-05-25 15:24:07 +00:00
tsutsui
248f85bd79 KNF. No binary change. 2011-05-25 15:17:21 +00:00
christos
409ea14c30 more wrong formats. 2011-05-25 15:15:55 +00:00
joerg
7e217e1f53 Restrict -Wno-non-template-friend and -Wno-pmf-conversions to GCC. 2011-05-25 15:02:25 +00:00
joerg
175c50ac7e Add support for compiler specific warning flags with
CWARNFLAGS.${COMPILER}
2011-05-25 15:01:08 +00:00
christos
b9972d39ce Don't use division since we are only dealing with powers of 2. 2011-05-25 14:41:46 +00:00
christos
44751c73dc fix printf formats. 2011-05-25 14:11:36 +00:00
mrg
b6a024784e define MANUF_FUJITSU (and fix CPU_IS_SPARC64_V_UP()) and MANUF_SUN.
use CPU_IS_SPARC64_V_UP() to choose some US-III versions of some
cache functions.
2011-05-25 12:01:30 +00:00
macallan
26ec9200cf remove VCONS_DRAW_ASYNC
it was always experimental, VCONS_DRAW_INTR is much simpler and Just Works.
2011-05-25 06:13:29 +00:00
macallan
6eb32961ce add a cache so when we update the screen we only redraw the character cells
that actually changed since last time. This gives a noticeable speedup on
slower hardware with dumb framebuffers.
For now this works with VCONS_DRAW_INTR and VCONS_DONT_READ only.
2011-05-25 06:01:38 +00:00
matt
f2fc00201c Set PSL_VEC in the right place. 2011-05-25 05:42:37 +00:00
dholland
0c53a1f2e4 Don't print uninitialized values off the stack, even as debug messages. 2011-05-25 04:59:22 +00:00
dholland
ef192e52d5 When checking if /var/yp/binding/foo.ypservers exists, use the domain
name of the domain being checked instead of the default domain name. Duh.
Necessary for PR 43900.
2011-05-25 04:33:52 +00:00
christos
178153b0c2 use _ALIGN consistently. 2011-05-25 02:11:16 +00:00
rmind
78c419363e tmpfs_update: comment out assert for now. 2011-05-25 02:03:22 +00:00
rmind
8d8c6221a2 tmpfs_dir_lookup: use 'name' variable in memcmp() as intended; fix warning. 2011-05-25 00:06:45 +00:00
matt
3ff0e09ec6 Remove pmap's simple_lock; switch to atomic ops
Change pvtable simple_lock to mutex
Switch to kmem (goodbye malloc).
2011-05-24 23:30:30 +00:00
rmind
e9d92e9ce9 - tmpfs_lookup: cache (cnp->cn_flags & ISLASTCN) in const bool; de-indent.
- Group tmpfs_{alloc,free}_dirent() with other dirent routines.

No functional changes.
2011-05-24 23:16:16 +00:00
msaitoh
41e7900055 Fix invalid PBA setting on ICH{9,10}. This bug was introduced in the last
commit. I noticed this problem via mail from spz.
2011-05-24 22:46:42 +00:00
christos
bde00486af make this compile with DEBUG (_ALIGN was not defined). 2011-05-24 22:39:47 +00:00
rmind
5b0095de8b Convert some simple_lock uses to mutex(9).
Tested by: jak@, mhitch@
2011-05-24 20:26:34 +00:00
rmind
9d8a062828 - Describe some locking.
- Add VOP argument comments, add some asserts.
- Update/fix/remove outdated/missleading comments.
- Clean up, de-indent, KNF, misc.

No functional changes intended.
2011-05-24 20:17:49 +00:00