Commit Graph

306311 Commits

Author SHA1 Message Date
nia 802174f7f1 doc: recent (and not so recent) changes 2024-05-21 10:46:20 +00:00
nia 1341adf357 uaudio.4: update documentation reflecting initial uac2 support 2024-05-21 10:45:39 +00:00
andvar 6651fa84ea nix extra whitespace. 2024-05-21 08:04:20 +00:00
andvar 7d21103aa3 s/amout/amount/ in comments. 2024-05-21 07:29:40 +00:00
gutteridge 1887598093 mkubootimage(1): adjust usage, etc.
In the tool, reflow and reorder usage() output and also consistently
mark which arguments are optional.

In the man page, add missing -t argument in the synopsis and follow
consistent argument ordering.
2024-05-21 04:01:26 +00:00
gutteridge 5231fcf070 mkubootimage(1): add riscv 2024-05-21 03:54:31 +00:00
nia d257b0e8a9 aiomixer(1): Fix setting volume on sb(4) emulated in QEMU.
The driver does not return a "delta", assume it's 16.
2024-05-20 22:21:45 +00:00
wiz 7964e1f2d6 Improve usage.
From Igor Sobrado Delgado, so we're in sync with OpenBSD.
2024-05-20 20:46:05 +00:00
riastradh 721b426c77 libstdc++: Don't try to fflush stdin in gcc.old libstdc++ either.
PR lib/58206
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114879
2024-05-20 19:36:30 +00:00
riastradh 44dc91bb82 Revert "pci: Pass cookie through pci_find_device, pci_enumerate_bus."
Evidently something is wrong with this, to be diagnosed and redone
once the builds and tests are in better shape.
2024-05-20 19:15:48 +00:00
sjg 034e15ae19 make: cleanup style in FindFile
Since we removed the last check for isinclude,
restore to the previous indentation etc.

No functional change.
2024-05-20 19:14:12 +00:00
pgoyette 8f43f9fe88 Oooppss remove some local change that was accidentally committed 2024-05-20 18:14:38 +00:00
pgoyette 210acb050b Don't build the compat_110 module yet - there's no release_110 with which
we can be compatable.
2024-05-20 17:32:51 +00:00
christos 576e2cd67b explain what the current and new numbering practice are. 2024-05-20 17:12:41 +00:00
sjg 146cab6498 Allow .include <> to search .CURDIR last
libc at least appears to depend on this.
2024-05-20 16:04:46 +00:00
christos 98b3419359 PR/58270: RVP: tic does not honor the user's umask, output files are 0666. 2024-05-20 14:41:37 +00:00
riastradh 67daa9c8c8 sys/modules: Don't make compat_110.
Eventually we'll need this but it doesn't make sense until 11.0 is
released.
2024-05-20 13:34:12 +00:00
riastradh 46d2beaddb xhci(4): Narrow some more variable scopes in xhci_device_isoc_enter.
No functional change intended.
2024-05-20 11:36:20 +00:00
riastradh 2ea9477c65 xhci(4): Narrow scope of variable.
Nix spurious initialization in wider scope.

No functional change intended.
2024-05-20 11:35:54 +00:00
riastradh 3595ce6c3d xhci.c: Fix confusing line break.
No functionanl change intended.
2024-05-20 11:35:36 +00:00
riastradh 7ad9adf8b9 drm: Fix missing bounds checks in dma buf mmap. 2024-05-20 11:35:10 +00:00
riastradh 73cc3a49be i915: Fix dmabuf mmap object. 2024-05-20 11:34:45 +00:00
riastradh 7ac6f056bb pci: Pass cookie through pci_find_device, pci_enumerate_bus.
New functions pci_find_device1 and pci_enumerate_bus1 have the cookie
argument.  Existing symbols pci_find_device and pci_enumerate_bus are
now wrappers for the cookieless version.

