Commit Graph

216791 Commits

Author SHA1 Message Date
matt 42993421e9 Add PRIxBUSADDR, etal 2013-02-16 06:49:59 +00:00
matt acf0003205 Use KASSERT* in preference to #ifdef DIAGNOSTIC / panic 2013-02-16 06:49:43 +00:00
christos 051dc4b05d we need utsname all the time. 2013-02-16 02:39:27 +00:00
christos 3241ce1c02 Set .MAKE.OS to utsname.sysname so we can tell bogus OS's apart early in
the build process.
2013-02-16 02:11:11 +00:00
christos d2ff78394b don't brk the build. 2013-02-15 23:56:32 +00:00
christos 9bb501f7a5 look at my index finger 2013-02-15 23:27:19 +00:00
matt 213f7e6d6b #include <arm/cdefs.h> to get _ARM_ARCH_DWORD_OK 2013-02-15 22:35:39 +00:00
jmmv e840b8037e Fix debug entries after the import of atf 0.17. 2013-02-15 22:14:21 +00:00
wiz f3f78ea6f0 Use Nx, fix typo. 2013-02-15 21:03:17 +00:00
jmmv 0a00e59342 Install lua.hpp. 2013-02-15 20:07:00 +00:00
jmmv 88eb066b41 Add the MKKYUA knob.
MKKYUA defaults to no and will remain as such until the import is complete
and validated.

This knob does not currently have any effects on the build as nothing relies
on it yet.  Upcoming imports and changes in this area will all be guarded by
this flag.
2013-02-15 19:49:48 +00:00
rkujawa b97cbd07b3 Fix wrong calculation of destination pointer in writes.
Existing calculation of destination pointer was always causing unnecessary erases of SPI Flash memory and was always writing each consecutive 2048 byte blocks of data into the same address of the SPI Flash memory. This commit fixes issue with writes of multiple blocks using 'dd' tool.

Patch from Semihalf.
Author: Michal Dubiel <md@semihalf.com>
2013-02-15 17:46:53 +00:00
rkujawa b99a618c86 Fix usage of uninitialised variable holding number of slave devices.
The sc_nslaves has to be initialised before it is used in allocation of a memory holding save devices' configuration, otherwise slave drivers are causing kernel crashes.

Patch from Semihalf.
Author: Michal Dubiel <md@semihalf.com>
2013-02-15 17:44:40 +00:00
jmmv 6432d997d4 Note import of atf 0.17. 2013-02-15 17:09:38 +00:00
jmmv c810df40be Update file lists for atf 0.17. 2013-02-15 17:09:07 +00:00
jmmv a9d87426d0 Update reachover Makefiles for atf 0.17. 2013-02-15 17:08:34 +00:00
jmmv 6f587c9882 Fix merge conflicts after import of atf 0.17. 2013-02-15 17:07:59 +00:00
skrll f917079b45 Track transfer state better to avoid races between the workqueue and
aborting.
2013-02-15 17:07:09 +00:00
jmmv 0659fc670c Import atf 0.17:
Experimental version released on February 14th, 2013.

* Added the atf_utils_cat_file, atf_utils_compare_file,
  atf_utils_copy_file, atf_utils_create_file, atf_utils_file_exists,
  atf_utils_fork, atf_utils_grep_file, atf_utils_grep_string,
  atf_utils_readline, atf_utils_redirect and atf_utils_wait utility
  functions to atf-c-api.  Documented the already-public
  atf_utils_free_charpp function.

* Added the cat_file, compare_file, copy_file, create_file, file_exists,
  fork, grep_collection, grep_file, grep_string, redirect and wait
  functions to the atf::utils namespace of atf-c++-api.  These are
  wrappers around the same functions added to the atf-c-api library.

* Added the ATF_CHECK_MATCH, ATF_CHECK_MATCH_MSG, ATF_REQUIRE_MATCH and
  ATF_REQUIRE_MATCH_MSG macros to atf-c to simplify the validation of a
  string against a regular expression.

* Miscellaneous fixes for manpage typos and compilation problems with
  clang.

* Added caching of the results of those configure tests that rely on
  executing a test program.  This should help crossbuild systems by
  providing a mechanism to pre-specify what the results should be.

* PR bin/45690: Make atf-report convert any non-printable characters to
  a plain-text representation (matching their corresponding hexadecimal
  entities) in XML output files.  This is to prevent the output of test
  cases from breaking xsltproc later.
2013-02-15 17:04:15 +00:00
christos 692a59dba5 res_send has been done 2013-02-15 15:01:18 +00:00
christos 650d188146 - make all filedescriptors close-on-exec
- use SOCK_NOSIGPIPE.
- add kqueue handling (not enabled by default, from FreeBSD)
- add RES_INSECURE1 handling (from FreeBSD)
2013-02-15 14:08:25 +00:00
martin 38e436ce90 While we are using softfloat for 128 bit long double values, make fpsetround
update the softfloat rounding mode as well.
2013-02-15 09:25:03 +00:00
martin 33794f1e61 Make all conversions from 128bit (long double) floats to integral types
use rounding towards zero (casts to int/long are not affected by current
rounding mode).
Fixes PR port-sparc64/47535.
2013-02-15 09:24:05 +00:00
martin 33a57db067 Backout libm dependency here as well (assuming it was meant for the
backed-out use of floor() I added/removed yesterday)
2013-02-15 07:59:36 +00:00
christos 4c96d7cf5d newer openssl 2013-02-15 03:55:50 +00:00
matt fcecc79a27 Actually use the calculated uboundary. 2013-02-15 01:03:43 +00:00
christos 96689e7ed9 More fixes from J.R. Oldroyd:
- I have added a call to memset() to clear the mbibuff on
  each loop.  Since we're dealing with possibly broken
  multibyte sequences, clearing it will avoid problems with
  a new input sequence possibly being confused by extra
  bytes still there from the last iteration.  wctomb(),
  which is used to fill that buffer, does not append a NUL.

