Commit Graph

305832 Commits

Author SHA1 Message Date
hannken 050294fac1 Increase length of set description to 40 characters so recent additions fit.
Ok: martin@

Fixes PR install/58188 "sysinst fails to display status of base32 set"
2024-04-25 11:25:08 +00:00
thorpej a5de3f67cd Add a match quirk to prevent matching any interface on SiPEED FPGA
development boards (e.g. Tang Nano 9K).  The FT2232s on these boards
are wired up only for JTAG.
2024-04-25 01:33:03 +00:00
rillig 9e59e5f95f makefs: fix out-of-bounds fsnode count in fsnode_sort
Found by running './makefs img.dat cd9660'.

While here, apply more KNF.
2024-04-24 21:59:39 +00:00
martin 0b28c28c5a Explicitly exclude VAX from new Mesa due to a gcc internal compiler error 2024-04-24 20:38:24 +00:00
martin 4c5f232623 Force old Mesa for all old X server builds 2024-04-24 19:14:39 +00:00
hgutch fa9aaa8d4e Fix gcc build on FreeBSD 14 (and possibly other systems using clang >= 16).
Pointed out by Eirik Øverby.

OK mrg@
2024-04-24 16:48:29 +00:00
nia 509d26c5fb csh: replace malloc(x * y) and realloc(x * y) with reallocarray 2024-04-24 15:49:03 +00:00
nia b544db1689 csh: add a helper definition for the reallocarray function 2024-04-24 15:47:11 +00:00
nia 911d74d44e csh: add a reallocarray function for using inside csh 2024-04-24 15:46:20 +00:00
nia 37bdcda215 recent changes 2024-04-24 15:41:41 +00:00
nia a72de12762 sparc64 follows x86 and gets an installdvd image with all sets 2024-04-24 15:39:58 +00:00
thorpej 290bc6be6b Remove a superflouous printf(). 2024-04-24 14:41:13 +00:00
christos 514871bdef use __func__ 2024-04-24 14:23:37 +00:00
christos c7e1aa689d make a separate sorting function and KNF (thanks rillig) 2024-04-24 14:02:39 +00:00
macallan 93f802c8d4 allow userland to switch to 16bit colour 2024-04-24 11:49:58 +00:00
nia 6c62cea2ba Add "DVD" ISOs for x86 that don't have to follow CD size limitations.
These include all available sets.
2024-04-24 11:29:34 +00:00
nia 4707556686 it's netbsd-11, time for a slightly less eye-bleeding shade of orange 2024-04-24 10:35:13 +00:00
martin a780dc6123 Switch alpha and VAX back to old Mesa for now untill someone fixes
those builds with newer Mesa.
2024-04-24 07:54:53 +00:00
nia 41ad46868a ena(4) became MPSAFe last year 2024-04-24 06:44:18 +00:00
nia 2e1e90e5f9 USE_XZ_SETS is no longer needed for sparc64 to fit on a standard CD-ROM 2024-04-24 05:20:35 +00:00
nia 9cbaeab3a8 Give lots of room for further expansion of the sparc64 CD image 2024-04-24 05:16:16 +00:00
thorpej b6d00713ce b3_2706_map_vme(): Use VM_BESTFIT. 2024-04-24 02:31:26 +00:00
thorpej 727b6a78fb _vme_space_get(): Use VM_BESTFIT. 2024-04-24 02:27:33 +00:00
thorpej 7ed2924faf vmem_init(): Ensure that the quantum is a power of 2, and that if private
tags are being used, they are added to the arena before the first span is
added.
2024-04-24 02:08:03 +00:00
christos a3d65a98f9 For the NetBSD tools build we provide our own fts.h not FreeBSD's so the
comparator should have the NetBSD signature.
2024-04-24 01:44:51 +00:00
rillig 3f936286b0 make: clean up comments, code and tests 2024-04-23 22:51:28 +00:00
christos a5d2beee4d pass lint, simplify 2024-04-23 22:18:56 +00:00
christos c7526c4ece makefs: Fix symlink permission bits
Permission bits for symlinks are taken straight from `lstat()`. However, the
actual bits presented to the user are filesystem/kernel specific. For example,
Linux with ext2/3/4 will use 0777 for symlinks, whereas NetBSD/FFS will
show 0755. As far as `makefs` is in the loop, the target filesystem will likely
be FFS, so use 0755.
2024-04-23 22:12:48 +00:00
christos c50dd23e93 makefs: Sort directory contents by name (Jan-Benedict Glaw)
`makefs` inserts nodes into its internal data structures in the order as
returned by `readdir()` calls. As this is unpredictable, sort entries by
name before creating the target filesystem.

  This is done by first converting the (per-directory) linked list into
a plain array, sort it, finally re-link the list. Special case for the
sorting function: The "." directory entry seems to be ment to be always
at the front, so always check that first.
2024-04-23 22:12:16 +00:00
christos 8d70431e8b VAX boot.fs: Fix owner/group/permissions for VAX's boot.fs (Jan-Benedict Glaw)
(Initial patch from Christos Zoulas.)  Don't create an archive based on local
permission bits and owner/group. Instead, feed a small manifest into `pax`
and let it to its work.

  NB: Don't also feed in an entry for the current directory ".", as `pax` will
