Commit Graph

164674 Commits (trunk)

Author SHA1 Message Date
skrll 942f913628 Add more ABI register defines - should have been committed with previous
change.
2024-05-31 13:11:41 +00:00
riastradh 9017c2c0e2 nd_timer: Update la_numheld when we clear la_hold (a.k.a. ln_hold).
Followup for PR kern/58297 fix.  Patch by mlelstv@.

PR kern/58301
2024-05-30 23:00:39 +00:00
msaitoh 588e74af68 Move RECOVERY_MODE feature test code for readability. No functional change.
ixgbe.c rev. 1.169 inserted RECOVERY_MODE feature test in between
 MSI-X allocation and legacy allocation. To improve code readability,
move it to earlier location.
2024-05-30 08:55:02 +00:00
christos 646e9b4018 should not be using .include <> but .include "" here. 2024-05-29 18:58:00 +00:00
mlelstv 38f30d04ac The module also needs the syscall for old dup3. 2024-05-29 06:47:23 +00:00
riastradh 256d995a31 New make(1) variable NETBSD_REVISIONID in the NetBSD build.
This is intended to be a tree-wide revision identifier, like a commit
hash or similar.  This way, in builds from non-CVS trees where
per-file $NetBSD$ revision ids aren't incremented, we can still track
some version provenance of files with ident(1).

If defined, bsd.own.mk adds a macro _NETBSD_REVISIONID to CPPFLAGS
with the stringified text of NETBSD_REVISIONID.

In turn, if _NETBSD_REVISIONID is defined in sys/cdefs.h, then
__RCSID will put the concatenation of:
- `$NetBSD: '
- the file name
- ` '
- _NETBSD_REVISIONID
- ` $'
alongside the per-file revision id passed as an argument to __RCSID.

Since this is passed through command-line arguments, it doesn't cause
make to consider any dependencies to change when the revision id
changes -- so incremental builds remain incremental.  And if you
don't set it, nothing changes from the __RCSID we had before.

Currently nothing sets NETBSD_REVISIONID automatically yet -- subject
to experimentation.  Could just be verbatim commit hash, or could be
longer `hg identify' output -- or, in git, with the help of tags,
could be `git describe --dirty' output like

10.99.10-2924-gd01834fb75de

(or `10.99.10-2924-gd01834fb75de-dirty' if the working tree is dirty)
for the commit at
https://mail-index.netbsd.org/source-changes/2024/05/24/msg151526.html
which is 2924 linear commits after the commit bumping sys/param.h to
10.99.10 and (in the current git conversion) had commit hash starting
with d01834fb75.  This may require some discipline around branching
and tagging but it's worth a shot -- we'll see.

Based on a patch from joerg@ a while ago.
2024-05-29 02:06:45 +00:00
riastradh c5ebb1a017 nd_resolve: Maintain la_numheld.
Otherwise lltable_drop_entry_queue never drops anything.

Addresses mbuf leak, PR kern/58297.
2024-05-28 22:15:22 +00:00
macallan 7b1ec3e342 - initialize bootpath
- if we don't get anything useful from args, check /chosen
now my G5 finds its boot device even when netbooting a kernel directly
2024-05-28 11:06:07 +00:00
skrll 8a296fe039 Change MIPS to RISC-V. 2024-05-28 06:57:03 +00:00
nia 7d8e907f96 audio(4): Handle delta == 0 in audio_volume_(up|down).
These functions are used by the pmf power handler functions to deal
with keyboard volume up/down key presses.

However, delta is optional, and may not be returned by certain hardware
drivers, including the earliest reference drivers (it is unlikely that
these are used on any systems with pmf volume keys on the keyboard,
but still).

XXX it may make sense to have 16 as a minimum bound for delta, since
pressing the volume up key on a keyboard 255 times doesn't sound
particularly fun.
2024-05-27 02:47:53 +00:00
riastradh 2fef80593e ucontext.h: Expose __UCONTEXT_SIZE to userland.
But don't expose __CTASSERT(__UCONTEXT_SIZE == sizeof(ucontext_t)) to
userland.

- __UCONTEXT_SIZE will be needed soon by libc and signal trampolines
  in order to version ucontext so we can safely expand it with
  architecture extensions.

- __CTASSERT is not safe to use in header files in arbitrary
  compilation environments (although in the NetBSD kernel build it is
  safe).  Exposing the __CTASSERT in a header file used by userland
  appears to have the side effect of breaking the Firefox build in
  rustc, though the mechanism isn't entirely clear.

Firefox/rustc discussion here:
https://mail-index.netbsd.org/pkgsrc-users/2024/05/18/msg039578.html

Let's see if this makes a difference -- if it works, great; if not,
maybe it will help us to narrow down what's happening with rustc and
Firefox.
2024-05-25 13:44:48 +00:00
tsutsui 3ba972454a Appease warnings on building tools/installboot on Cygwin. 2024-05-25 06:27:57 +00:00
andvar 1d73fad095 s/onbord/onboard/ in comment. 2024-05-24 20:13:37 +00:00
andvar 1735e5d485 s/boradcast/broadcast/ in comment. 2024-05-24 20:09:09 +00:00
andvar d17abd87ec s/borad/board/ in comments. 2024-05-24 20:06:55 +00:00
rillig 8e4fd6997e pmax/kn230.h: fix typos and spacing in comments 2024-05-24 19:00:27 +00:00
ryoon c4cfd333d3 Move __UCONTEXT_SIZE inside _KERNEL like before
Fix pkgsrc/lang/rust runtime SIGILL error during pkgsrc/www/firefox build.
2024-05-24 13:50:30 +00:00
andvar 0fe2e3a1b4 s/separare/separate/ and s/separete/separate/ in comments. 2024-05-23 08:52:06 +00:00
andvar 19387f230c fix typos in comments. 2024-05-23 08:30:51 +00:00
skrll 6914ee8e71 Trailing whitespace. 2024-05-23 06:14:12 +00:00
skrll 47d1a346b9 sgimips: call mips_vector_init earlier to fix boot.
PR port-sgimips/58269
2024-05-23 06:11:14 +00:00
pgoyette 76ce3e0f3f Get the case right when reverting local changes 2024-05-23 06:10:03 +00:00
pgoyette a0c1e9831a Remove some more accidental local changes 2024-05-22 17:20:45 +00:00
riastradh 4efeea51c6 linux_xa: Delete and replace collision in xa_store as intended.
Don't free the colliding node that's still in the tree.

Noted by rjs@.
2024-05-22 15:59:25 +00:00
riastradh 48e3cda1b4 drm_gem.c: Enable drm_gem_fence_array_add now that we emulate xa. 2024-05-22 15:59:12 +00:00
riastradh c1ba05c351 drm_gem.c: Fix sense of assertion.
This is the opposite of WARN_ON.

Noted by rjs@.
2024-05-22 15:47:18 +00:00
nia f5ded4340f eap(4): re-organize mixer controls to put classes first
some software (understandably) doesn't like it if you declare a
mixer node's child before the parent, notably ossxmix in pkgsrc
2024-05-21 22:47:11 +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
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
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
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
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 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 eafd8a950e regen 2024-05-19 22:27:15 +00:00
christos 381b1356d0 version dup3 2024-05-19 22:25:47 +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 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 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