Commit Graph

306258 Commits (trunk)

Author SHA1 Message Date
andvar 7b6cdeb9a1 s/abou/about/ in comment. 2024-05-18 19:04:45 +00:00
andvar 9d70975e70 s/Aborb/Absorb/ in comment. 2024-05-18 19:03:31 +00:00
christos 3c6141f6f3 include all extra flavors of the kernel and use the proper variable for
the machine dependent installation directory.
2024-05-18 02:03:17 +00:00
thorpej e4214c824f If <sys/mcontext.h> does not define __UCONTEXT_SIZE, define it as
sizeof(ucontext_t).
2024-05-18 01:21:42 +00:00
thorpej d8a1d80a31 Define the _UC_* flag bits before including <sys/mcontext.h>. 2024-05-18 01:16:21 +00:00
thorpej 1853c81a61 Clean up the <sys/ucontext.h> <-> <machine/mcontext.h> interface up
a little:
- Define _UC_MD_BIT* constants for the available machine-dependent bits,
  and use those constants to define the machine-dependent bits as well
  as the machine-independent bits that have machine-dependent values.
- Explicitly generate an error if _UC_TLSBASE, _UC_SETSTACK, or
  _UC_CLRSTACK are not defined by <machine/mcontext.h>.
2024-05-18 00:37:40 +00:00
thorpej 286a759751 Remove unnecessary include of <sys/malloc.h>. 2024-05-18 00:05:50 +00:00
thorpej c79d399c24 Remove unecessary include of <sys/malloc.h>. 2024-05-18 00:05:18 +00:00
thorpej 0ad7109896 Remove unnecessary include of <sys/malloc.h>. 2024-05-18 00:04:46 +00:00
thorpej 002d97bff0 Move the include of <sys/malloc.h> to where it's truly needed. 2024-05-18 00:04:01 +00:00
thorpej 4ea2e44bb6 Remove unnecessary include of <sys/malloc.h>. 2024-05-17 23:57:46 +00:00
thorpej 64a52938bd <sys/mallocvar.h> -> <sys/malloc.h> 2024-05-17 23:56:24 +00:00
uwe a9c500b2e8 curses: constify newterm() and setterm() arguments
newterm() argument is const in the spec, so this fixes our
conformance.

setterm() is not in the spec, but it's natural and in ncurses its
argument is const too, so follow suit.

Doesn't change the ABI, so no bump required.

ok blymn@
2024-05-17 23:32:50 +00:00
thorpej a7aa342f5e G/C MDP_AST -- it's not referenced anywhere. 2024-05-17 22:21:17 +00:00
thorpej e71269a14e Implement _UC_SETSTACK / _UC_CLRSTACK. 2024-05-17 21:37:07 +00:00
christos 9a57126d1c use IMAGESPECEXTRA to include libdata and don't include IMAGERUNTIME 2024-05-17 21:31:10 +00:00
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