Commit Graph

264764 Commits

Author SHA1 Message Date
mrg 62ffddee45 disable new s-selftest rule that relies upon missing testsuite. 2019-01-19 12:32:06 +00:00
mrg a41324a9f3 first pass at merging GCC 7.4.0. unlikely to compile.. 2019-01-19 12:10:03 +00:00
mrg b17d1066a7 import GCC 7.4.0. main changes include:
The non-standard C++0x type traits has_trivial_default_constructor,
has_trivial_copy_constructor and has_trivial_copy_assign have been
removed.

On ARM targets (arm*-*-*), a bug introduced in GCC 5 that affects
conformance to the procedure call standard (AAPCS) has been fixed.

Many optimiser improvements

DWARF-5 support.

Many new and enhanced warnings.

Warnings about format strings now underline the pertinent part of
the string, and can offer suggested fixes.

Several new warnings related to buffer overflows and buffer
truncation.

New __builtin_add_overflow_p, __builtin_sub_overflow_p,
__builtin_mul_overflow_p built-ins added that test for overflow.

The C++ front end has experimental support for all of the current
C++17 draft.

The -fverbose-asm option has been expanded to prints comments
showing the source lines that correspond to the assembly.

The gcc and g++ driver programs will now provide suggestions for
misspelled arguments to command-line options.


AArch64 specific:

GCC has been updated to the latest revision of the procedure call
standard (AAPCS64) to provide support for parameter passing when
data types have been over-aligned.

The ARMv8.2-A and ARMv8.3-A architecture are now supported.

ARM specific:

Support for the ARMv5 and ARMv5E architectures has been
deprecated (which have no known implementations).

A new command-line option -mpure-code has been added. It does not
allow constant data to be placed in code sections.

x86 specific:

Support for the AVX-512 4FMAPS, 4VNNIW, VPOPCNTDQ and Software
Guard Extensions (SGX) ISA extensions has been added.

PPC specific:

GCC now diagnoses inline assembly that clobbers register r2.

RISC-V specific:

Support for the RISC-V instruction set has been added.

SH specific:

Support for SH5/SH64 has been removed.

Support for SH2A has been enhanced.
2019-01-19 10:13:58 +00:00
skrll cf574490c6 Increase MSGBUFSIZE 2019-01-19 09:11:55 +00:00
christos 3f3dbbcd73 add a range and a repeat regex test. 2019-01-19 01:02:12 +00:00
christos d7ebb8dfb4 PR/53885: Martijn Dekker: Add ERE support from
https://opensource.apple.com/tarballs/awk/awk-24.tar.gz
2019-01-19 00:37:41 +00:00
macallan 3c64c6cf95 allow font loading, resizing etc. 2019-01-19 00:16:43 +00:00
mrg 529b231fc9 link in libexecinfo. 2019-01-18 23:05:30 +00:00
skrll 8c499c7d34 Add support for "bootargs" environment variable from jmcneill@
Doesn't work with some (all?) u-boots.
2019-01-18 19:41:03 +00:00
jdolecek ce95c4acc1 revert rev 1.73 - while it apparently helped Christos case, it re-broke
the disk detection on several other systems, so need something else
2019-01-18 19:16:50 +00:00
scole 6001fabeed Add DPRINTF function, use kstack variable for proc0 memory, reorder some functions so ci initialized before use 2019-01-18 18:47:16 +00:00
scole ac4496f49f hopefully fix deadlock issue in cpu_switchto. pointed out by <mrg> (Thanks!) 2019-01-18 18:03:06 +00:00
christos 8d69f81137 - mark gcc=5 files obsolete
- make includes always available, not only when gcccmds
- mark files obsolete consistently
2019-01-18 17:49:55 +00:00
christos a9dc9217bb Descend and build includes even if mkgcccmds=no because we need the header
files during cross build too.
2019-01-18 17:31:39 +00:00
christos ededf16281 If we are building gcc, we always install the include files, otherwise
we can't build things even when cross-compiling because of missing header
files (like stdatomic.h). Really all the md/ad header files now will be
installed when mkgcccmds=no, but I've only fixed m68k.
2019-01-18 17:30:31 +00:00
skrll 69e8dca2e5 Adapt https://svnweb.freebsd.org/base?view=revision&revision=342113 to
NetBSD.

