Commit Graph

306384 Commits

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
rillig 0fbf3fce65 tests/make: replace or document .error in tests
The text 'Missing argument for ".error"' in an .exp file may be a hint
for an accidentally broken test, so eliminate them as far as possible.
2024-05-31 07:13:12 +00:00
rillig 72b6692e9f make: simplify expression in iteration over hash tables 2024-05-31 07:11:12 +00:00
rillig 2864ddb2e9 make: clean up API for iterating over hash tables 2024-05-31 05:50:11 +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
rillig 880d6717fe make: don't log anything when freeing memory 2024-05-30 21:50:34 +00:00
skrll 95bbc8c712 Annotate the RISC-V signal trampoline with CFI attributes. 2024-05-30 15:56:43 +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
msaitoh f6e78d1295 Fix previous comment fix.
It seems that the work "yppush" was not duplicated.
It was two sentences without period. To make it clear,
add a colon and a newline. Found by rillig@.
2024-05-30 03:33:31 +00:00
christos 646e9b4018 should not be using .include <> but .include "" here. 2024-05-29 18:58:00 +00:00
christos 2e795eb86e Improve robustness (from kre@) 2024-05-29 13:35:12 +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
sjg e78cefbe42 make: allow debugging the warning about .OBJDIR
When make complains about an unwritable .OBJDIR
it is not always obvious how we derrived that value.

If MAKE_DEBUG_OBJDIR_CHECK_WRITABLE is enabled call PrintOnError
so we can examine variables that are likely relevant.

Fix description of MAKE_OBJDIR_CHECK_WRITABLE in make.1
2024-05-28 19:09:04 +00:00
christos 5c694b5ef7 handle library names that contain a period. 2024-05-28 16:20:34 +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
thorpej 7c0fd13281 Mark as expected-fail on VAX (PR port-vax/58290). 2024-05-27 22:03:21 +00:00
uwe 463a9e2dfe curses: init old_mode to 1 (normal visible cursor)
PR bin/58090: Ctrl-Z, fg makes blinking cursor in vi
ok blymn@
2024-05-27 14:30:43 +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
nia f629fac4ce audio.4: Document how the "delta" affects setting mixer levels.
Explicitly say that "delta" is optional and may be zero. While this
hasn't previously been specified anywhere (to my knowledge), the best
de-facto specification we have (sb and mixerctl source code) points
towards the historical practice being there.
2024-05-27 02:39:15 +00:00
nia 1efd13166e urtwn.4: List more supported devices 2024-05-26 09:27:20 +00:00
rillig f3426a08ed make: use fewer technical terms in debug message for dependency 2024-05-25 22:08:35 +00:00
rillig f80730c1d3 make: replace magic numbers with POSIX FILENO constants
No binary change.
2024-05-25 21:34:38 +00:00
rillig e67daf6e75 tests/make: rename temporary file
The filename extension '.inc' is reserved for files that are checked
into version control.
2024-05-25 21:11:30 +00:00
rillig 734fc80208 make: fix memory leak for command strings 2024-05-25 21:07:48 +00:00
rillig cd90f040db make: minimize local variables around a vfork call
Passing all relevant values as arguments allows to remove the 'volatile'
qualifiers.
2024-05-25 15:37:17 +00:00
martin f9eb578e4a More rump markers 2024-05-25 14:11:20 +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
rillig c05c85b7d7 make: fix some more memory leaks 2024-05-25 08:03:19 +00:00
tsutsui 3ba972454a Appease warnings on building tools/installboot on Cygwin. 2024-05-25 06:27:57 +00:00
rillig dd76681b7b make: fix a few more memory leaks 2024-05-25 00:00:25 +00:00
rillig 0ab57ba387 make: in -DCLEANUP mode, free variables and their values
The variables in the 3 scopes must be freed before the scopes themselves
are freed by Targ_End.

The test opt-m-include-dir creates a directory of the form '*.tmp', thus
it must be removed before attempting to only remove regular files of
this name.

POSIX requires setenv to copy the passed name and value, so there is no
need to keep that memory allocated any longer.
2024-05-24 23:02:46 +00:00
rillig e3cf24f959 make: remove dead code from HashTable_DeleteEntry 2024-05-24 22:54:07 +00:00
rillig 9755e146fc make: remove trailing whitespace 2024-05-24 22:52:24 +00:00
andvar a310e615a3 s/SO_ACCEPTFITLER/SO_ACCEPTFILTER/. 2024-05-24 21:55:13 +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
roy 98af55aed4 dhcpcd-10.0.8 2024-05-24 16:10:21 +00:00
roy 76a8def0a9 Sync with dhcpcd-10.0.8 2024-05-24 16:09:09 +00:00
roy ed7347c8ff Update to dhcpcd-10.0.8 with the following fixes:
* Fixed compile without ARP
 * Fixed spelling of ADVERTISEMENT
2024-05-24 16:07:42 +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
tsutsui 1de614c8d0 Remove installboot(8) calls against emips install media.
XXX: maybe we should also remove blindly copied bootxx binaries.
2024-05-24 13:26:35 +00:00
roy fbd3b54657 Note import of dhcpcd-10.0.7 2024-05-24 11:33:04 +00:00
roy 31430cea00 Sync with dhcpcd-10.0.7 2024-05-24 11:30:29 +00:00
roy 4dcbd9d51d Update to dhcpcd-10.0.7 with the following changes:
* DHCP: use request_time, fallback_time and ipv4ll_time rather than reboot timeout
* DHCP6: Wait for IRT to elapse before requesting advertisments
* DHCPv6: Don't re-INFORM if the RA changes
* privsep: Reduce fd use
* dhcpcd: Add support for arp persist defence
* Move dhcp(v4) packet size check earlier
* Define the Azure Endpoint and other site-specific options
* add RFC4191 support by @goertzenator in #297
* dhcpcd: Respect IPV6_PREFERRED_ONLY flag regardless of state
* Fix time_offset to be int to match RFC-2132
* hooks/30-hostname: Exit with 0 if setting hostname is not needed
2024-05-24 11:28:00 +00:00
tsutsui d01834fb75 Pull sharable src/usr.sbin/installboot/cd9660.c. 2024-05-24 10:13:44 +00:00