Commit Graph

252999 Commits

Author SHA1 Message Date
agc
dc6cab8695 add pkg_install to the list of programs reported
don't throw a warning if tcsh is not found in the path
2017-08-23 18:15:53 +00:00
skrll
bbb1be6283 Always perform code previously code under #ifdef DIAGNOSTIC - it appears
that the read is needed to help make the chip work.  Someone with time and
a datasheet can hopefully work out why.

Fixes John D. Baker's boot problem reported on port-arm here:

	http://mail-index.netbsd.org/port-arm/2017/07/27/msg004323.html
2017-08-23 14:14:59 +00:00
christos
13a9a3bb6f now that we are processing SIGINFO write can be interrupted and return
partial results (well, it could before too but it was harder to trigger);
provide write_fully like we have read_fully already.
2017-08-23 13:04:17 +00:00
nisimura
50623f54bf - don't use ENTRY() for exception entries.
- correct section definition.
- designate long pointer ldr.
2017-08-23 13:02:14 +00:00
christos
50d315db6e Add test from PR/52499 2017-08-23 10:29:51 +00:00
christos
78a5d7f273 PR/52499: Justin: stresep uses memmove with of-by-one length 2017-08-23 10:27:41 +00:00
nisimura
695ffc63ca - avoid caddr_t. use Elf_Addr instead.
- iron out rdbg() errors.
2017-08-23 09:17:48 +00:00
maxv
bd6e417df1 style, reduces an incoming diff 2017-08-23 08:14:18 +00:00
maxv
9fc1f60503 Fix a bug in ucas_32 and ucas_64. There is a branch where they don't
initialize %rax.
2017-08-23 08:04:22 +00:00
kre
e5c13d3e3e Put back getopts - it is easier to get correct than hand rolled code.
Add -L and -P flags to allow the library/cmd search paths to be set.
Add support for getting vers info from sh, dhcpcd, and userland (/etc/release).
Stop abusing "sh -x" to support -v - do it properly.  Get rid of the duplicate
list of components used when there are no args, instead make better use of sh
capabilities to just process everything.  Better use of what sh can do for us
other places too.   Add a (more or less random) set of libraries to include
in output when no args are given.

OK agc (well, earlier version...)
2017-08-23 01:17:46 +00:00
kre
7f42948da2 Add () around "1 << n' in #define's, without it ~NAME is "~1 << n" which is
not what is wanted at all (and which caused the << of a negative number issue.)
Making the values unsigned is harmless (perhaps even better) so those that
were changed are still that way.
2017-08-22 21:23:58 +00:00
nisimura
e075bb6042 use lr for current x30. some comment snip 2017-08-22 18:35:09 +00:00
nisimura
9e9026cd67 fill EL1 exception entry vector 2017-08-22 17:08:03 +00:00
skrll
7f0f554e65 Check both buses for ub_usepolling and schedule the soft interrupt handler
or call it directly.  Fixes usb keyboard in ddb when attached to xhci.
2017-08-22 16:57:00 +00:00
maya
5f4da34d93 pxg(4) handles PMAG-D boards but not PMAG-C ones
(PMAG-C is handled by px(4))

from Miod Vallat in PR port-pmax/52497
2017-08-22 16:02:16 +00:00
maya
c2b7db20cf pmax uses wsdisplay since 2001, so omit BUGS mentioning it doesn't.
from Miod Vallat in PR port-pmax/52498
2017-08-22 15:56:46 +00:00
joerg
10fbba9d0c Since left shifts of negative values is undefined, make sure the various
constants are unsigned.
2017-08-22 12:52:24 +00:00
joerg
a46a39a417 Strip .debug_macinfo when converting to a.out, clang may generate it. 2017-08-22 11:14:28 +00:00
mrg
fa240cbc5e note gmp/mpfr/mpc updates 2017-08-22 10:25:13 +00:00
christos
74e8c71cd1 Fix for CVE-2017-12836; (cvs command injection) from MirBSD.
XXX: pullup-8
2017-08-22 10:06:57 +00:00
mrg
525d2dac9a note GMP 6.1.2 release and the build issues that may occur. 2017-08-22 10:04:44 +00:00
mrg
1367fc1e03 updates for GMP 6.1.2 and most platforms. run tested on i386, amd64,
sparc sparc64, earm, ofppc and mips64eb.  build tested on most.

remove the earm* variants as they're now the same as the arm* ones.
2017-08-22 09:59:37 +00:00
mrg
b4739963a8 update these for GMP 6.1.2, and start to make it more automatic. 2017-08-22 09:57:18 +00:00
mrg
d7b1414aad merge GMP 6.1.2. 2017-08-22 09:55:44 +00:00
mrg
ce54336801 initial import of GMP 6.1.2. main changes from 5.1.3 below.
notes:
 - support for thumb-less ARM chips was in our port of 5.1.3, but a
   similar method has been provided upstream now
 - someone should look at the AVX failure reports, and fix them