This brings us resolving for dynamically loaded libraries and makes
tests/libexec/ld.elf_so/t_thread_local_dtor pass.

With suggestions from joerg@
2019-01-18 11:59:03 +00:00
skrll 374c49c6e2 KNF 2019-01-18 07:05:36 +00:00
skrll d11d80eced Default to USBREV_3_0 if usbrev is unknown. 2019-01-18 07:03:02 +00:00
kre e8ed7c888d Finish (hopefully) the second half of 1.47 ... make sure
that when traps are marked as invalid, we never use them
for anything except output from the trap command.

Fixes issues where sub-shells of shells which use traps
(eg: to trap SIGPIPE) can end up looping forever if the
signal occurs in a sub-shell (where the trap is supposed
to be reset to its default).   Reported, and mostly
analyzed by Martijn Dekker.
2019-01-18 06:28:09 +00:00
mrg 8f49d6e252 rework size_arrays():
- avoid calloc, use bozomalloc
- minor CSE
- fix bozoprefs->size setting when increasing the size (new total was
  being added to the prior total.)  found by clang static analyzer
  from rajeev_v_pillai.

pass httpd to size_arrays() now.
free(NULL) is legal.
2019-01-18 06:04:10 +00:00
mrg 5335936687 fix a few problems pointed out by clang static analyzer, from rajeev_v_pillai:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().  this one is tricky as
  the original code was:
	free(request->hr_file);
	request->hr_file = bozostrdup(httpd, request, s ? s : "/");
  however, bozostrdup() may reference request->hr_file.
2019-01-18 05:48:31 +00:00
mrg f1c249720f add missing notable things i've done since netbsd-8:
fsdb(8): Add "saveblks" command. [mrg 20170804]
	gzip(1): Add SIGINFO support. [mrg 20170804]
	sparc: Fix time goes backwards. [mrg 20180112]
	midiplay: Add -s option to send all sounds off. [mrg 20180503]
	usb(4): Many fixes to abort issues fixed for all USB controllers.
		[mrg/skrll/riastradh 20180809]
	nullfs(4): Add 32-bit support. [mrg 20180811]
	i915(4): Pull in support for KabyLake CPUs. [mrg 20180913]
	usb(4): Handle most cases of early boot USB keyboard. [mrg 20180916]
	httpd(8): Update to bozohttpd-20181215. [mrg 20181215]
	crashme(9): Add framework for testing kernel crash dumps. [mrg 20190109]
2019-01-18 04:14:47 +00:00
macallan b135601990 don't crash when we're not the console 2019-01-17 23:05:15 +00:00
kamil 1514387ab8 Add a new example kernel module: mapper
Basic implementation of mmap.

Submitted by Akul Pillai.
2019-01-17 20:47:42 +00:00
christos 76718fd7da Use the proper stack aligment for the architecture. Fixes broken asan
tests on i386.
2019-01-17 20:36:51 +00:00
maxv 3b6bd9f01b Increase VM_PHYSSEG_MAX from 32 to 64. Saw an example on tech-kern@ of a
heavily fragmented memory map.
2019-01-17 19:26:03 +00:00
christos 9115af4f14 Enable stdatomic.h in all except lint (thanks joerg@) 2019-01-17 18:44:50 +00:00
maxv 73b2ed774d Simplify pmap_sync_pv: just pass a pa, and build the pte inside. 2019-01-17 14:24:51 +00:00
jmcneill 47334d6753 Add exynos5422-odroidhc1.dts 2019-01-17 13:51:25 +00:00
skrll f68c63dab4 KNF 2019-01-17 12:49:53 +00:00
hannken cf7182fc62 Use cv_broadcast() on "sc_sync_wait" to prevent deadlock
when more than one thread try to "DIOCCACHESYNC" at the
same time.
2019-01-17 10:20:01 +00:00
hannken d99716dabb Use PRIu64 for "uint64_t tp_refcnt". 2019-01-17 10:18:52 +00:00
wiz 845dfb2f5e Add missing width argument to Bl. Remove Pp before It. 2019-01-17 08:53:17 +00:00
mrg 9b91523ebd - call this 20190116
- adjust the directory indexing again:
  - don't include "index.html" in html headers
  - additional escaping of names
  - re-add top/bottom borders
  - adds an aquamarine table header
  - Zebra-stripes table rows using CSS instead of code
  all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
