Commit Graph

305319 Commits

Author SHA1 Message Date
mlelstv 3fb2741729 Don't use uninitialized variable.
Fixes PR 57895.
2024-03-09 13:48:50 +00:00
rillig 73c14755e5 lint: inline accessor macros for type_t 2024-03-09 13:20:55 +00:00
riastradh 5e64afbae8 wg(4): Spruce up example a bit.
- Suggest umask so the private keys aren't world readable.
- Suggest use of pre-shared key files.
- Use TEST-NET-1 and TEST-NET-2 addresses for the example instead of
  real publicly routable addresses.

Holding off on adding IPv6 example until the tun(4) issue is fixed
(PR bin/58013).

PR misc/58015
2024-03-09 12:36:07 +00:00
isaki 2cd310f610 Fix a null dereference (on attach failure).
During cleanup, setup_queue may be called even before vsc->sc_vqs is assigned.
2024-03-09 11:55:59 +00:00
isaki 445fbf37f2 Fix a null dereference.
free_interrupts may be called even when sc_ih has not been assigned yet.
2024-03-09 11:16:31 +00:00
rillig 0644d39b2d lint: clean up comments, use typedefs 2024-03-09 11:05:05 +00:00
isaki fd455effe3 Modify a confused expression in ld_virtio_attach().
VIRTIO_BLK_MIN_SEGMENTS should be the total number of non-data segments,
so I rename it to VIRTIO_BLK_CTRL_SEGMENTS.
PR kern/57981.
2024-03-09 11:04:22 +00:00
rillig 15d27de1fa lint: internally store case label values in order of appearance 2024-03-09 10:54:12 +00:00
rillig 70f9d5c54d lint: remove unneeded checks for left and right operands 2024-03-09 10:47:16 +00:00
rillig 5a97e61464 lint: use fewer struct keywords 2024-03-09 10:41:11 +00:00
mrg 4072902f97 drm(4): make pr_debug equivalent to aprint_debug
significantly reduces the default spam from amdgpu(4).
2024-03-09 09:55:52 +00:00
mrg cec94d4f24 skip this subdir for "make includes".
it's excessively slow and does nothing (nor should it.)
2024-03-09 06:53:48 +00:00
rillig 3f5e8f7d32 postinstall: fix endless loop (since 2024-03-07) 2024-03-09 06:51:40 +00:00
mrg d5af1f8fb3 avoid rebuilding texi files in the read-only source tree 2024-03-09 06:51:24 +00:00
mrg aa397e14a2 allow XZ_OPT to be overriden. 2024-03-09 06:50:15 +00:00
riastradh 0ccbdf5555 pmf(9): Document the bug in pmf_device_register return type.
PR kern/57575
2024-03-09 05:22:05 +00:00
riastradh c4eba877ac heartbeat(9): Return early if panicstr is set.
This way we avoid doing unnecessary work -- and print unnecessary
messages -- to _not_ trigger another panic anyway.

PR kern/58011
2024-03-08 23:34:03 +00:00
rillig 88b554245c cpuctl: fix i386 bit descriptions for CPUID_SEF_FLAGS1
warning: non-printing character '\31' in description
    'BUS_LOCK_DETECT""b\31' [363]
2024-03-08 20:29:17 +00:00
rillig 856bcfe408 ifconfig: fix agr status
Previously, when the interface was collecting, its status was reported
as '<COLLECTING,DISTRIBUTING>', even when it was not distributing.

sbin/ifconfig/agr.c(170): warning: 'b\0DISTRIBUTING\0' overlaps earlier
    'b\0COLLECTING\0' on bit 0 [376]
2024-03-08 19:45:59 +00:00
mrg 1498001423 give some anonymous structures names 2024-03-08 07:05:02 +00:00
mrg b4c3b934ba audio_wav_parse_hdr(): avoid buffer overreads and clean up
reimplement most of this function using a new method of buffer
management to ensure that we never read beyond the provided size.

properly handle RIFF chunk lengths, instead of assuming various
offsets from most files are right.

update list of consumed documentation and fill the list of WAVE
formats from RFC 2361 (most remain not supported.)

should fix PR#57973.

