Commit Graph

267128 Commits

Author SHA1 Message Date
roy ffbf4bb585 Note import of dhcpcd-7.2.1 2019-04-26 14:36:40 +00:00
roy 5520e60803 Sync 2019-04-26 14:34:10 +00:00
roy cdfaff8fa4 Import dhcpcd-7.2.1 with the following changes:
*  auth: Use consttime_memequal to avoid latency attack
*  DHCP: Fix a potential 1 byte read overflow with DHO_OPTSOVERLOADED
*  DHCPv6: Fix a potential buffer overflow reading NA/TA addresses
2019-04-26 14:32:27 +00:00
mlelstv 583ae9ed45 Expose device type. You can query it with e.g. drvctl -p ld0 disk-info/type.
Missing in previous commit.
2019-04-26 14:28:40 +00:00
pgoyette 64eedb18ba Some more empty-string --> NULL conversions for module dependencies 2019-04-26 11:51:56 +00:00
mrg e7c3d862ce re-#if 0 some testing code. 2019-04-26 10:27:49 +00:00
mrg 6bc30fa402 - implement sub-5degC interpolation.
- avoid setting TSADC_AUTO_CON_SRC*_EN twice
2019-04-26 10:20:09 +00:00
maya 6717e848e2 Remove unused 387 implementations.
These were removed from the build for being wrong, but the implementation
stayed around. This is confusing, we have the attic for old code,
let's delete the unused implementations.
2019-04-26 10:11:14 +00:00
jmcneill 2237cf1d59 Remove Designware timer code. This was used by the old Rockchip port and
is no longer required.
2019-04-26 10:11:03 +00:00
maya 30a5aeb5c6 Unify signbitl implementations.
(Unclear why they were different, it was only the comments that
differed)

Add a comment describing why the generic version works for both 80-bit
and 128-bit double.
2019-04-26 09:03:46 +00:00
maya ff9d8a09c1 Add a test case for signbit.
(paranoia prior to a libm change)
2019-04-26 08:52:16 +00:00
pgoyette dc68f5827a Set the "required modules" to NULL, not to an empty string.
It really doesn't make that much difference to the code, but the output
from modstat(8) is different!  (With an empty string in the MODULE() macro
modstat reports an empty string, but with a NULL in the macro, modstat
prints a '-' just like it does for other "empty" fields.)
2019-04-26 08:38:25 +00:00
mrg 39e6bc2ccf implement TSADC driver for rockchip RK3328 and RK3399. so far, only
tested on RK3399 but the RK3328 looks mostly the same and has a good
chance of working too.

add clock entries for "clk_tsadc" and "pclk_tsadc" to cru.

exports "CPU" and "GPU" temp sensors.  these currently limited to 5
degC resolution but can be reduced to sub 1 degC resolution with some
interpolation.

todo list:

- handle setting various temp values
- add interpolation between the 5degC intervals in sample data
- handle DT trips/temp value defaults
- interrupts aren't triggered (test by lowering warn/crit values),
  and once they work, make the interrupt do something
- test on RK3328, and port to other rockchips (will require moving
  some part into per-chipset sections, such as code<->temp tables)


thanks to jmcneill for help.
2019-04-26 08:28:11 +00:00
skrll 6e604a1916 A couple of fixes so that NetBSD/cats builds (on linux), works, and
produces a symbol table that is readable (by 4.4BSD nm(1) at least)

