Commit Graph

297332 Commits

Author SHA1 Message Date
mrg 9f30ce74df merge GCC 10.4.0. 2022-07-22 20:22:33 +00:00
thorpej f3bcee9cf5 Split the i2c controller into 2 separate instances. This aligns with
how the device is represented when using DeviceTree, and also allows us
to de-weirdify the shared motoi2c code.

XXX Because e500 interrupt code doesn't support shared interrupts, we
no longer establish one for the i2c controller, but this isn't a great
loss as motoi2c doesn't support using interrupts right now anyway.
2022-07-22 20:09:47 +00:00
thorpej df0013f6b5 Stop using deprecated problib functions. 2022-07-22 20:05:55 +00:00
thorpej 129929c6a9 Revert previous; that was intended to be two separate commits. 2022-07-22 20:04:53 +00:00
thorpej 0879024568 Stop using deprecated proplib functions. 2022-07-22 19:54:14 +00:00
mrg a448f87c37 initial import of GCC 10.4.0 sources.
mostly a large list of PRs fixed (210 total), plus one x86-64
specific change related to MMX and 64 bit integer return.

https://gcc.gnu.org/gcc-10/changes.html links to the full list
of PRs fixed.
2022-07-22 19:52:30 +00:00
thorpej b22591ba11 Drop using deprecated proplib functions. 2022-07-22 19:52:29 +00:00
mrg 0f1671f24f initial import of GCC 10.4.0 sources.
mostly a large list of PRs fixed (210 total), plus one x86-64
specific change related to MMX and 64 bit integer return.

https://gcc.gnu.org/gcc-10/changes.html links to the full list
of PRs fixed.
2022-07-22 19:52:28 +00:00
nia fdf6cf6310 ctwm_app_menu: Work around "emacs being installed results in the
generated ctwmrc containing invalid syntax" problem. Emacs installs
a desktop file called "emacsclient" that contains "doublequotes"
in its exec string. Pending a better solution for dumping escaped
shell lines into the config file, hide or sanitize desktop entires
that might mess up the internal ctwmrc quoting rules.
2022-07-22 17:06:46 +00:00
christos a63bd7e822 Add a menu option to set the file extension of the downloaded sets.
amd64 sets are .tar.xz and sysinst fails by default.
2022-07-22 16:51:14 +00:00
wiz 5bea87492d Build and install pkgconfig files for liblzma and libarchive 2022-07-22 15:43:36 +00:00
wiz 230f85b870 fix current libarchive version, and mention 3.6.1 release 2022-07-22 12:30:56 +00:00
mrg c38f6a9699 fix missing components of c++17.
codecvt.cc was already present and handled for c++98 and c++11,
but cow-string-inst.cc, ostream-inst.cc, and string-inst.cc
were not handled for c++11 and c++17.

move all the handling of this into the Makefiles out of the
mknative-gcc output, and handle the new c++17 files.

fixes a problem reported by dholland.
2022-07-22 07:09:21 +00:00
mrg 7e76252b1d don't rename codecvt.cc here, do it in a Makefile when consumed.
since the Makefiles already need updates for these, it's easier
if all of the changes are there.
2022-07-22 06:50:26 +00:00
skrll cb3f674b71 malloc -> kmem. 2022-07-22 06:31:08 +00:00
msaitoh b479ac816a Add more statistics countes.
- Add many statics counters that the chip has.
 - Attach event counters only if available.
2022-07-22 05:23:50 +00:00
mrg 6d5d98fc8a build glamoregl module with all the glamor objects, not as part of
the base list of libraries.  noted by rjs.

should fix PR#56934.
2022-07-21 22:51:23 +00:00
martin 5411e19c89 Add some driver debugging infrastructure 2022-07-21 18:12:24 +00:00
andvar 0b988ad480 s/pedning/pending/ 2022-07-21 14:41:59 +00:00
andvar 1c4208385c s/Transration/Translation/ 2022-07-21 14:27:46 +00:00
simonb ea119a1a22 Removed unused opt_wapbl.h include. 2022-07-21 14:07:16 +00:00
andvar 6913cbefe0 fix typos in comments and log messages, mainly s/intrrupt/interrupt/. 2022-07-21 10:09:20 +00:00
wiz 33b95c7f55 readlink: sort SEE ALSO 2022-07-21 10:08:28 +00:00
kre a71e9960ca Add an Xr to realpath(1) (which does much the same as readlink -f).
Try not to forget the damn comma!
2022-07-21 10:00:31 +00:00
kre 1f79159709 Note realpath(1) update. 2022-07-21 09:56:34 +00:00
kre fa7d65a3b6 Add ATF tests for realpath(1)
Note that realpath can act differently for root than for other users
(where an ordinary user will see EACCESS root just barrels right through).

The tests adapt themselves, when run as root, less error cases can be
tested than when run as some other user.
2022-07-21 09:52:48 +00:00
wiz d0aa7735ce Add missing comma. 2022-07-21 09:51:53 +00:00
kre 245b5ea4e5 Make realpath(1) compat with the planned (not yet approved) specification
for POSIX.8 (its next version).   (Should the requirements change, the code
here can be updated).

This adds two new options.  -e and -E
-e just tells realpath to do what it has done since it was imported here.
-E makes realpath more compatible with the coreutils version, and allows
   the final component of the path to not exist (the final component after
   all symlinks have been expanded, not of the arg on the command line - though
   that one not existing is one case of the more general spec.).