tested against a large number of .wav files i have handy and with
a testsuite generator that should be incoming soon.
2024-03-08 06:57:59 +00:00
gutteridge d8c86e1768 sysctl.7: simplify statements about net.inet6 variables 2024-03-07 23:03:55 +00:00
christos 81e2be5eb1 Add _dlauxinfo.3 2024-03-07 22:15:52 +00:00
christos e2930fdd86 Add _dlauxinfo 2024-03-07 22:14:20 +00:00
christos fd2cfa10fe no local in loops, simplify eval (thanks kre) 2024-03-07 22:03:16 +00:00
christos d57953e9b2 pass lint on sparc64 where int_fast32_t is long. 2024-03-07 20:42:04 +00:00
christos c1843a3608 Make sure that the extra field is maximally aligned since it is used for
other struct storage.
2024-03-07 17:10:37 +00:00
christos 2a38a1154f - fix named.conf (remove dnssec-enable option)
- use proper local variables instead of adding _ or other prefixes.
- centralize rm use
- use grep -q instead of > /dev/null
- reduce constant duplication
2024-03-07 16:54:16 +00:00
christos 04af249a7e remove obsolete option "dnssec-enable" 2024-03-07 14:21:03 +00:00
gutteridge 43f3dea196 3RDPARTY: autoconf is at 2.72 now 2024-03-07 00:35:10 +00:00
cnst 76d3c3c18a wwanc(4): amend Nd; Xr from pci(4) 2024-03-06 22:18:56 +00:00
andvar 2ddc9e7fa6 s/horizontaol/horizontal/ in comments. 2024-03-06 20:18:42 +00:00
andvar 1c79931e30 Fix few typos in comments. 2024-03-06 20:02:24 +00:00
andvar ee1106db37 s/lader/loader/ in comments. 2024-03-06 19:48:53 +00:00
wiz 0898e66884 new llvm out 2024-03-06 17:44:48 +00:00
thorpej b07295a08c Tidy up TLSB autoconfiguration just a bit. 2024-03-06 13:37:35 +00:00
macallan 711ef3cdc9 if the framebuffer is wider than the visible area, use the full width for the
glyphcache
2024-03-06 08:19:44 +00:00
thorpej bec13c02f2 Alpha systems based on the "Laser" and "TurboLaser" system architecture
have an interesting feature: the RTC and console UART are present on each
CPU module, but only those peripherals on the "primary" CPU module matter,
because each CPU's module's periperals are mapped to the same physical
address, but are only accessible by that CPU module.  The firmware selects
a primary CPU to boot the system, and that CPU's RTC and UART are the
system RTC and console, respectively.

To handle this, on systems where it's needed, we wrap the RTC gettime/settime
calls and, if not running on the primary CPU already, cross-call to the primary
to perform the RTC access.
2024-03-06 07:34:11 +00:00
thorpej e5696cfb37 Statically initialize the PRIMARY and RUNNING flags in cpu_info_primary. 2024-03-06 07:22:45 +00:00
thorpej e3581e4323 Wrap the mcclock driver's mc146818_softc inside a new mcclock_softc.
This commit represents no functional change, but forms the basis for
a future functional change.
2024-03-06 06:30:48 +00:00
thorpej 5216fa0690 bus_space-ify. 2024-03-06 05:44:44 +00:00
thorpej 8eb9eddb64 Add a bus space implementation for the Gbus, the general 8-bit bus present
on Laser / TurboLaser CPU modules.
2024-03-06 05:33:09 +00:00
thorpej c88858f459 Expose mc146818_{get,set}time_ymdhms() and allow a front-end to override
these function pointers in the TODR handle, allowing the front-end to
wrap mc146818_{get,set}time_ymdhms() with special handling, if needed.
2024-03-06 02:31:44 +00:00
rillig 975564f36a tests/make: clean up test for local scope variables
Use the same style of quotes for both kinds of variables.  To make the
variable values more easily comparable, write them to a single line.
Add the output to the 'expect' lines.
2024-03-05 23:07:58 +00:00
thorpej 7dff59c837 Revert previous until I can diagnose a failure reported by gson. 2024-03-05 20:59:41 +00:00
andvar bfb11cbc46 Remove duplicate "when" word in comments. 2024-03-05 20:58:05 +00:00
thorpej 3302173255 Early in main(), assert that curcpu() evaluates as the primary CPU and
stash away a pointer to it as the boot CPU for quick reference later.
2024-03-05 14:39:29 +00:00
thorpej 98b1abc7d3 Rename the local "boot_cpu" variable to "uvm_boot_cpu". 2024-03-05 14:33:50 +00:00
thorpej f36002f244 Move the at-shutdown call to resettodr() from cpu_reboot() to kern_reboot().
It's a small step, but it's a step.
2024-03-05 14:15:28 +00:00
skrll 1133f3440c Change the PMAP_STEAL_MEMORY debug output from aprint_debug.
The new printfs are conditional on pmap_stealdebug and the DEBUG compile
option. The former defaults to true, but can be changed at a boot -d ddb
prompt.
2024-03-05 13:16:29 +00:00