Commit Graph

306242 Commits

Author SHA1 Message Date
christos 1f259ef1e5 Add /dev/pipe to the spec list using IMAGESPECEXTRA 2024-05-17 20:27:09 +00:00
christos fa65999dca use IMAGERUNTIME to copy extra data instead of random pax commands 2024-05-17 20:26:48 +00:00
christos d308a2f4e0 Add IMAGERUNTIME and IMAGESPECEXTRA variables 2024-05-17 19:54:28 +00:00
nia 48b353f191 eap(4): Restore the full set of supported hardware encodings from netbsd-7
Tested in QEMU.
2024-05-17 12:20:02 +00:00
nia d833e8b264 Add some "simpler" PCI audio devices to aarch64's GENERIC64
These serve as alternatives to hdaudio.  Tested in QEMU.
2024-05-17 10:25:43 +00:00
christos 5336283700 When calling el_line make sure that we call the resizing function
callback because el_line updates the legacy LineInfo structure and
we need to notify that the cached copy of the the buffer has changed.
Of course the resizing function can call el_line itself to update
the buffer, so prevent recursion. Bug found by Peter Rufer at Arista.
2024-05-17 02:59:08 +00:00
riastradh 70dffce551 riscv: Make feraiseexcept actually raise the given exceptions.
Doing

	fexcept_t ex = 0;
	fesetexceptflag(&ex, excepts);

has the effect of _clearing_ all the exceptions in excepts.  Using
fesetexceptflag doesn't make this easier, because we would have to
record which exceptions were already raised.  So just set the fflags
bits in the fcsr register directly.
2024-05-17 02:11:07 +00:00
manu af39a49700 iWorkaround panic: fpudna from userland
i386 Xen PV domU get spurious fpudna traps from userland. Older eager FPU
contact switching code took care of ignoring them. When transitioning
from eager switching to awlays switching, this special handling was
removed, causing "fpudna from userland" panics.

This change restores the previosu behavior where fpudna traps from
userland are ignored on Xen PV domU.
2024-05-17 00:37:14 +00:00
christos f9a956b234 Add more extra stuff on the cds 2024-05-16 17:55:48 +00:00
nia db3eea83fb add additional details about how EAP_USE_BOTH_DACS works and is used
requested by uwe
2024-05-16 17:00:31 +00:00
christos f2a4ad5a9b Apply the -xx treatment to the rest of the ffs makefs invocations. 2024-05-16 15:46:42 +00:00
uwe 0aa0d85cd9 eap(4): touch up markup a bit 2024-05-16 14:41:03 +00:00
tsutsui 73e733dee4 Add -data-change-warn to MKISOFS_ARGS for macppc as done for mac68k:
https://mail-index.netbsd.org/source-changes/2023/05/19/msg144826.html
> Creating Type&Creator mappings for .bin (macbinary encoded) files,
> mkisofs changes files, then turns around and complains they have been
> changed.
>
> This is a self-inflicted wound, so demote the error to a warning.

This looks to make macppccd builds with cdrtools-3.02a10.
2024-05-16 14:21:45 +00:00
gson 12b0bef8b3 Fix typo in comment 2024-05-16 14:11:42 +00:00
ast aa0f3360a3 . Update the ASCII art timeline for the last two years
. In particular, add NetBSD 8.3 to timeline
. Add respective "publication dates" of those points in time
While here, also:
. Fix white space idiosyncracies and opt for https instead of http
. Track some changes made to the FreeBSD version of this file
2024-05-16 12:04:21 +00:00
nia 8b6d31f906 Note that EAP_USE_BOTH_DACS is deprecated in the eap(4) manual page. 2024-05-16 11:54:19 +00:00
riastradh 689d59067a riscv: More shiftiness reduction around FCSR in libc. 2024-05-16 01:02:35 +00:00
riastradh 143bae62f3 riscv: Nix shifting around FRRM and FSRM in libc too.
These read and write the floating-point rounding mode directly, not
the whole floating-point control and status register.
2024-05-16 00:56:11 +00:00
christos baab9fc215 Add missing stuff for vax 2024-05-15 16:31:35 +00:00
christos 8047228591 Factor out common stuff. 2024-05-15 16:29:53 +00:00
riastradh 6f685adcb6 usleep(3): Note the historical rake that was stepped upon.
PR 58184
2024-05-15 13:12:04 +00:00
tsutsui edc3e298c6 Fix an old bug in NATIVELABEL_ONLY case in PR/50729 by me. (sigh)
'disklabel -r -w' writes a disklabel at a wrong sector in
NATIVELABEL_ONLY && !LABELUSESMBR && LABELSECTOR != 0 case
if the target disk doesn't have a valid disklabel, due to
incorrect LABEL_OFFSET value.

Found and investigated on NetBSD/hp300 bootable CD tests.
Maybe this affects ports that use distrib/utils/x_disklabel
but have no MBR support, i.e. only NetBSD/hp300 10.0 and
NetBSD/ews4800mips 9.0 and later.

Should be pulled up to netbsd-10 and netbsd-9.
2024-05-15 12:47:22 +00:00
reinoud b1f39b6076 Fixing potential, though unlikely overflow as detected by coverity scan 2024-05-15 11:01:27 +00:00
riastradh 906e271cb3 modfl(3): Fix conversion from FreeBSD.
LDBL_MANL_SIZE is spelled EXT_FRACLBITS -- and not EXT_FRACHBITS.