then archive all files in the current directory, in `readdir()` order.
2024-04-23 22:00:37 +00:00
christos 1b36f85ce6 `nm`: Generate a stable symbol table (Jan-Benedict Glaw)
Release artifacts may contain symbol lists. Binutils's `nm` sorts them by
symbol name, locale based. Inserting a plain `sort` (with `LC_ALL=C`) here
sorts them by address, and (with several symbols pointing to the same address)
sorting by name is also stable (think of embedded '_'.)
2024-04-23 21:58:57 +00:00
nia 50dd28a100 Reduce the size of the i386 ISO to help it fit on a CD-ROM
Exclude tests and html man pages.
2024-04-23 20:37:07 +00:00
hans 0005ec5393 Sync the statistics DMA memory correctly before it is accessed. 2024-04-23 15:34:07 +00:00
nia 9afa3b4167 Exclude compat sets from ISO images that struggle to fit on a CD-ROM
When debug is excluded, also exclude the compat debug sets.
2024-04-23 12:25:57 +00:00
martin 2ac6a76527 For consistency, check MKREPRO_TIMESTAMP always numerically (not as string) 2024-04-23 07:47:36 +00:00
martin 39f3caee78 Add new test program 2024-04-23 07:33:24 +00:00
maya 8a12906d64 Switch to mesa 21
Works well enough for me on various GPUs, let's try it out. Can be easily
reverted if anyone encounters major issues.
2024-04-23 03:25:39 +00:00
andvar 1f05e87cf6 Surround full mp_cpu_start() method with NLAPIC > 0 guard.
Initialization is based on x86_ipi* functions, which are implemented only
when lapic flag is enabled.
2024-04-22 23:07:47 +00:00
andvar fabab64239 Add (defined(MPBIOS) || NACPICA > 0) check around mp_pci_childdetached().
Fixes the build without MPBIOS or ACPI. Modified patch from Paolo Pisati in
current-users@.

While here:
Remove obsolete <arch/x86/pci/msipic.h> include with its guard.
Add comments for multiple endifs for better readability.
2024-04-22 22:47:00 +00:00
andvar ac38f996f2 Add opt_pci.h include to fix NO_PCI_MSI_MSIX build.
(Path from Paolo Pisati in current_users@)

While here:
Simplify mp_cpu_start() ifdefs. MULTIPROCESSOR and HYPERV code falls under
NLAPIC > 0, thus just combine all blocks under this guard.
Rearrange opt_acpi.h include alphabetically.
2024-04-22 22:29:28 +00:00
jdolecek abcb0737b1 it's nanosleep(2), not nanosleep(3) 2024-04-22 21:25:29 +00:00
jdolecek 2bbb505264 allow usleep(3) with useconds >= 1000000
update manpage to mention this interface is obsolete, remove
EINVAL from the ERRORS and mention EINTR instead.

PR lib/58184 by Taylor R Campbell
2024-04-22 21:02:18 +00:00
nia f7dfb79875 Move MIPS N64 compat out of {base,debug}32 into {base,debug}64
martin requested separation by ABI and it doesn't make much sense
to have 64-bit binaries in a set called 32.
2024-04-22 14:41:24 +00:00
pho 76248f073a Add a test for kern/58149
aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived
2024-04-22 07:24:22 +00:00
maya 5077947004 mesa21: link against libxcb-sync for missing symbols
Not super obvious in practice, but it does show if you run GL programs
with LD_BIND_NOW.
2024-04-22 03:38:49 +00:00
rillig 9799297d00 make: trim down code for parsing the :gmtime and :localtime modifiers
The :gmtime and :localtime modifiers are not used often and thus are not
time-critical. Exchange the custom code that parses an integer from a
substring for an additional memory allocation.

Thanks sjg@ for suggesting to avoid the custom parsing code.
2024-04-21 21:59:48 +00:00
rillig d122acbd72 libntf: make MKREPRO timestamp compatible with NetBSD 10
In NetBSD 10, make(1) cannot handle :gmtime arguments that are
expressions, resulting in the error message "Unknown modifier '1'".
2024-04-21 17:19:52 +00:00
riastradh 63b08c9be7 apei(4), acpihed(4): Enable in x86 GENERIC.
Let's just see how this works out in practice.  Might need to reduce
the overhead of each GHES on machines with thousands of them, but
we'll see.

PR kern/58046
2024-04-21 14:11:12 +00:00
rillig 7541e76b18 make: fix out-of-bounds read when evaluating :gmtime and :localtime
The function TryParseTime takes a pointer to a string, but the LazyBuf
returns a Substring, which is not guaranteed to be null-terminated or
delimited.  In TryParseTime, calling strtoul on the Substring read past
the end of the substring.

Noticed in the NetBSD build in libntp, where the :gmtime modifier is
used in two places with the same timestamp value, of which the first was
evaluated correctly and the second wasn't.

The bug was introduced in var.c 1.1050 from 2023-05-09, when the
argument of the :gmtime and :localtime modifiers was allowed to be an
expression instead of an integer constant.
2024-04-21 08:56:49 +00:00
riastradh 003bb55d1d drm: Allow DRM_IOCTL_GET_UNIQUE on render nodes.
On NetBSD, libdrm uses this to discover what kind of bus the device
is on, without which it refuses to expose the render node at all,
rendering it useless.  With this change, libdrm is able to use render
nodes on NetBSD.

Since this is just reading out information about the bus type and
bus/dev/func numbers, I don't think it's problematic to expose to
render nodes.

This requires tweaking the access path to the master.

PR kern/58180
2024-04-21 03:02:51 +00:00