Commit Graph

216780 Commits

Author SHA1 Message Date
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
matt b25c1339c3 Deal with an implicit NBIT 2013-02-14 08:56:56 +00:00
matt b885b904fc Define LDBL_IMPLICIT_NBIT 2013-02-14 08:56:21 +00:00
matt fd8ba71ca3 Make sync counters only count when caches ops are performed. 2013-02-14 08:24:39 +00:00
matt 41eef373d9 Rework counters.
Get rid of a badly done goto.
Properly deal with boundary in bus_dmamem_alloc_range.
2013-02-14 08:07:35 +00:00
matt caeec93030 Add BUSDMA_COUNTERS option 2013-02-14 07:26:23 +00:00
christos 55c4079b3b fix previous 2013-02-14 03:36:44 +00:00
christos fbf6778a1b Since the libraries are produced with different MK flags than the programs,
we check for existance of the files instead of the MK flags.
2013-02-14 03:02:47 +00:00
matt 92b4e13a0d Use PROGDPLIBS 2013-02-14 02:52:59 +00:00
christos 4880aaed67 Add PROGDPLIBS 2013-02-14 01:58:00 +00:00
christos 48e0a195df add PROGDPLIBS, and remove duplicate dependencies. 2013-02-14 01:57:42 +00:00
matt 276acf4a26 Use LIBDPLIBS 2013-02-14 01:21:25 +00:00