PR lib/58237: modfl returns wrong answers on ld128 architectures
2024-05-15 00:02:56 +00:00
andvar e4ebea9efd fix recently committed typos by msaitoh in few more places, as well as few more.
mainly s/contigous/contiguous/ and s/miliseconds/milliseconds/ in comments.
2024-05-14 19:00:43 +00:00
christos 1a4228f94c check if the ${MACHINE} directory exists 2024-05-14 17:17:13 +00:00
christos c3d63bc897 Add the same extra stuff from amd64 2024-05-14 17:15:13 +00:00
riastradh 5e6d5edb94 t_siginfo: Use volatile to prevent optimization. 2024-05-14 16:10:54 +00:00
riastradh fc245f77a0 t_siginfo: No SIGFPE on RISC-V. 2024-05-14 16:10:14 +00:00
riastradh fc5f862a3e t_ptrace_wait: No FPU exception traps on RISC-V.
This macro is not named correctly -- RISC-V does implement
floating-point exceptions, but only via sticky status bits, not via
machine traps.
2024-05-14 16:06:20 +00:00
riastradh c4f7f3bcf7 t_ptrace_wait: Force result by write to volatile, not call to usleep.
This is causing each FPE-related test to time out because it's
actually passinga large number to usleep, which now respects large
numbers.
2024-05-14 16:04:17 +00:00
riastradh fd16ce12c7 tests/kernel/h_segv: Disable SIGFPE test on RISC-V.
No floating-point exception traps on RISC-V.

Also don't pass the result of divide-by-zero converted to integer to
usleep.  Although the floating-point result of divide-by-zero is
well-defined by IEEE 754 (+/-infinity), the outcome of C conversion
to integer is not.  And while on some architectures this might return
zero, on RISC-V it looks like it'll return all bits set.  And as of
PR 58184, usleep now honours sleeps longer than 1sec, which means
this will be waiting at least two billion microseconds, or about half
an hour...

So instead, just write the result to a volatile variable.
2024-05-14 15:54:16 +00:00
riastradh e14c40965f t_ilogb: Nix spurious line break in ATF_CHECK_MSG. 2024-05-14 15:31:42 +00:00
riastradh 3fd343c9a6 riscv: No volatile needed on asm to _read_ rounding mode, exceptions.
These instructions can be omitted if the return values are unused.
In contrast, _writes_ to the rounding mode or exceptions must not be
omitted (even if we ignore the return value, which is the old value
of the field).

I think "memory" is the wrong clobber on these asm blocks too; they
can't be reordered around _floating-point_ instructions, while
reordering around loads and stores is fine.  But I don't know how to
spell the right thing in gcclish.
2024-05-14 15:17:57 +00:00
riastradh 5830d5d1cf riscv: Fix reading and writing frm and fflags.
The FRRM/FSRM and FRFLAGS/FSFLAGS instructions do all the masking and
shifting needed -- __SHIFTIN/__SHIFTOUT is wrong.
2024-05-14 15:16:51 +00:00
christos 5685bf84e6 Add the extra spec for the amd64 cdroms 2024-05-14 14:58:41 +00:00
christos aa283a51b7 Put back -xx (this will break some archs but we'll fix them) and automatically
generate the spec for the machine-specific portions of the cdrom.
2024-05-14 14:58:05 +00:00
christos 5c7c1d2b1c Allow specific subdirectories to be added to the list 2024-05-14 14:57:08 +00:00
riastradh 71e5ba3aae t_fpsetmask, t_fenv: Skip fp exception trap tests on RISC-V.
No architectural support for fp exception traps.

While here, make the macros behave a little better as C statements.
2024-05-14 14:55:43 +00:00
riastradh 26e8a868b4 libm: Fix powerpc64 build.
- Include fenv.c and fma(3) symbols (which just use the FMADD
  instruction).
- Note the .FN symbols in libm for the asm functions.  The FN symbols
  point at the function _descriptors_; the .FN symbols point at the
  first instruction of the function.

XXX Unclear why we have the .FN symbols for asm functions but not for
C functions.  I'm not sure we should be exporting them.
2024-05-14 14:34:35 +00:00
riastradh 2c76d2e0d2 tpm(4): device_printf needs \n.
Observed in PR 58255.
2024-05-14 13:41:15 +00:00
uwe 43b4276855 curses_input(3): bump date for define_key() change 2024-05-14 10:40:41 +00:00
uwe deeae7c15b curses_termcap(3): fullname() termbuf argument is const 2024-05-14 10:38:16 +00:00
uwe 97b9891f11 curse: constify define_key() argument
define_key() is ncurses extension and ncurses defines its first
argument as "const char *".  Follow suit.

PR lib/58254
2024-05-14 10:22:48 +00:00
gutteridge 1290da4db3 echo.1: borrow advice about printf(1) from the OpenBSD man page 2024-05-14 01:32:24 +00:00
gutteridge 4a48b9962f creds_msdos.8: consistently include a hypen in "MS-DOS" 2024-05-13 23:10:47 +00:00
nia ac38847e11 also exclude DRM_LEGACY from the ISA kernel 2024-05-13 21:50:47 +00:00
rillig e79ba06d10 libc/hdtoa: suppress lint warning about possible accuracy loss
on sparc64: hdtoa.c(340): warning: conversion from 'unsigned long'
    to 'char' may lose accuracy [132]
2024-05-13 21:17:24 +00:00
rillig e040c24146 usr.sbin/flashctl: skip lint's strict bool mode with Clang
The strict bool mode is already checked in GCC mode, so restore the
previous idiomatic code.
2024-05-13 20:38:05 +00:00
rillig 7e2cd5d094 tests/t_hypot: actually add nan test 2024-05-13 20:28:15 +00:00