Commit Graph

200843 Commits

Author SHA1 Message Date
christos
5db3bccf35 add missing prototypes. 2011-05-17 12:56:44 +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
joerg
c98c805c05 Trailing white space 2011-05-17 07:10:39 +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
enami
bde048cc49 Use Pq or Po macro for better output rather than putting raw open paren
at the end of line.
2011-05-17 03:35:38 +00:00
christos
6bbebf8328 Enable c99 mode by default.
This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB:	I've only ran a build on amd64, so other platforms MI code might break.
	If you can't wait for me to fix them, revert this commit.
2011-05-17 01:12:34 +00:00
christos
2bf6f45a6d fix prototypes. 2011-05-16 21:51:31 +00:00
joerg
d14e81e4ad Update to LLVM/Clang revision 131404. This includes the fix for asm labels
on builtins (broke longjmp usage) and a better cross-compiling support
in combination with -m32/-m64.

Update configuration to include /usr/include/clang-3.0 in the search
path.
2011-05-16 19:27:47 +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
martin
3f0fc12d5a Actually test for sparc v9 architecture, doesn't matter if we are building
32bit or 64bit (fixes 32bit compat library build on sparc64 - yes, they
differ from native sparc libs!)
2011-05-16 14:50:36 +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
christos
51c60bdd41 use err instead of printf, fix missing prototypes. 2011-05-16 12:43:59 +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
ccdea5df98 -fix maximum length of salt (missing prefix, rounding error)
-clip number of rounds at 31 -- this is log2 of the real number,
 and anything larger would break exponentation
-catch possible atoi() error where log2(rounds) is parsed in the
 salt prefix
-zero crypto state on exit
from Open/FreeBSD
2011-05-16 10:45:56 +00:00
drochner
9c09925b41 fix ipad/opad buffer length (was one too much), just for sanity 2011-05-16 10:39:12 +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
he
1fd8e2619a The support of <fenv.h> is actually for __sparc64__, not for __sparc__
(which is also defined on sparc64).  This fixes a build problem for
plain sparc.
2011-05-16 07:59:18 +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
christos
5717128087 - turn on maintainer mode
- disable rules on doc
- regen
2011-05-16 00:23:20 +00:00
christos
8d814b5aa6 fix main prototypes. 2011-05-16 00:08:33 +00:00
christos
65066d37d4 h_macros need strlcat and random ugh, please someone remove this header.
define _NETBSD_SOURCE so those are defined.
2011-05-16 00:03:36 +00:00
christos
21bd6ba1e6 add missing header files. 2011-05-15 23:59:03 +00:00
christos
6551109c37 if you don't include the proper include files, you are going to end up
calling functions incorrectly.
2011-05-15 23:56:28 +00:00
christos
0648f64e9b no more implicit types in c99 2011-05-15 23:43:56 +00:00
christos
77f7462f16 Disable wsfb, uses old loader api that does not exist anymore 2011-05-15 23:42:01 +00:00
christos
4a966d7fec Add include path 2011-05-15 22:55:01 +00:00
christos
475b6e36c5 Add HAVE_TERMCAP_H 2011-05-15 21:35:58 +00:00
christos
e3c101ef06 Add -DHAVE_UNISTD_H 2011-05-15 21:32:47 +00:00
christos
7aac162c51 Make this produce proper ansi c and knf. 2011-05-15 21:28:51 +00:00
christos
10bda8c1e8 Add defines to get the proper prototypes in place. 2011-05-15 21:25:33 +00:00
christos
dc8891d19c add HAVE_VASPRINTF so that we use it. 2011-05-15 21:19:20 +00:00
christos
cc7fbb210a repeat; fix same mistake from libXaw that broke wide build. 2011-05-15 21:09:30 +00:00
christos
aa795f85d1 fix wide char support; don't use the wrong macro names. 2011-05-15 21:05:12 +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
christos
4e14e91053 fix missing prototypes. 2011-05-15 18:33:33 +00:00
christos
72b8fabea7 Add missing prototype. 2011-05-15 17:52:41 +00:00
tsutsui
06131af6d1 Misc KNF and cosmetics. 2011-05-15 17:27:49 +00:00
christos
45d5b08c5f fix prototype. 2011-05-15 17:13:23 +00:00
tsutsui
2a5cd8e30b Misc KNF. 2011-05-15 16:57:08 +00:00