- I have added a (char) cast when copying single bytes into
  the input buffer after a multibyte conversion error.

- In the call to strvisx() the count must be 1, not mbilen
  which can be 2 or 3 etc for a multibyte character.  This
  value is a count of characters - not bytes - to process.
  It even says characters in the man page.  In vis(3) I
  am interpreting this value to mean multibyte characters.
2013-02-15 00:29:44 +00:00
christos 66ae8c4557 More fixes from: J.R. Oldroyd
- The input loop control that I changed yesterday to:
	while (mbslength >= 0) {
  There are circumstances where this causes an extra \000 to
  be added at the end of some tests.  This error was showing
  in my own tests here, but I did not notice it yesterday.
  (I really need to add my tests to the test suite, catching
  every error by eye is hard.)  To fix, I've now changed the
  code to increment mbslength only if mbslength == 1 to start
  with.  (Note that this check for "== 1" is why the arg to
  strvisx() in vis(1) must be 1, not mbilen.)

- The cast sequence when manually inserting bytes after a
  multibyte conversion error:
	*src = (wint_t)(u_char)*mbsrc;
  is wrong.  This is causing problems in the case when an
  8859-1 input string is processed in the UTF-8 locale.
  It needs to be:
	*src = (wint_t)*mbsrc;
  Without the (u_char) all the locale mismatch combinations
  then work.

- The code:
	if (mblength < len)
		len = mblength;
  needs to be there.  It resets len for the single character
  input case after we've actually processed two input
  characters (c and nextc) because we incremented mbslength
  at the start of the loop.  Without this code, single
  character conversions end up with a \000 or other byte
  appended.
2013-02-15 00:28:10 +00:00
christos 1b766d2e25 don't use [ -f $i ] && cat $i, since we are using -e 2013-02-15 00:13:06 +00:00
christos 58523baaac PR/47569: Valery Ushakov: SOCK_NONBLOCK does not work because it does not
set SS_NBIO.
XXX: there are too many flags that mean the same thing in too many places,
and too many flags that mean the same thing and are different.
2013-02-14 21:57:58 +00:00
christos c48559910e re-order library dependencies to make sure that -lintl and -lz are after
the rest of the libraries so that static linking works.
2013-02-14 21:29:35 +00:00
martin cbad08c3fb Backout previous 2013-02-14 21:07:25 +00:00
matt d8eebedb0c Link against libm 2013-02-14 19:18:38 +00:00
christos ba2b5111fb PR/47657: Steffen "Daode" Nurpmeso: quoted printable CTE exceeds RFC limit.
- Encapsulated all the content-transfer-encoding stuff in mime_codecs.c
- Replaced calls of strtol(3) with a handcrafted version that allows simple
  error checking by testing the return value. This allows to easily add
  special code to handle illegal QP sequences.
2013-02-14 18:23:45 +00:00
martin 9a9df90953 When converting long double values to decimal, convert to int via a call
to floor(), so the conversion does not depend on current rounding mode.
Fixes PR port-sparc64/47535.
2013-02-14 17:12:23 +00:00
macallan c9c152a0c4 set -DPCVT_SUPPORT on most hardware 2013-02-14 16:16:25 +00:00
matt 251aa7b9a5 Make sure LIBGCC_MACHINE_ARCH is always defined. 2013-02-14 15:42:31 +00:00
christos 0439e62143 do the encoding character by character instead of failing on encoding mismatch 2013-02-14 14:00:00 +00:00
christos c64f43b851 off by one. 2013-02-14 13:57:53 +00:00
martin 646a4c9589 Fix thinko in previous (and misleading comment): stop ignoring table
entries for to be ignored devices.
2013-02-14 12:44:16 +00:00
martin 0490739fe5 Rearrange the special mainbus device list to allow for optional entries.
Fixes a panic on all SUN4M machines w/o an sx graphics adapter.
XXX the "ignore devices at mainbus" list seems to be ignored - or am I
missing something?
2013-02-14 12:14:13 +00:00
pooka f636df7543 Make it possible to manually specify the top level directory; for cases
where the target hierarchy is outside of the main tree.
2013-02-14 10:54:54 +00:00
martin e5f6266579 We have an implicit 1 MSB bit in the mantissa. Pointed out by Matt Thomas.
Fixes PR port-sparc64/47536.
2013-02-14 09:34:46 +00:00
wiz 4029d1a5ce Fix typo in error code; from Henning Petersen in PR 47565.
While here, sort errors.
2013-02-14 09:31:48 +00:00
matt e443b7748e Remove .fpu since it's not needed 2013-02-14 09:27:26 +00:00
matt 0748121219 Use right macro for __strong_alias 2013-02-14 09:24:50 +00:00
matt 5d4ceff81f Define a strong alias, not a weak one 2013-02-14 09:23:40 +00:00
matt eed2e00265 Define LIBGCC_MACHINE_ARCH so correct files are used o32 libgcc. 2013-02-14 09:22:18 +00:00
matt 782461209b For compat, use LIBGCC_MACHINE_ARCH (which defaults to MACHINE_ARCH).
When generating .hidden stub, use ${COPTS}
2013-02-14 09:19:28 +00:00
wiz 6bb4dc54f9 Mark up LC_CTYPE with Ev (didn't I just do this? :) ). 2013-02-14 08:56:59 +00:00