Commit Graph

265586 Commits

Author SHA1 Message Date
mrg
0276ea74da riscv wants netbsd-stdint.h's CHAR_FAST8=1 and SHORT_FAST16=1. 2019-02-10 07:55:57 +00:00
maya
634157f9e8 Update comment (copied from or1k) 2019-02-10 07:28:06 +00:00
mrg
30a7fe7f13 mark pf.c, radeon_cs.c and via_dmablit.c for no fall thru error.
this was already done in the various modules, but not in the main
kernel.
2019-02-10 05:01:59 +00:00
mrg
3b030d46ce openssl/store.h is installed by openssl 1.1, don't obsolete it every build. 2019-02-10 04:03:03 +00:00
kamil
5a04cbf366 Link t_ptrace_wait* tests with -pthread
While there, bump (c) for ATF ptrace(2) tests.

Add __used in infinite_thread() for consistency with other functions in
the file.
2019-02-10 02:13:45 +00:00
kamil
8ac77c305d Add initial pthread(3) tests in ATF t_prace_wait* tests
There were tested few scenarios with native _lwp_create(2) functions, using
this interface is not needed and it's easier to manage tests with
high-level pthread(3) API.

Rewrite original lwpinfo1 and lwpinfo2 tests into 8 new tests:
 - traceme_lwpinfo0 (0 spawned additional threads)
 - traceme_lwpinfo1 (1 spawned additional thread)
 - traceme_lwpinfo2 (2 spawned additional threads)
 - traceme_lwpinfo3 (3 spawned additional threads)
 - attach_lwpinfo0 (0 spawned additional threads)
 - attach_lwpinfo1 (1 spawned additional thread)
 - attach_lwpinfo2 (2 spawned additional threads)
 - attach_lwpinfo3 (3 spawned additional threads)

These tests verify primarily the PT_LWPINFO interface.

Build the t_ptrace_wait* tests with -pthread.

All tests pass.
2019-02-10 02:04:06 +00:00
mrg
036a48a6e4 run this through sort -u. removes a few duplicates and fixes order. 2019-02-09 23:26:35 +00:00
kamil
fb7fe14f74 Add infinite_thread() for ptrace(2) ATF tests
infinite_thread() is designed to be spawned as a pthread(3) function.

It will be used soon in new tests.
2019-02-09 23:10:42 +00:00
scole
a253ff12d9 use HAVE_FPREGS not HAVE_FPGPREGS and move some register_t inside proper #define. fixes ia64 build. ok <kamil> 2019-02-09 23:03:01 +00:00
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