Changes between GMP version 6.1.0 and 6.1.1

  FEATURES
  * Work around faulty cpuid on some recent Intel chips (this allows GMP to run
    on Skylake Pentiums).
  * Support thumb-less ARM chips.

Changes between GMP version 6.0.* and 6.1.0

  BUGS FIXED
  * The public function mpn_com is now correctly declared in gmp.h.
  * Healed possible failures of mpn_sec_sqr for non-cryptographic sizes for
    some obsolete CPUs.
  * Various problems related to precision for mpf have been fixed.
  * Fixed ABI incompatible stack alignment in calls from assembly code.
  * Fixed PIC bug in popcount affecting Intel processors using the 32-bit ABI.
  SPEEDUPS
  * Speedup for Intel Broadwell and Skylake through assembly code making use of
    new ADX instructions.
  * Square root is now faster when the remainder is not needed. Also the speed
    to compute the k-th root improved, for small sizes.
  FEATURES
  * New C++ functions gcd and lcm for mpz_class.
  * New public mpn functions mpn_divexact_1, mpn_zero_p, and mpn_cnd_swap.
  * New public mpq_cmp_z function, to efficiently compare rationals with
    integers.
  * Support for more 32-bit arm processors.
  * Support for AVX-less modern x86 CPUs. (Such support might be missing either
    because the CPU vendor chose to disable AVX, or because the running kernel
    lacks AVX context switch support.)
  * Support for NetBSD under Xen; we switch off AVX unconditionally under
    NetBSD since a bug in NetBSD makes AVX fail under Xen.
  MISC
  * Tuned values for FFT multiplications are provided for larger number on
    many platforms.

Changes between GMP version 5.1.* and 6.0.0
  BUGS FIXED
  * The function mpz_invert now considers any number invertible in Z/1Z.
  * The mpn multiply code now handles operands of more than 2^31 limbs
    correctly.  (Note however that the mpz code is limited to 2^32 bits on
    32-bit hosts and 2^37 bits on 64-bit hosts.)
  SPEEDUPS
  * Plain division of large operands is faster and more monotonous in operand
    size.
  * Major speedup for ARM, in particular ARM Cortex-A15, thanks to improved
    assembly.
  * Speedup for Intel Sandy Bridge, Ivy Bridge, Haswell, thanks to rewritten
    and vastly expanded assembly support.  Speedup also for the older Core 2
    and Nehalem.
  * Faster mixed arithmetic between mpq_class and double.
  FEATURES
  * Support for new Intel and AMD CPUs.
  * New public functions mpn_sec_mul and mpn_sec_sqr, implementing side-channel
    silent multiplication and squaring.
  * New public functions mpn_sec_div_qr and mpn_sec_div_r, implementing
    side-channel silent division.
  * New public functions mpn_cnd_add_n and mpn_cnd_sub_n.  Side-channel silent
    conditional addition and subtraction.
  * New public function mpn_sec_powm, implementing side-channel silent modexp.
  * New public function mpn_sec_invert, implementing side-channel silent
    modular inversion.
  * Better support for applications which use the mpz_t type, but nevertheless
    need to call some of the lower-level mpn functions.  See the documentation
    for mpz_limbs_read and related functions.
2017-08-22 09:40:46 +00:00
mrg
26c43e3543 move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.
2017-08-22 09:17:50 +00:00
maxv
69b3066b98 Apply only CCR. Otherwise userland could set PSTATE_PRIV in %pstate and get
kernel privileges on the hardware.

ok martin
2017-08-22 09:12:49 +00:00
mrg
b108635e41 remove unused file 2017-08-22 08:26:42 +00:00
mrg
2a2c35d74b don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.) 2017-08-22 08:21:36 +00:00
maya
6bd5552bfa Reword warning message 2017-08-22 07:09:00 +00:00
ryo
f8d7b48458 aarch64/strlen.S didn't work. fixed some bugs. 2017-08-22 06:45:07 +00:00
pgoyette
de54817330 Improve translation of TFW to use "proper english" - sorry, Urban
Dictionary.
2017-08-22 02:36:48 +00:00
agc
3e7391255c also add tzdata versioning information 2017-08-21 19:51:32 +00:00
agc
82610a7d71 restore martin's change for tcsh versioning which got lost in the last update 2017-08-21 19:36:57 +00:00
agc
8df5d7616d Changes to sys_info (20170821)
+ get rid of -a argument, which was superfluous since no arguments
means provide information on everything known

