190107 Commits

Author SHA1 Message Date
ahoka
9db315bb61 Add a missing parentheses. 2010-04-23 16:44:10 +00:00
rmind
2ddb8da453 Mention that kmem_free(9) may block, just in a case it is not clear. 2010-04-23 16:24:04 +00:00
joerg
f5b7f56dbd Use struct segment_descriptor for pcb_fsd and pcb_gsd instead of int[2]. 2010-04-23 16:07:33 +00:00
jruoho
f6ac0eab50 One malloc(9) type is enough for ACPI; use M_ACPI. 2010-04-23 15:52:26 +00:00
jruoho
84377acda5 Simplify acpi_pcidev_find(): directly return a pointer to the device node. 2010-04-23 15:46:59 +00:00
sjg
83fb10e649 PR: 42850
Reviewed by:

Reduced the "expected to exist" dirs in path to just
/ /bin and /tmp
and change the "not expected to exist" dir to something
even less likely.
Add a comment to suggest why.
2010-04-23 15:43:28 +00:00
pooka
0c20c076ce Enforce RLIMIT_FSIZE before VOP_WRITE. This adds support to file
system drivers where it was missing from and fixes one buggy
implementation.  The arguably weird semantics of the check are
maintained (v_size vs. va_bytes, overwrite).
2010-04-23 15:38:46 +00:00
jruoho
f7be22cf8e Cosmetics: be pedantic and use AE_CTRL_TERMINATE instead of AE_ABORT_METHOD
as a condition to break out of a loop.
2010-04-23 15:37:01 +00:00
plunky
edefcdeffb no [longer?] need to define _KERNEL when including <net/route.h> 2010-04-23 15:30:30 +00:00
jruoho
7e3b451fbe When setting the power, always mark the state as invalid on failure, even if
going to D0. Also fix a potential NULL pointer dereference in an aprint_().
2010-04-23 15:20:35 +00:00
rmind
d00df28408 Replace M_IOV and some malloc(9)s with kmem(9), and while there:
- Fix invalid free (M_TEMP vs M_IOV) in do_sys_recvmsg(), spotted by jakllsch@.
  Also, same fix in osf1_sys_sendmsg_xopen().
- Fix attempt to free non-allocated memory in error path in netbsd32___getfh30().
- Plug a memory leak in compat_43_netbsd32_orecvmsg().
2010-04-23 15:19:19 +00:00
skrll
05b7cce3dc Don't round the bus space map/unmap requests to page size, but keep track
of the exact regions requested.

Only ever map the whole FLEX area in when mapped and don't unmap.

G/C the BTLB stuff - it doesn't work. Maybe one day it will come back.
2010-04-23 15:04:09 +00:00
he
686c73fd73 Um, as has been noted, INSTALL_FILE records what's installed if it's
done unprived, and that doesn't go down well on a re-build.  So use
${INSTALL} ${COPY} instead to fix this problem.
2010-04-23 14:10:19 +00:00
ahoka
290cdd631e Remove a couple of zero length kmem_frees.
It should fix at least one crash when unloading the dtrace module,
possibly many others.
2010-04-23 11:39:52 +00:00
wiz
b96117b0b1 Uppercase some proper names and abbreviations (probably more to do here). 2010-04-23 11:00:27 +00:00
jruoho
eec2754392 Add some common ones. 2010-04-23 09:57:40 +00:00
jruoho
bccc1bf1aa Make the ACPIVERBOSE output even prettier by removing cruft. 2010-04-23 07:04:18 +00:00
dholland
d0a8fc2028 vgonel() went away a long time ago, so stop declaring it. 2010-04-23 05:10:19 +00:00
chs
e59be4800f regen 2010-04-23 03:03:03 +00:00
chs
822c314290 add missing argument to clone(). the symptom of this was that pthread_join()
would sometimes get stuck, such as in our "mutex2" regression test.
2010-04-23 03:02:16 +00:00
christos
1de4aac3ae mention crash ldscript. 2010-04-23 02:12:58 +00:00
christos
e1c0dee238 workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer 2010-04-23 02:10:01 +00:00
sjg
24157036cd On darwin at least, vfork() fails in child of vfork().
It probably shouldn't work anyway, so avoid this.
We use the macro vFork() - a function seems to cause problems
and is unnecessary overhead.
2010-04-23 00:18:50 +00:00
dholland
d1466497fc Use _PATH_TMP instead of a literal /tmp; noted by Christos 2010-04-22 22:39:13 +00:00
jruoho
bdb6986f24 Some pretty printing for ACPIVERBOSE. 2010-04-22 21:58:08 +00:00
jym
871c771cc1 Uses cpu_feature, so include <machine/cpuvar.h> 2010-04-22 21:47:32 +00:00
sjg
1870812db3 Force LANG=C to ensure sort(1) behaves as expected 2010-04-22 21:41:11 +00:00
jym
27fdce55b0 CPUID_TSC => cpu_hascounter(). This one was missing in my cpu_feature
rework patch.

