Commit Graph

277499 Commits

Author SHA1 Message Date
macallan 5afb4d35f0 only read the backlight level register on mobility chips 2020-06-11 07:51:26 +00:00
macallan c0d0309dde reduce stack usage in radeonfb_pickres() and radeonfb_set_cursor() 2020-06-11 07:46:59 +00:00
msaitoh f91387c6ed Fix IXGBE_LE32_TO_CPUS() macro for big endian machine. This problem was
only on X550*. Not tested on big endian machine.
2020-06-11 05:16:22 +00:00
dholland c76c804434 Regen after -r1.82 of compat_sunos syscalls.master last September.
(Apparently forgotten.)

"Treat valsize as unsigned"
2020-06-11 03:47:05 +00:00
dholland a3e1f5bd7e Regen with new makesyscalls.
(the large diff of rump_syscalls.h has been checked and was the point
of the makesyscalls change)
2020-06-11 03:45:30 +00:00
dholland 7595c2f933 Don't output things in awk hash order. Sort first. 2020-06-11 03:25:35 +00:00
thorpej 814a779807 Update for proplib(3) API changes. 2020-06-11 02:32:06 +00:00
thorpej e4c60075ae Oops, missed a couple. 2020-06-11 02:30:21 +00:00
thorpej de43e596ff Update for proplib(3) API changes. 2020-06-11 02:28:01 +00:00
dholland 7220d65dba fix awk-induced bug (using wrong variable, getting away with it by luck) 2020-06-11 02:21:26 +00:00
kamil f637acc932 Follow the syscall() logic and mask unsupported syscall ranges in rump
Avoids invalid pointer dereference from too large syscall numbers.
2020-06-11 00:33:30 +00:00
ad 62e0939e7d - Make pthread_condvar and pthread_mutex work on the stack rather than in
pthread_t, so there's less chance of bad things happening if someone calls
  (for example) pthread_cond_broadcast() from a signal handler.

- Remove all the deferred waiter handling except for the one case that really
  matters which is transferring waiters from condvar -> mutex on wakeup, and
  do that by splicing the condvar's waiters onto the mutex.

- Remove the mutex waiters bit as it's another complication that's not
  strictly needed.
2020-06-10 22:45:15 +00:00
ad 7ec7fae4db - Wired/resident stats shouldn't covered by PMAPCOUNTERS.
- Rename need_update_pv -> need_enter_pv.

Ok ryo@
2020-06-10 22:24:22 +00:00
ad a1d54d8ee2 Adjust cond_timedwait_race to take account of spurious wakeups (which are
completely legit).
2020-06-10 21:46:50 +00:00
sevan 1f66fbf040 URM 2020-06-10 20:26:52 +00:00
jmcneill 8201fa08db Use generic platform definition for i.MX7 2020-06-10 19:30:23 +00:00
jmcneill 7af73871cf If enable-method is missing, try psci 2020-06-10 19:29:48 +00:00
jmcneill e6ecdc649f Build i.MX7D dtbs for armv7 2020-06-10 18:53:31 +00:00
jmcneill 0b98f54e0a FDT-ize i.MX7. I don't have a board so this has only been tested on QEMU. 2020-06-10 17:57:50 +00:00
tsutsui 089d36aae0 MBR type for Ext2 should be MBR_PTYPE_LNXEXT2, not MBR_PTYPE_FAT12. 2020-06-10 16:56:22 +00:00
tsutsui 08529c6341 Change mountpoint of boot ext2fs from /stand to /ext2 to avoid conflict.
Should be pulled up to netbsd-9, with fixes of PR/55060.
2020-06-10 16:26:33 +00:00
simonb 2d5ac8346f Update for proplib(3) API changes. 2020-06-10 07:34:19 +00:00
msaitoh 78e3c03e74 Add SRBDS_CTRL bit. 2020-06-10 03:39:03 +00:00
simonb 9d2114faa9 Protect using mipsNN_foo() functions with an #ifdef MIPSNN.
Fixes non-MIPSNN kernel compiles pointed out by tsutsui@.
2020-06-10 01:42:17 +00:00
macallan 98f36c9844 proplib API catchup
NFCI, tested on v210
2020-06-09 21:57:00 +00:00
kamil 4228f24a2e Build and install llvm-symbolizer for MKLLVM=yes
llvm-symbolizer is an alternative for GNU addr2line(1), heavily used by the
LLVM sanitizers.