- Change from OMAGIC to ZMAGIC
- Resize the a.out string table if we run out of space.
- output symbol table size as int32_t (the code already assumes no 64bit
  a.out.
2019-04-26 07:35:21 +00:00
skrll bfa16f46ed The free block after the kernel from arm32_bootmem_init doesn't
account for bt_memavail.  Adjust for this.
2019-04-26 07:32:40 +00:00
msaitoh 87d4693b28 No functional change:
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
2019-04-26 06:33:33 +00:00
msaitoh 3605a44a6c Fix a bug that read value of MII_EXTSR register on TBI mode always fails.
This bug was added in rev. 1.169.
2019-04-26 04:58:40 +00:00
msaitoh 40085f4c21 Remove duplicated inclusion of sys/bus.h. 2019-04-26 04:33:00 +00:00
blymn e05fb203f8 Fix argument parsing for mvinsch, last arg is a chtype not a string. 2019-04-26 02:46:00 +00:00
christos d3b4720bfb attribute police 2019-04-26 01:51:55 +00:00
maya 3cdbcb3e1b document cosl with MLINKS and in the man page 2019-04-25 23:17:24 +00:00
maya e262cfe2be Expand to cover long double somewhat.
The given data is for double, so use DBL_EPSILON and don't expect better
results.
2019-04-25 22:58:23 +00:00
mlelstv 8723855e11 Restore mapping of file id to pid/type/fd.
Use 64bit file id to allow for 32bit fd and 25-26bit pid.
2019-04-25 22:48:42 +00:00
kamil aed5e5582f Fix typo in 'exceptions' 2019-04-25 20:48:54 +00:00
kamil 14fc6dc308 Fix typo 2019-04-25 19:37:09 +00:00
kamil 5e8f5be0b4 Introduce check for the support of FPU exceptions
If FPU exceptions are unsupported, skip the SIGFPE crash tests.

Reuse code from tests/kernel/h_segv.c
2019-04-25 19:15:23 +00:00
kamil 977be96776 Do not allow 0 as ILL si_code as it's reserved for SI_USER 2019-04-25 11:47:59 +00:00
kamil 623b6fd526 In ATF t_ptrace_wait* SIGILL tests allow any si_code
These codes are not portable between CPUs and kernels.

Change the checks to return any valid si_code in the defined range of ILL
values.

PR port-sparc/54140 by Andreas Gustafsson
2019-04-25 11:45:12 +00:00
roy b312a806c1 Fix build, install wsmoused 2019-04-25 11:21:34 +00:00
msaitoh 09a97b0852 KNF. No functional change. 2019-04-25 10:44:52 +00:00
msaitoh 14d9bb3260 No functional change:
- Use __arraycount().
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
2019-04-25 10:08:45 +00:00
maya a1190bb29b Link against expat.
Helps us pass a qt5-qtbase gbm configure check, and avoid PLIST issues.
2019-04-25 09:03:54 +00:00
roy d73f7f4f61 Don't install YP rc.d files with MKYP=no 2019-04-25 08:56:21 +00:00
msaitoh c317a61bd6 - KNF.
- Use __arraycount.
- Remove extra 'n' from debug printf.
2019-04-25 08:31:33 +00:00
msaitoh 1d54f38632 KNF. No functional change. 2019-04-25 05:42:43 +00:00
pgoyette dedd8aee9b Tyop in error message... 2019-04-25 05:12:49 +00:00
kre e904ec4095 Better interactive SIGINT handling (when a trap is set), and other
cleanups to the trap code.   No longer silently ignore attempts to
do anything other than set SIGKILL or SIGSTOP to the default ('-")
state.   Don't include those in trap or trap -p output (the former
because they cannot be other than in default state, so simply aren't
included, the latter because it is pointless) but do list them
when requested with trap -p SIG.

Interactive mode SIGINT traps are now run ASAP, rather than after
a command has been entered (so the sequence ^C \n is no longer needed
to generate one).   Further, when trapped, in interactive mode,
while waiting for a user command, a SIGINT acts (aside from the
trap being run) just like when not trapped, aborts the command being
entered (rather than leaving it, which it did when libedit was in use)
prints a new prompt, and starts again (which is what should happen.)

Traps other than SIGINT (which has always been handled special in
interactive mode) are unaffected by this change, as are SIGINT traps
in non-interactive shells.    Or that is the intent anyway.

Fix an in_dotrap ref count bug (was never being decremented... that
was inserted in a place never executed) (relatively harmless) and
add/improve some trap/signal related DEBUG mode tracing.
2019-04-25 03:54:10 +00:00
msaitoh f14381d610 Add gem(4). 2019-04-25 03:53:11 +00:00
mlelstv 9653889b03 Expose device type. You can query it with e.g. drvctl -p ld0 disk-info/type. 2019-04-24 23:39:23 +00:00
kamil c3c6e74f96 Drop error path from C11 call_once
The original implementation of C11 threads(3) contained check for error
paths, but it was stripped in the calls that are documented to return
no status from an operation. Do the same in call_once(3).
2019-04-24 21:41:15 +00:00
christos 1aa59a61e4 change -h to -n because it is more "portable" 2019-04-24 20:53:10 +00:00
kamil d39119472e Introduce minor changes to the C11 threading library
Switch tss_t type from int to pthread_key_t (no functional change as
pthread_key_t was already typedefed as int).

Noted by <enh from Google>.

Use C11 _Noreturn in thrd_exit(3) instead of NetBSD specific __dead.
The former is documented in the standard as an attribute of thrd_exit(3),
the latter is more portable to pre-C11 compilers, however C11 thread
support library needs C11 compiler for TLS anyway. __dead made a little bit
more point 3 years ago than today as 3 years ago pre-C11 compilers were
more common.
2019-04-24 18:47:54 +00:00
maxv ce3bd2e511 Match the structure order, for better cache utilization. 2019-04-24 18:45:15 +00:00
maxv 9019e1da46 Provide the hardware error code for NVMM_EXIT_INVALID, useful when
debugging.
2019-04-24 18:19:28 +00:00
cheusov f8f9f44113 Fix compilation failure with gcc-8.
Equal pointers to 'struct sigaction' should not be passed to sigaction(2).
  So, we pass NULL as an "old sigaction" structure.
2019-04-24 17:27:08 +00:00
christos 4899735091 PR/54000: Andreag Gustafsson: Compile the rounding test with
-fround-math since with gcc-7, the default mode ignores fenv settings
(the same effect can be achieved with -O0 :-)

https://gcc.gnu.org/wiki/FloatingPointMath
2019-04-24 15:12:09 +00:00
kamil 076c14945f libpthread(3): Import C11 thread support library 2019-04-24 15:04:51 +00:00
christos bad5bb4c17 Allow os_page sizes greater than the built-in page size. This can happen
for example for COMPAT_NETBSD32 sparc binaries (4K page size because of
MIN_PAGE_SIZE), running on sparc64 (8K pages).
2019-04-24 14:34:21 +00:00
sevan e528c64815 RFU 2019-04-24 14:15:35 +00:00
kamil 945ffcea06 Bump the libpthread(3) minor number to 4
Added C11 Threading library support.
2019-04-24 13:01:52 +00:00