Should fix the i386/ALL build issue many have reported. Thanks!
2010-04-22 21:02:25 +00:00
dholland
fb0f75db1f don't use strlcpy; it causes bootstrap issues. (noted by moof) 2010-04-22 20:25:16 +00:00
dyoung
cb401b7946 When choosing IPv6 source addresses, respect the ifaddr preference
level such as one might set with 'ifconfig xx0 inet6 <address>
preference <pref>'.  I've been running this for many months without
any problems.
2010-04-22 20:05:15 +00:00
sjg
7254a559b2 PR: 42850
Reviewed by:

modmisc: since we apply an exists() test to $paths, be conservative
in what we expect.

Run the unit tests with -r -m / so that we do not fail if there
is no sys.mk present.
2010-04-22 19:15:23 +00:00
sjg
a71a4119cf Just because $TMPDIR is set does not mean it is valid.
Add a central function for creating temp files so we have one place to
audit.

Reviewed by: dh
2010-04-22 19:11:17 +00:00
jruoho
6772f0e062 Remove a redundant prototype. A leftover from the previous commit. 2010-04-22 18:53:23 +00:00
jruoho
9ddf2c5165 Merge new code for ACPI power resources.
The old code served us well, but a major overhaul would have been needed for
it to cope with the increased demands of the code -- and the specifications.

ok jmcneill@, pgoyette@
2010-04-22 18:40:09 +00:00
agc
208f5497e4 implement the REG_STARTEND extension using tre_regnexec - REG_STARTEND is
used by mail(1), and file(1), to name but two.
2010-04-22 17:33:54 +00:00
agc
64ac94149c don't include parameter names in the namespace for function prototypes.
define REG_STARTEND

include tre-config.h inplace in tre.h, since it is small, always gets
included anyway, and this means that we don't have to install tre-config.h
in the dest tree. this will be addressed differently long-term.
2010-04-22 17:32:37 +00:00
agc
663ce0da65 clean up some lint 2010-04-22 17:28:59 +00:00
jruoho
e0aec4e102 Wrap long lines, add some white space for readability, remove unnecessary
variable assignments, misc KNF. No functional change.
2010-04-22 15:25:46 +00:00
jruoho
1af445da2a Shorten the long lines with two custom macros. 2010-04-22 15:14:24 +00:00
jruoho
b3ff23fb49 From Gregoire Sutre: rework the ACPI PCI support. This makes ACPI to
correctly pick PCI segment groups, PCI bus numbers, PCI root bridges,
PCI-to-PCI bridges, and PCI devices, among other things. In short: it is
more robust than the old code or anything in sys/arch/x86/x86/mpacpi.c.

ok cegger@, jmcneill@
2010-04-22 14:50:30 +00:00
plunky
f183cc477b no need to forward declare struct uio and proc before including
<sys/file.h> as it does that internally, and don't continue the
_KERNEL definition afterwards as it causes some other problems
with pcc relating to unreferenced symbols in unused static
inline functions which gcc optimises away.
2010-04-22 14:37:06 +00:00
plunky
cb88fa41a4 it is not [any longer] necessary to #define _KERNEL while including
<net/route.h> so remove it.

This fixes a build problem with pcc which is not as clever as gcc
when optimising away unused static inline functions which refer to
unknown symbols (eg sockaddr_dup).
2010-04-22 14:32:30 +00:00
drochner
f79e06d729 fix an obvious flaw in bounds check: the array of precomputed primes
could be overrun if its last entry (65537) was a factor of the input
(this does not affect PR misc/43192 -- the factors are much larger
here: 7742394596501*159455563099482401)
2010-04-22 14:28:48 +00:00
jruoho
829390ffbf gcc -> GCC, offset indent. 2010-04-22 13:41:40 +00:00
he
91dbb8c445 Change use of ${CP} and ${CHMOD} to ${INSTALL_FILE}, so that if the
target is made un-writeable, the build won't bomb out during an
UPDATE build.  OK'ed by martin@.
2010-04-22 11:58:59 +00:00
pooka
0bacc51806 fix compilation with -Wmissing-field-initializers.
smoke _KERNEL_OPT where appropriate.
2010-04-22 08:45:55 +00:00
jruoho
67e7c628fb A small correction. Typos. 2010-04-22 08:42:34 +00:00
jruoho
69cf4af7f3 Use .In for includes. 2010-04-22 08:00:34 +00:00
pooka
516d9bde16 more signal stuff to group. no functional change. 2010-04-22 07:10:47 +00:00
wiz
0b27f753a1 Add backslash before a dash to get a minus. 2010-04-22 06:57:13 +00:00