This drops the symbol pci_probe_device, in favour of a new
pci_probe_device1 with the cookie argument.  But I don't think that
requires a revbump because it's only called by MD pci_enumerate_bus1
implementations, which don't live in modules anyway.
2024-05-20 11:34:18 +00:00
riastradh ddb7e40487 t_siginfo: More volatile to prevent optimization. 2024-05-20 11:21:46 +00:00
riastradh c95d2b6372 libstdc++: Don't try to fflush stdin.
It doesn't work.  It's undefined behaviour.  On NetBSD, it will fail
with EBADF, if fd 0 isn't open for write, or if fd 0 is open for
write, it will write heap garbage to fd 0.

   If stream points to an output stream or an update stream in which
   the most recent operation was not input, the fflush function causes
   any unwritten data for that stream to be delivered to the host
   environment to be written to the file; otherwise, the behavior is
   undefined.

   (ISO C11 and ISO C17, Sec. 7.21.5.2 `The fflush function')

PR lib/58206
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114879
2024-05-20 11:20:53 +00:00
martin 5d83fcdc53 Use double quotes to include the local ./Makefile.hash 2024-05-20 09:48:42 +00:00
martin 85cbce96d9 Fix a few oversights from the renaming of dup3110 to dup3100 2024-05-20 09:37:34 +00:00
christos 545ba1d7ca Handle versions > 100 2024-05-20 04:16:48 +00:00
christos 95f4cd1417 remove dup line 2024-05-20 02:36:33 +00:00
christos cf1b9a81ef regen 2024-05-20 01:40:44 +00:00
christos 95f35978fa finish renaming __dup3110 to __dup3100 2024-05-20 01:33:39 +00:00
christos 679926ade6 Rename dup3110 to dup3100 to match historical practice for NetBSD-11,
because we already have kevent100. Fix compat_dup3 to belong in compat_100
not compat_110.
2024-05-20 01:30:33 +00:00
christos 8ba66bcbe2 Adjust to the new dup3 behavior for equal fds 2024-05-20 00:27:53 +00:00
christos eafd8a950e regen 2024-05-19 22:27:15 +00:00
christos 381b1356d0 version dup3 2024-05-19 22:25:47 +00:00
sjg c86b32d1f8 make: use separate function to include makefiles.
Have Dir_FindFile and Dir_FindInclude call FindFile with a
bool flag to indicate whether .CURDIR should be be searched at all.
2024-05-19 20:09:40 +00:00
sjg 8853c17bba Dir_FindFile treat sysIncPath and defSysIncPath as special
Rather than play games with adding .DOTLAST and then having to
exclude that from .SYSPATH, just have Dir_FindFile check if
path is sysIncPath or defSysIncPath and behave as if .DOTLAST seen
and also skip the final search of .CURDIR.

Fix Dir_SetSYSPATH to use defSysIncPath if sysIncPath is empty.
2024-05-19 17:55:54 +00:00
riastradh de0b2f54e0 linux: Add a few more cases to pci_get_class.
Should fix crash on boot with amdgpu now that the ACPI business is
enabled.
2024-05-19 17:36:08 +00:00
christos 2fc12b4c2a Amend for oldfd == newfd returning EINVAL in dup3 2024-05-19 16:04:46 +00:00
christos dad623351c PR/58266: Collin Funk: Fail if from == to, like FreeBSD and Linux. The test
is done in dup3 before any other tests so even if a bad descriptor it is
passed we will return EINVAL not EBADFD like Linux does.
2024-05-19 15:56:55 +00:00
tsutsui 2bea8b15aa Use native cd9660 blocksize to specify block numbers in cd9660.c.
This reduces diffs from src/usr.sbin/installboot/cd9660.c.
Also explicitly call cd9660_match() to get fstype->blocksize properly.
2024-05-19 15:52:34 +00:00
tsutsui 741cd576e4 Sync with src/usr.sbin/installboot/cd9660.c:
- include now properly updated cd9660_extern.h for function prototypes
  and remove them from local installboot.h
- use ISO_MAXNAMLEN rather than (BSD specific and incorrect) MAXNAMLEN
- use proper names for the secondary boot file
- appease several pointer signedness warnings (not fatal on HOST tools)
2024-05-19 15:51:30 +00:00
tsutsui 7e1194a3e4 Put a RAMDISK kernel and SYS_UBOOT into hp300 installcd to make it bootable.
This should finally close PR/54455.
2024-05-19 15:50:00 +00:00
tsutsui 4882e3f0bf Add cd9660 support to search a bootloader file in the target file system.
Also add CD boot support for hp300, using a bootloader file in cd9660 fs.
This is a tool's part to close PR/54455.

HP 9000/300 machines read LIF directory entry allocated after
the LIF volume header at the top of the boot disk during bootstrap,
and a bootstrap file must be contiguously allocated on the disk
due to limitation of the LIF specification.

Current NetBSD/hp300's bootloader is larger than ~80KB so we have
to prepare a special 'boot' partition for FFS (that has only 8KB (ffsv1)
or 32KB (ffsv2) spaces) disks to put such a large bootloader.

On the other hand, on ISO9660 fs all files are allocated contiguously
so we can specify a bootloader file in the target ISO9660 directly
in the LIF directory entry.

Note we can simply use the existing "append" option to create bootable
CD ISO for hp300, but it looks some emulators (at leaset MAME) reject
such non-standard ISO files, i.e. with an appended bootloader file at
the end of the image.
2024-05-19 15:48:57 +00:00
gutteridge 37dff36670 acronyms.comp: add SBI 2024-05-19 15:47:38 +00:00
tsutsui 448aa2ad53 Reorder function prototypes per source files. 2024-05-19 15:44:21 +00:00
tsutsui 173d80ed84 Install cd9660 related system headers for tools installboot(8) builds. 2024-05-19 15:43:24 +00:00
tsutsui 40d859218e Make cd9660_util.c usable in userland tools like installboot(8).
This was partially done for src/distrib/cdrom/macppc_installboot,
but more strict prototypes are necessary for native binary builds.
2024-05-19 15:41:53 +00:00
tsutsui 14cc0335a4 Enable SUPPORT_CD on uboot. 2024-05-19 15:39:58 +00:00
riastradh 42a8728080 ttm: Undo mistake in previous.
PR xsrc/58133
2024-05-19 13:50:04 +00:00