2019-01-17 07:46:16 +00:00
mrg d1eeb82409 add 'check' target to toplevel makefile.
fix the t11.out output now that CGI parsing works better.
2019-01-17 07:39:00 +00:00
mrg 9c0805993a - fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().

both from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
2019-01-17 07:34:06 +00:00
gutteridge 9eac6fa178 compat_netbsd32(8): brief adjustments concerning ARM binary support.
At present, aarch64 doesn't actually offer OABI compatibility. Also
note that this provides OABI vs. EABI compatibility for 32-bit ARM
ports. Addresses the remainder of PR misc/48968.
2019-01-17 07:05:24 +00:00
gutteridge e5663ad9a9 btpand(8): replace dhclient(8) references with dhcpcd(8)
Addresses part of PR misc/53669.
2019-01-17 05:52:21 +00:00
knakahara 6e581475e6 Add ATF for ipsecif(4) pfil. 2019-01-17 02:49:11 +00:00
knakahara e2f99c2d1d Fix ipsecif(4) cannot apply input direction packet filter. Reviewed by ozaki-r@n.o and ryo@n.o.
Add ATF later.
2019-01-17 02:47:15 +00:00
fox 4bfe81d9d9 Fixed issues with uvm_page_physunload_delete_end test case.
1. "avail_start" and "start" were different, resulting in unreachable code in
uvm_page_physunload(), where the condition check "avail_start" < "end" fails.
The test has been fixed by setting "avail_start" and "start" to the same value.

2. If "start" is the address with end address being "start + 2", we can
unplug twice, the first paddr_t would be "start" and the second one would be
"start + 1". Modified the ATF_CHECK_EQ() to reflect these changes.

Reviewed by <cherry>
2019-01-16 13:54:17 +00:00
fox 66ea64ecd5 Fixed issues with uvm_physseg_atboot_free_leak test case.
"\n" in ATF discriptions make it behave in weird ways, like saying "this
test is bogus.", fixed the issue by removing the "\n".

Reviewed by <cherry>
2019-01-16 13:45:29 +00:00
fox ff43743a55 Fixed issues with uvm_physseg_plug test case.
There is a condition check which failed for VM_PHYSSEG_MAX == 2 (not for
1 or 3 and above), in case of 2, pgs == slab + npages1 + npages3, so we
need to change ">" check to ">=" check.

Reviewed by <cherry>
2019-01-16 13:35:51 +00:00
fox 497a8f2bfd Fixed the build failures caused by incompatible type comparisons when
VM_PHYSSEG is > 1.

Reviewed by <cherry>
2019-01-16 13:21:02 +00:00
msaitoh ad7b332eaf Pass flags correctly. See also:
http://mail-index.netbsd.org/source-changes/2002/03/25/msg100515.html
2019-01-16 10:10:49 +00:00
msaitoh 5bafed958b CIPHY_MII_BMCR -> MII_BMCR in #ifdef foo. 2019-01-16 08:40:24 +00:00
msaitoh edfd380215 The register bit definitions from register 0 to 15 in ciphyreg.h conform to
the 802.3 spec, so remove them and use mii.h's definition.
No functional change.
2019-01-16 08:32:58 +00:00
msaitoh 8a47091b00 Add MII_100T2CR and MII_GTCR's test mode definitions. 2019-01-16 08:32:24 +00:00
msaitoh 828debf490 Remove the definition of BRGPHY_MII_1000CTL and use MII_GTCR. 2019-01-16 07:32:13 +00:00
msaitoh eba330e81b Add MII_GTCR(== 0x09 == MII_100T2CR) and MII_GTSR(== 0x0a == MII_100T2SR).
100T2 is little hard to imagine the meaning for gigabit Ethernet.
2019-01-16 07:30:35 +00:00