Do not install it as tools as it is not necessary as of today in that
stage.
2020-06-09 21:50:32 +00:00
nia 9e48297e1f FQA GCHQ 2020-06-09 19:45:29 +00:00
tsutsui dac5bee800 Fix comment. 2020-06-09 17:13:41 +00:00
tsutsui 4907681a33 Specify -fno-unwind-tables to shrink binary. Saves ~3.5%. 2020-06-09 16:49:08 +00:00
tsutsui f14d4add90 Suppress "options `COMPAT_xx' is not defined" warnings. 2020-06-09 16:43:01 +00:00
tsutsui 8e9ad8b61b Fix inverted Y-axis value passed to wsmouse_input(9).
Note this is what src/sys/arch/macppc/dev/ams.c does as
"upward (moving the mouse forward) is positive" as noted in wsmouse(9):
 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/macppc/dev/ams.c#rev1.4

Reported and tested by @NonameInsect on his SE/30 and Xorg server.
Should be pulled up to netbsd-8 and netbsd-9.
2020-06-09 11:44:48 +00:00
simonb c8d7078fab If we are on a SiByte or Cavium CPU with an FPU, report as "built-in FPU"
instead of saying it's an unknown FPU type.

XXX - add any other CPUs to this list?
2020-06-09 06:18:01 +00:00
simonb 3ee869dd07 Dynamically build the wayname strings instead of using a sparse array
populated with random N-ways entries.  Not only results in smaller code,
but also handles cases with 39-way caches without extra work.
2020-06-09 06:01:49 +00:00
msaitoh 8977e95b97 Add braces. 2020-06-09 05:07:13 +00:00
msaitoh 6259e97155 Remove debug printf. 2020-06-09 05:06:27 +00:00
dholland 9041a2f722 Update wrong and obsolete comments.
... when you change the set of syscalls.conf keywords this thing
recognizes, updating the documentation too (which AFAIK is limited to
the comment in here) is always helpful ...
2020-06-09 04:48:45 +00:00
sjg 7eee8da8ec Add test case for :Or 2020-06-09 01:48:17 +00:00
kamil db4bf4da47 Add fork/vfork/posix_spawn tests for processes within pgrp
New tests:
 - fork_setpgid
 - vfork_setpgid
 - posix_spawn_setpgid
 - unrelated_tracer_fork_setpgid
 - unrelated_tracer_vfork_setpgid
 - unrelated_tracer_posix_spawn_setpgid

These tests trigger a kernel assert for pg_jobc going negative.

The tests are temporarily skipped.
2020-06-09 00:28:57 +00:00
thorpej 759cf71618 When we add "entries", "index", and "sector_size" values to the dictionary,
add them as signed valaues, rather than unsigned (which is how we keep them
in memory).  This causes them be serialized in base-10 (rather than base-16,
which is the default for unsigned).  This behavior is documented in
prop_number(3).  Fixes t_gpt::backup_2part unit test.
2020-06-08 22:52:09 +00:00
thorpej f2709a687f Fix a paste-o that caused prop_data_create_copy() to be intolerant
of creating empty data objects.  Fixes t_ifconfig::ifconfig_description
unit test.
2020-06-08 21:31:56 +00:00
thorpej 9a0cd196e4 Ensure copy_data_create_copy() is tolerant of creating empty data objects. 2020-06-08 21:31:17 +00:00
thorpej 98fcc28254 Update for proplib(3) API changes. 2020-06-08 20:19:50 +00:00
sevan 919267d79b Use Dx macro 2020-06-08 20:19:12 +00:00
thorpej a2b798fdfa Update for proplib(3) API changes. 2020-06-08 20:14:24 +00:00
rillig c32d14bd2e usr.bin/make: fix test failure
The two files include-sub.mk and include-subsub.mk were never intended to
be test cases on their own.  They belong to include-main.mk.

Fixes PR bin/55360.
2020-06-08 19:50:10 +00:00
sevan 7b7e9ceaac Pp before Bl 2020-06-08 17:28:10 +00:00
sevan 0d0557bb3b white space 2020-06-08 17:19:44 +00:00
maxv 3e534f26ae install fault.h 2020-06-08 16:36:18 +00:00
jmcneill 464d1fd213 Add smscphy(4) 2020-06-08 11:51:48 +00:00
hkenken 6e4c9fda27 Fix wrong divider setting. 2020-06-08 07:48:57 +00:00