Commit Graph

265527 Commits

Author SHA1 Message Date
mrg
1892f84f2f separate out the arch-specific and compat-specific subdirs.
put compat stuff in NetBSD.compat.$MACHINE_ARCH, and normal
stuff in NetBSD.dist.$MACHINE/MACHINE_ARCH, etc.

probably need at at more files for sh3, mips, ppc, sparc,
m68k, arm, ia64, etc., as every port has port- or arch-
specific header subdirectory.
2019-02-09 21:43:23 +00:00
maya
53ba185d70 Use GCC 7 on riscv, it is not supported on 6. 2019-02-09 21:05:48 +00:00
maya
2d1c9dccee Fake mknative for riscv64, enough to complete a tools build. 2019-02-09 21:03:24 +00:00
maya
71bd56fe32 s/TARGET_HARD_FLOAT_ABI/TARGET_HARD_FLOAT, the latter has the
benefit of existing. Inspired by mips/netbsd.h.

remove some redefinitions. There are still a few left, but these ones
seem to match.
2019-02-09 21:00:41 +00:00
maya
c43be0834e We also need t-riscv (for riscv-builtins.o) 2019-02-09 20:57:17 +00:00
maya
dd2e62178a Revert all riscv-related local patches.
As for the libbfd.h change: the definitions seem to mostly exist, but we
had duplicated them.

Fixes riscv64 binutils build.
2019-02-09 19:40:32 +00:00
msaitoh
800ead4e1b Add missing newline. 2019-02-09 16:00:41 +00:00
mrg
109c3f6558 - expand the comment about what netbsd32_machdep.h should provide.
- add missing NETBSD32_POINTER_TYPE
- add static inline functions to convert pointers to/from 32 bit,
  inclusing an overflow check for NETBSD32PTR32PLUS().
2019-02-09 11:30:13 +00:00
mrg
49da775070 on tomatillo unload the map before flushing the iommu, instead of
the reverse.  from opensolaris.
2019-02-09 11:27:05 +00:00
kre
4d2988311a Add a check that the file descriptor mentioned in a N> or N< type
redirect operator is within range of what the code tree node can
hold.   Currently this is a no-op change (the new error can never
occur) as the code already checks that N is in range for an int
(and errors if not) and the field in the node in which we store N
is also an int, so we cannot overflow - but fd's do not really need
to be that big (the max a typical kernel supports is < 10000) so
this just adds validation in case it ever happens that we decide we
can save some node size (ie: sh memory) by making that field smaller.

Note this is parse time error detection, and has no bearing upon
the execution time error that will occur if a script attempts to use
an fd that exceeds the process's max fd limit.

NFCI (for now anyway.)
2019-02-09 09:50:31 +00:00
kre
83735e242c DTRT when dynamically generated variables return "unset" instead of
a value.   There are none which do that at the minute, so this is a NFCI
change, which is just making the code correct even though nothing
currently triggers any bugs.
2019-02-09 09:38:11 +00:00
kre
733a465e66 DEBUG mode change only. Add one extra trace point. NFC for normal builds. 2019-02-09 09:34:43 +00:00
kre
750dbf249a When an interactive shell exits due to an EOF on stdin, send a newline
to stderr (to follow the previous prompt) and cleanup more nicely.
2019-02-09 09:33:20 +00:00
kre
ccf5ffdbe9 In the unlikely event that restarting a job fails (the fg bg and various
%x commands) generate the most useful error message (from errno value)
rather than whichever happened last.

