Commit Graph

297949 Commits

Author SHA1 Message Date
rin 1ee115b07b fpu_sub(): Do not invert sign bit of NaN.
Taken from FreeBSD:
https://cgit.freebsd.org/src/commit/lib/libc/sparc64/fpu?h=releng/12.3&id=8ff9d52cd08cbf31efde4052d3593a5680eaa2a5
2022-09-06 23:07:53 +00:00
rin ec355093e8 fpu_mul(): Do not multiply sign bits for NaN. 2022-09-06 23:05:52 +00:00
rin 4e951a735c Fix priority for NaN propagation: frA > frB > frC. 2022-09-06 23:04:08 +00:00
rin ef68c18761 FPU generates QNaN with all payload bits being cleared. 2022-09-06 23:02:36 +00:00
rin 3f96faabf6 IEEE 754 and Power ISA require sqrt(+0) = +0 and sqrt(-0) = -0, not Inf. 2022-09-06 23:00:43 +00:00
gutteridge 9b526a4356 posix_openpt.3: add caveats about oflags
The NetBSD implementation differs from other BSDs in that it does not
return EINVAL if invalid oflags are submitted, since it completely
ignores them. This is surprising to upstream projects that may expect
otherwise.
2022-09-06 22:54:41 +00:00
phx 78422e2eab Update loadbsd source and distribution binary to version 3.2.
Including the following changes by Gunther Nikl:
- Added detection of A600.
- Fix handling of multiple -n options.
Make it compile with recent AmigaOS gcc ports (for example gcc6), as
older ports no longer work with current NetBSD header files.
2022-09-06 17:50:18 +00:00
pgoyette e24002baa0 Resequence the sysctl_setup and evcnt stuff so that they always occur
_before_ the module's MODULE_CMD_INIT call.  Also update the unload
code to invoke the sysctl_setup and evcnt stuff _after_ the module's
MODULE_CMD_FINI call.  This makes the behaviour and order consistent
whether the module is built-in or loaded at run-time.

As reported by riastradh@
2022-09-06 13:31:09 +00:00
skrll 01e56d5da0 Use the ACPICA define ACPI_DBG2_16550_WITH_GAS 2022-09-06 11:55:51 +00:00
skrll ff4e9f7008 pcihost: Track MSI/MSI-X interrupt handlers.
Track the MSI/MSI-X interrupt handlers so that fdtbus_intr_disestablish
doesn't get called for them.

This avoids a KASSERT firing when using 'drvctl -d' on a pci device that
uses MSI/MSI-X interrupts.
2022-09-06 11:55:07 +00:00
nat 8da94dbc75 Don't hold a spin lock entering usbd_transfer.
This avoids a crash found with LOCKDEBUG.
2022-09-06 02:31:08 +00:00
nat 2a53858da7 Do a full screen update upon vt switch. 2022-09-06 02:28:35 +00:00
nat 6363165435 Ensure the device is fully initialized before starting the update thread. 2022-09-06 02:26:11 +00:00
nat bc47b06a16 Don't throttle the frame rate.
Throttling of the frame rate is no longer necessary as most screen updates are
now partial updates.
2022-09-06 02:23:50 +00:00
nat 3b0c992f8b Finally fix the blitting function.
This means better performance for mostly static displays.
Full screen updates are still done five times a second.

Introduce a new variable sc_clear to force a full update.
2022-09-06 02:20:17 +00:00
msaitoh 6f7c2065d5 Fix compile error. Compile test only. 2022-09-06 01:44:24 +00:00
rillig 33a45076d3 make.1: clarify interpretation of conditionals
String literals in quotes are never interpreted as numbers.

The operators '<', '<=', '>', '>=' are only allowed in numeric
comparisons.

Avoid the term 'C relational operators' since in C, the relational
operators exclude '==' and '!=', which are called equality operators
instead.
2022-09-05 17:13:36 +00:00
wiz ef7e7fa51d Fix logic error in pktq_set_maxlen() description.
Ok thorpej@
2022-09-05 16:42:59 +00:00
riastradh eaa1197a35 x86: Fix interaction between consinit, device_pci_register, and drm.
Leave an essay on what's going on here in both places with
cross-references.

PR kern/56996
2022-09-05 14:18:51 +00:00
tsutsui 355f6c61dc G/C ISSET() macro copies. It has been defined in <sys/types.h> since 2006. 2022-09-05 14:14:42 +00:00
wiz 71775cae4f pkgqueue(9): fix some nits, remove trailing whitespace 2022-09-05 09:18:39 +00:00
msaitoh 6b1341f045 G.C. No functional change. 2022-09-05 04:52:53 +00:00
msaitoh 4b75ca3e5c Print oqdrops correctly. 2022-09-05 02:26:22 +00:00
rin 1dc18a6de2 Clean up fpu_extern.h; only a function public to external is fpu_emulate().
Other functions are private to fpu_*.c and therefore live in fpu_emu.h.

Also, drop needless forward struct declarations.