POSIX is not going to specify which of those is the default - instead is
planning to require users to always explicitly specify one.

The default (now) here is -E.   This makes us more compat with coreutils.
realpath was added in the first place because it is (apparently) used in
real world scripts - the more we can support, the better.

Note that in all cases where realpath -e succeeds, realpath -E will succeed
as well.   This means that any uses of "realpath file" that have been
working in HEAD will still work.   Some cases that would have failed
will work (by default) now.
2022-07-21 09:47:31 +00:00
kre 5c922bdb9e PR bin/56917
If getfsspecname() fails that will usually mean that a NAME=wedge or
ROOT.x partition is unabailable.   raidframe specified unavailable
partitions as "absent" so in this case, pass "absent" rather than the
unaltered NAME= or ROOT.x string, which the kernel has no clue what
do do with, and doesn't configure the raid at all.
2022-07-21 09:19:53 +00:00
riastradh 62f40b1cc2 drm/ttm: Cast to potentially larger types before << PAGE_SHIFT.
Not sure if this is a problem but it might affect, e.g., i386pae.
Can't hurt, in any case, to cast to what the type will be after the
shift anyway.
2022-07-21 08:07:56 +00:00
kre 15e7028037 Cleanup the "hup" function - quote properly, and test for the pid
file existing (with something in it) before simply using it, so the
error message can be controlled, rather than just sh's cannot open file msg.
2022-07-21 07:53:28 +00:00
kre d8eb9e45f2 Get rid of the (insulting)
We recommend that you create a non-root account...
message from single user mode shell startups.
2022-07-21 07:51:12 +00:00
kre bd7c53a85d Make this better ... Allow config file for raidN to be found
in /etc/conf/raid/raidN (as well as in /etc/raidN.conf) (less
clutter in /etc).

Allow config files to exist for raids that are autoconfigured (just
skip anything autoconfigured) - this allows a (simplistic) recovery
mechanism if autoconf fails, and makes it simpler to enable/disable
autoconf at will, while keeping the raid working.

While here, add sh quoting where it is needed, and remove it from
where it is pointless.
2022-07-21 07:49:36 +00:00
thorpej e0c45a1489 Rename functions in previous in preparation for future changes. 2022-07-21 01:52:28 +00:00
thorpej a441e7a25d Improve error reporting. 2022-07-20 22:58:35 +00:00
martin fd0206ff35 When we init the hardware's rx/tx ring configuration we need to
adjust our internal state, as this implicitly resets the current
descriptor pointer.
Previously "ifconfig eqos0 down; ifconfig eqos0 up" made the interface
non-functional.
2022-07-20 18:48:41 +00:00
thorpej 64b6590238 Fix a couple of nits with savectx():
- Note that this function is only used by dumpsys().
- Don't safe the PS word; there isn't actually a spot for it in the PCB.
- Don't bother returning anything; savectx() is declared void.
2022-07-20 18:25:10 +00:00
thorpej 0ce9a18f82 Localize direct refernces to kernel symbols into functions. NFC. 2022-07-20 17:03:10 +00:00
thorpej 7803b59a40 Make alpha_wmb() actually a WMB rather than an MB (all uses of
alpha_wmb() have been audited and fixed-up as necessary).
2022-07-20 15:52:47 +00:00
thorpej 1a8114347d In the Alpha tc_syncbus(), we need to issue a MB because WMB does not
order reads with respect to writes.  Remove now-redundant tc_wmb()
calls before tc_syncbus().

NFC on MIPS other than removing a redundant wbflush() (tc_wmb() followed
by tc_syncbus()).
2022-07-20 15:45:28 +00:00
thorpej 3c0153b8ab No need to test for __alpha__ || alpha ... just one will suffice. 2022-07-20 14:19:38 +00:00
riastradh 75c01b644e mips: Fix cpuids synchronization at boot. 2022-07-20 10:07:49 +00:00
riastradh 99d298e068 drm: Use CPPFLAGS.drmkms in all local drm drivers too.
This way we don't pollute the NetBSD kernel namespace with all the
Linux compat shim definitions needed to build drm, except for the
local drm drivers that need the API.
2022-07-20 10:01:10 +00:00
riastradh 7330e4c4c5 drm: Keep drm include flags in CPPFLAGS.drmkms after all.
Failures from this are much more obvious to debug than files with
missing #ifdefs, which sometimes lead to build failures but could
also just lead to silent miscompilation.
2022-07-20 10:01:01 +00:00
msaitoh 40c24d3de9 Modify comment. Use __BIT() a little. No functional change. 2022-07-20 06:43:37 +00:00
riastradh 289a0b495d drm: Restore pollution of CPPFLAGS with include directories.
Too much trouble to make this fine-grained.
2022-07-20 01:38:24 +00:00
riastradh 42eb3644f2 aarch64: Make cpufunc.h includable without sys/cpu.h first. 2022-07-20 01:35:25 +00:00
riastradh ba17231070 drm: Ifdef out alpha-specific logic in radeon.
Guessing this is handled transparently by bus_space(9) when we ask
for prefetchable linear mappings.  Need an alpha wizard to review!
2022-07-20 01:22:38 +00:00
riastradh 86a0f5fd03 drm: Use real pci segment number, not pciN device unit. 2022-07-20 01:20:20 +00:00
riastradh 9e854df856 drm/ttm: Handle io_mem_pfn, used by amdgpu. 2022-07-20 01:12:14 +00:00