+ add the shell function to check for the path of a program. Taken
from pkgsrc bootstrap script, modified for return values, and "not
found" action

+ use this shell function for tcsh and unbound, both of which may not
exist on systems

+ go back to using standard shell construct for parsing options now,
since there is only 1 option with no optargs

+ from a suggestion from Paul Goyette, run the provided arguments
through sort | uniq

+ add sys_info itself to the list of programs to report
2017-08-21 19:22:31 +00:00
christos
c59e7c75da don't skip nexttoward for aarch64 and mips64 2017-08-21 17:11:18 +00:00
christos
c2e78b1bda add nexttoward for mips64 and aarch64 2017-08-21 17:10:34 +00:00
christos
b766bbedd5 don't lock for RUMP 2017-08-21 17:01:04 +00:00
christos
69848304b5 no ssp and pie 2017-08-21 16:36:00 +00:00
kre
5f92382c9a Add support for $'...' quoting (based upon C "..." strings, with \ expansions.)
Implementation largely obtained from FreeBSD, with adaptations to meet the
needs and style of this sh, some updates to agree with the current POSIX spec,
and a few other minor changes.

The POSIX spec for this ( http://austingroupbugs.net/view.php?id=249 )
[see note 2809 for the current proposed text] is yet to be approved,
so might change.  It currently leaves several aspects as unspecified,
this implementation handles those as:

Where more than 2 hex digits follow \x this implementation processes the
first two as hex, the following characters are processed as if the \x
sequence was not present.  The value obtained from a \nnn octal sequence
is truncated to the low 8 bits (if a bigger value is written, eg: \456.)
Invalid escape sequences are errors.  Invalid \u (or \U) code points are
errors if known to be invalid, otherwise can generate a '?' character.
Where any escape sequence generates nul ('\0') that char, and the rest of
the $'...' string is discarded, but anything remaining in the word is
processed, ie: aaa$'bbb\0ccc'ddd produces the same as aaa'bbb'ddd.

Differences from FreeBSD:
  FreeBSD allows only exactly 4 or 8 hex digits for \u and \U (as does C,
  but the current sh proposal differs.) reeBSD also continues consuming
  as many hex digits as exist after \x (permitted by the spec, but insane),
  and reject \u0000 as invalid).  Some of this is possibly because that
  their implementation is based upon an earlier proposal, perhaps note 590 -
  though that has been updated several times.

Differences from the current POSIX proposal:
  We currently always generate UTF-8 for the \u & \U escapes.   We should
  generate the equivalent character from the current locale's character set
  (and UTF8 only if that is what the current locale uses.)
  If anyone would like to correct that, go ahead.

  We (and FreeBSD) generate (X & 0x1F) for \cX escapes where we should generate
  the appropriate control character (SOH for \cA for example) with whatever
  value that has in the current character set.   Apart from EBCDIC, which
  we do not support, I've never seen a case where they differ, so ...
2017-08-21 13:20:49 +00:00
pgoyette
ea63cbf5e6 Add previous statement from core@ and add reference to earlier E-mail
discussion.

OK martin@
2017-08-21 10:38:19 +00:00
hannken
28650af9eb Change forced unmount to revert open device vnodes to anonymous devices. 2017-08-21 09:00:21 +00:00
hannken
7801661c06 No need to cache anonymous device vnodes, they will never be looked up.
Set key to (dead_rootmount, 0, NULL) and add assertions.
2017-08-21 08:56:45 +00:00
knakahara
95e8e4f3ac remove unnecessary comment. 2017-08-21 07:38:42 +00:00
msaitoh
8f0f46f919 Add new function acpi_select_address() derived from acpi_get_fadt_revision().
On some systems, 32bit address is used for (X)Dsdt even if (X)Facs uses 64bit.
Don't assume an address size from FADT revision.
2017-08-21 02:58:49 +00:00
knakahara
f23d18f07b fix localcount leak in sav. fixed by ozaki-r@n.o.
I commit on behalf of him.
2017-08-21 02:35:13 +00:00
kre
5f02c8e934 Make the $'...' syntax tests test what is supposed to work, rather than
what I thought was required (just a couple of changes...).
2017-08-21 00:56:22 +00:00
jakllsch
9e8b884d59 Ignore 0-sized memory regions in the FDT. 2017-08-20 21:00:01 +00:00
mlelstv
aaf4d31325 make the sc_discard interface for the ld backend asynchronous and
signal completion through new callback lddiscardend. Use a standard
struct buf to pass disk address and range instead of two off_t values.

make lddiscard synchronous again. This is a requirement of the current
ffs discard code.
2017-08-20 15:58:43 +00:00
christos
ae5bd0fe13 Create the ramdisk destination dir here. 2017-08-20 15:38:22 +00:00