NFC.
2022-09-05 00:27:16 +00:00
rin d95d2a1bb2 static-fy fpu_execute(). 2022-09-05 00:25:18 +00:00
rin f3fb761392 static-fy fpu_[ixsd]tof(). NFC. 2022-09-05 00:24:24 +00:00
msaitoh 2027ab564f Get if_data correctly when kvm is used. 2022-09-05 00:18:25 +00:00
thorpej 2b30b85b73 Fix "MPLS handled this" detection logic in the rump environment. 2022-09-04 23:34:51 +00:00
rillig 5cef7ec253 make: add more details to error message for numeric comparison
Before:
String comparison operator must be either == or !=

After:
Comparison with '>=' requires both operands 'no' and '10' to be numeric

Noticed by martin@ in pkgsrc/textproc/py-pygments.
2022-09-04 22:55:00 +00:00
rin 09399eea1c Unconditionally include <sys/systm.h> for KASSERT{,MSG}().
Fix (!DIAGNOSTIC && !DEBUG) build.
2022-09-04 22:34:58 +00:00
mlelstv 8e20f85d38 revert 1.281
VNDIOCLR requires write access to unconfigure a unit, even when the unit
is read-only.
2022-09-04 21:56:38 +00:00
thorpej 221afdb85b Document the pktqueue interface. 2022-09-04 21:37:50 +00:00
thorpej a2e7052758 Sort. 2022-09-04 20:06:26 +00:00
thorpej 06a0da98f2 In pktq_flush():
- Run a dummy softint at IPL_SOFTNET on all CPUs to ensure that the
  ISR for this pktqueue is not running (addresses a pre-existing XXX).
- Hold the barrier lock around the critical section to ensure that
  implicit pktq_barrier() calls via pktq_ifdetach() are held off during
  the critical section.
- Ensure the critical section completes in minimal time by not freeing
  memory during the critical section; instead, just build a list of the
  packets pulled out of the per-CPU queues and free them after the critical
  section is over.
2022-09-04 17:34:43 +00:00
skrll b20f028b5e Revert previous
kern/56994: wm(4) panic on attach in interrupt_distribute, sometimes
2022-09-04 16:01:25 +00:00
rjs 2434a4afee Add standard inet headers. 2022-09-04 15:59:08 +00:00
rin 2914f9caba Trailing white-space/TAB. 2022-09-04 13:32:14 +00:00
rin 995c865b03 Simplify; no need to override ``type'' here. NFC. 2022-09-04 13:18:33 +00:00
rin b8d99318a1 Simplify logic to remove needless goto. NFC. 2022-09-04 13:17:33 +00:00
rin 53d5668d14 Update FR and FI (and undefined FPRF) for ``round to integer'' insns. 2022-09-04 13:16:47 +00:00
rin 41cf117bb3 Fix logic for FI, FR, and FPRF fields of FPSCR.
They are not sticky bits and updated by arithmetic and round
insns at the same time.

Comparison insns update only FPCC sub-field of FPRF.

For other insns, these field are left untouched.

Also, for single-precision insns, exception bits should be set by
the first fpu_implode(), which rounds the value to float.
2022-09-04 13:14:57 +00:00
bouyer 85e4c28d0a Release mutexes earlier in xenevt_free(), to call *destroy and kmem_free
without holding spin locks. Fixes an occasional deadlock seen when the qemu
backing a HVM domU exits.
2022-09-04 11:20:33 +00:00
skrll b175d49156 pcihost: Don't call fdtbus_intr_disestablish for MSI/MSI-X interrupts.
This avoids a KASSERT firing when using 'drvctl -d' on a pci device that
uses MSI/MSI-X interrupts.
2022-09-04 10:20:33 +00:00
rin 02b5fd10e5 Fix debug printf. Unbreak DEBUG build. 2022-09-04 09:23:07 +00:00
rin 6b9809a819 Remove extra break. 2022-09-04 09:20:55 +00:00
skrll 94cbaebaef bge(4): Use BUS_DMA_WAITOK in ring initilization now that it's safe 2022-09-04 08:55:43 +00:00
skrll dba2f27995 bge(4): fix the MP improvements and improve some more.
- Have two locks sc_core_lock at IPL_NONE and sc_intr_lock at IPL_NET and
  use appropriately.

- Use stopping flags instead of bge_if_flags so that bge_if_flags only
  needs to be protected by the sc_core_lock

- Use ifmedia_init_with_lock and provide the sc_intr_lock. mii operatiions
  are done from the interrupt handler.

- Fixup locking in bge_detach.

- Rename bge_watchdog to bge_watchdog_tick to avoid confusion with the
  if_watchdog method.

- Sprinkle some more asserts.
2022-09-04 08:50:25 +00:00
skrll 3bdb724bd7 bge(4): use a local variable to make bge_ifmedia initialization pretty.
NFC
2022-09-04 08:42:02 +00:00
thorpej 63f0d21cf2 Machete-waving to fix mpls rump build after pktqueue changes. 2022-09-03 20:29:30 +00:00
sjg b037bb66fa Only update distrib/sets/lists/tests/mi with valid files
sync-mi: use CVS/Entries to ensure we only update
distrib/sets/lists/tests/mi with files known to CVS.

Reviewed by: rillig
2022-09-03 15:03:32 +00:00