In posix mode, cause the "jobs" command to delete records of completed
jobs it reports on (as posix requires) as is done in interactive shells.
We don't (won't) do this in !posix mode, as the ability to throw in a
"jobs" command in a script to debug what is happening is too useful to
lose -- and any script that is relying on "jobs" instead of "wait" to
cleanup background processes (from the sh jobs table, sh always collects
zombies from the kernel) is absurd and not worth considering (besides
which I've never seen one).
2019-02-09 09:31:33 +00:00
kre
b4a242b5e2 KNF - white space changes, indent using tabs not spaces. NFC. 2019-02-09 09:20:47 +00:00
kre
39879a1c65 DEBUG mode build changes - add extra trace output.
NFC for any normal shell build.
2019-02-09 09:17:59 +00:00
kre
f42ddab0ac Delete extern decl for trap[] - hasn't been needed for a while now. 2019-02-09 09:15:22 +00:00
kre
3dbd860142 Allocate alias pointers for qsort() to use on the stack, rather than
directly via malloc() so they get cleaned up correctly on error/intr.

NFCI.
2019-02-09 09:11:07 +00:00
rin
f384630a8c Add 8153, sort adapters. 2019-02-09 08:08:32 +00:00
rin
df4ea585b2 Add Realtek RTL8201E and IC Plus IP101. 2019-02-09 08:07:13 +00:00
rin
7ff3e5cb80 Elucidate chip family of supported adapters. 2019-02-09 07:55:26 +00:00
rin
04ee4dcd28 Add examples of supported adapters. 2019-02-09 07:54:51 +00:00
rin
83f776bffe Print chip ID when attached. 2019-02-09 07:50:47 +00:00
rin
deaee5c010 Support RTL8152. Tested on ure(4) (RTL8152). 2019-02-09 07:48:39 +00:00
rin
86d8126159 regen 2019-02-09 07:46:07 +00:00
rin
52e8dc9062 Add RTL8201E from OpenBSD. 2019-02-09 07:45:34 +00:00
mrg
7f3d4089fc make sure Makefile.inc is included before Makefile.driver.
allows removing a depend hack and may also fix dtrace/ctf builds.
2019-02-09 07:32:50 +00:00
skrll
53a81a2f84 Typo in comment 2019-02-09 07:20:21 +00:00
skrll
e20dfc41c6 Print revidr of BP as well as APs 2019-02-09 07:19:02 +00:00
mrg
bbaa4a4045 - build the gthr*.h files to be installed on the fly, instead of
having dozens of copies of the same thing in the tree.
- don't fetch any gthr*.h files.
- delete ancient gthr-tpf.h that was removed in GCC 4.8 or so.

this should fix the call_once tests for real now.
2019-02-09 03:57:00 +00:00
kre
e8999de45c INTON / INTOFF audit and cleanup.
No visible differences expected - there is a remote chance that
some internal lossage may no longer occur in interactive shells
that receive SIGINT (untrapped) at inopportune times, but you would
have had to have been very unlucky to have ever suffered from that.
2019-02-09 03:35:55 +00:00
christos
95d8fbc88d - Change the allocation macros to be more like function calls
- Change sizeof(type) -> sizeof(*variable)
- Use macros for the long buffer length allocations
- Remove "bit polishing" memsets() -- do them only once
- Remove unnecessary casts

Thanks to oster@ for finding bugs and testing.
2019-02-09 03:33:59 +00:00
mrg
db06f203b4 fix the previous - it's __NetBSD__, not __NetBSD. 2019-02-09 02:43:11 +00:00
mrg
f2b804bcea remove old comment. 2019-02-09 02:36:56 +00:00
mrg
01ef24fd3f fix hello_profile's hello_profile_head function name. 2019-02-09 02:36:28 +00:00
manu
ef486683cc Fix directory filehandle usage with libufse. Fix lookup count
libfuse does not use filehandle the same way for directories and other
objects. As a result, filehandles obtained by OPENDIR should not be
sent on non-directory related operations like READ/WRITE/GETATTR...

While there, fix the lookup count sent to the FORGET operation, which
led to leaked nodes.
2019-02-09 02:22:45 +00:00
mrg
1383461bd0 mark ./usr/include/g++/bits/aarch64/c++config.h and
./usr/include/g++/bits/arm/c++config.h as "libstdcxx" not "gcc=6".
2019-02-09 02:15:05 +00:00
mrg
a030aaf208 move ./usr/include/dev/iscsi into NetBSD.dist.iscsi that is only
included if MKISCSI != no.
2019-02-09 02:04:19 +00:00
mrg
5b0105b4d4 update switched lists. 2019-02-09 01:29:38 +00:00
christos
0166c051fe Follow suit with FreeBSD and solaris for the __gthread_active_p()
implementation. Fixes the atf call_once unit tests.
2019-02-09 01:27:43 +00:00
mrg
fccd79354b switch ppc64 back to gcc7, it was an accident. 2019-02-09 00:59:30 +00:00
mrg
07cbfd6044 put config/posix first in the path so that the right lock.c is used. 2019-02-09 00:48:59 +00:00
mrg
cd2fa45002 create i386 specific include directories. 2019-02-09 00:15:28 +00:00
mrg
c39df26c59 add new t_libgomp test. 2019-02-09 00:14:43 +00:00
mrg
f4fc04f995 add $NetBSD$ tags. 2019-02-09 00:13:19 +00:00
mrg
9ca42b4c5e add very simple test that you can link -fopenmp.
currently fails, but should work soon...
2019-02-09 00:12:14 +00:00
mrg
6b8fbde2b5 add missing ./usr/include/xen 2019-02-08 23:27:14 +00:00
mrg
928cce347f define CAN_SANITIZE_UB properly: libasan and libtsan need to not
have it set, libubsan needs to have it set.

fixes almost all the new atf failures from GCC 7 switch.
2019-02-08 22:06:12 +00:00
palle
9542a629ba sun4v: Improve comment for next_stick_init() - no functional changes 2019-02-08 20:34:23 +00:00
christos
42d33e97c5 Remove the copy of bind?!?! used for its libraries... 2019-02-08 20:29:05 +00:00