summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-03libirqhelp: user interrupt handler helper librarylibirqhelpDamien Zammit
This provides a new helper lib for registering interrupt handlers in userspace. ( -1, bus, dev, fun, ...): will look up gsi from ACPI (gsi, -1, -1, -1, ...): will use given gsi
2023-06-29configure.ac: Make test for acpica more robustDamien Zammit
AC_CHECK_LIB does not work when -lpciaccess is also required. Message-Id: <20230629105620.809091-1-damien@zamaudio.com>
2023-06-25acpi: Link against libpciaccessSamuel Thibault
acpica will need it to access PCI configurations.
2023-06-21proc: Fix pointer truncation in get_string_arraySergey Bugaev
Due to little-endianness of x86, this resulted in a 64-bit pointers that pointed to the lower 4 GB of the address space being treated as a 32-bit pointer followed by NULL, which manifested as only the first program arg (the argv[0]) being visible in ps output. When a pointer pointed outside of the lower 4 GB, this resulted in both halves being treated as invalid pointers, causing proc_getprocargs () to fail with KERN_INVALID_ADDRESS, which manifested as ps displaying COMMAND for the affected process as ?. Found by placing all memory above the 4 GB limit, which made it apparent that something about fetching process command lines is seriously broken. Before: USER PID PPID TTY TIME COMMAND 0 1 1 - 0:00.00 /hurd/init 0 2 1 - 0:00.05 /hurd/startup 0 3 2 ? 0:02.80 ? 0 4 2 ? 0:00.00 /hurd/proc 0 5 2 - 0:00.08 ? 0 6 5 - 0:00.02 ? 0 7 2 - 0:00.00 /hurd/auth 0 9 1 - 0:00.01 /hurd/term 0 13 1 - 0:00.11 /hurd/mach-defpager 0 15 1 - 0:00.00 /bin/bash 0 16 5 - 0:00.00 /hurd/pflocal 0 18 15 - 0:00.00 /bin/sh 0 20 18 - 0:00.00 ps-hurd After: USER PID PPID TTY TIME COMMAND 0 1 1 - 0:00.01 /hurd/init -a 0 2 1 - 0:00.03 /hurd/startup --kernel-task=1 console=com0 0 3 2 ? 0:01.36 gnumach --kernel-task=1 console=com0 0 4 2 ? 0:00.00 /hurd/proc --kernel-task=1 0 5 2 - 0:00.06 ext2fs --multiboot-command-line=console=com0 0 6 5 - 0:00.00 /hurd/exec --device-master-port=1 0 7 2 - 0:00.02 /hurd/auth 0 9 1 - 0:00.00 /hurd/term /dev/console device console 0 13 1 - 0:00.09 /hurd/mach-defpager 0 15 1 - 0:00.00 /bin/bash /usr/libexec/runsystem.hurd 0 16 5 - 0:00.00 /hurd/pflocal 0 18 15 - 0:00.00 /bin/sh 0 19 18 - 0:00.01 ps-hurd -ef Message-Id: <20230621105638.1045306-1-bugaevc@gmail.com>
2023-06-21Drop mention of non-existing check targetSamuel Thibault
2023-06-14Replace msgh_kind with msgh_seqnoFlavio Cruz
msgh_kind is deprecated and is an alias to msgh_seqno. Message-Id: <ZIfy1sJwuhEtKSPH@jupiter.lan>
2023-06-14Check for file_utimens since that's the correct RPC for changing ↵Flavio Cruz
access/modification times libtrivfs/nfsd/fakeroot can now make the call to the underlying translators. Message-Id: <ZIlK1ow9VFolIbga@jupiter.lan>
2023-06-11pfinet: Fix x86_64 prototypesSamuel Thibault
2023-05-29Revert "Disable Linux-based pfinet on x86_64"Samuel Thibault
This reverts commit 19558c940e81d405dbda0ea1dd29549f34b5aa2a. It now builds fine.
2023-05-29pfinet: Add x86_64 checksum supportSamuel Thibault
2023-05-28pfinet: Missing size_t/mach_msg_type_number_t fixSamuel Thibault
2023-05-28lwip: Drop spurious port deref on errorSamuel Thibault
When ports_create_port returns an error there is no reference to release.
2023-05-28lwip: Fix port leak on /servers/startup lookup errorSamuel Thibault
2023-05-27ext2fs: Fix unsigned long / uint32_t confusionSamuel Thibault
2023-05-23libps: Fix allocating args/envSamuel Thibault
proc_getprocargs and proc_getprocenv read their size value
2023-05-23rumpdisk: Do not assume FHS /usr/lib, fixes Guix cross-build.Janneke Nieuwenhuizen
2023-05-21Remove an unused includeSergey Bugaev
Message-Id: <20230518165719.90745-2-bugaevc@gmail.com>
2023-05-21streamio: Implement trivfs_append_args ()Sergey Bugaev
This enables me to run 'fsysopts /dev/mach-console' and get: /hurd/streamio --writable console Message-Id: <20230518165719.90745-1-bugaevc@gmail.com>
2023-05-16Enable more static translators by defaultSamuel Thibault
We will more and more default to using rumpdisk and thus need the whole stack with static link.
2023-05-15Cosmetic tweaksSergey Bugaev
Message-Id: <20230515073600.1350072-4-bugaevc@gmail.com>
2023-05-15proc: Don't buffer Mach console outputSergey Bugaev
Normally glibc does not buffer tty output, but a devstream backed by the Mach console device cannot be isatty'ed. So we need to ask glibc explicitly to not buffer it. This is what the startup and mach-defpager do already. Message-Id: <20230515073600.1350072-3-bugaevc@gmail.com>
2023-05-15exec: Allow loading x86_64 executables on x86_64Sergey Bugaev
Since we don't support mixing i386 and x86_64 binaries on the same system (as running them requires different build-time gnumach configurations), the exec server can simply require the binary being loaded to have been built for the same architecture as the exec server itself. Message-Id: <20230515073600.1350072-1-bugaevc@gmail.com>
2023-05-11Only use host_get_kernel_version and default_pager_paging_storage_new in x86_64.Flavio Cruz
Also fixed the implementation of default_pager_paging_storage_new in proxy def pager to call into default_pager_paging_storage_new. We can fast track the simplification of the RPC ABI for x86_64 if we don't have MACH_MSG_TYPE_STRING used in RPCs which forces msgt_size to use more than 8 bits. Message-Id: <ZFsk/W+slpAZyTG1@jupiter.tail36e24.ts.net>
2023-05-10Drop spurious prototype fixSamuel Thibault
2023-05-10libps: Silence a warningSergey Bugaev
GCC was complaining about the mismatch in types between the 'fn' pointer and the function pointers assigned to it. Since fn is meant to be used with different function types, represent it as a 'void *' and not a pointer to any particular function type. Message-Id: <20230508213136.608575-13-bugaevc@gmail.com>
2023-05-10More prototypes fixesSamuel Thibault
2023-05-10Style tweaksSergey Bugaev
Message-Id: <20230508213136.608575-42-bugaevc@gmail.com>
2023-05-10Disable Linux-based pfinet on x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-41-bugaevc@gmail.com>
2023-05-10Look for mach_i386 in mach/machine/Sergey Bugaev
There's no mach/i386/ on x8_64. Message-Id: <20230508213136.608575-40-bugaevc@gmail.com>
2023-05-10trans: Fix S_fsys_forward prototypeSamuel Thibault
2023-05-10trans: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-39-bugaevc@gmail.com>
2023-05-10console-client: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-38-bugaevc@gmail.com>
2023-05-10term: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-37-bugaevc@gmail.com>
2023-05-10procfs: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-36-bugaevc@gmail.com>
2023-05-10ext2fs: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-35-bugaevc@gmail.com>
2023-05-10fatfs: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-34-bugaevc@gmail.com>
2023-05-10tmpfs: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-33-bugaevc@gmail.com>
2023-05-10mach-defpager: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-32-bugaevc@gmail.com>
2023-05-10startup: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-31-bugaevc@gmail.com>
2023-05-10pflocal: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-30-bugaevc@gmail.com>
2023-05-10eth-multiplexer: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-29-bugaevc@gmail.com>
2023-05-10boot: Port to x64_64Sergey Bugaev
Message-Id: <20230508213136.608575-28-bugaevc@gmail.com>
2023-05-10boot: Fix use-after-reallocSergey Bugaev
Message-Id: <20230508213136.608575-27-bugaevc@gmail.com>
2023-05-10daemons: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-26-bugaevc@gmail.com>
2023-05-10devnode: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-25-bugaevc@gmail.com>
2023-05-10storeio: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-24-bugaevc@gmail.com>
2023-05-10sutils: Avoid warnings about prototype mismatchSergey Bugaev
Message-Id: <20230508213136.608575-23-bugaevc@gmail.com>
2023-05-10sutils: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-22-bugaevc@gmail.com>
2023-05-10elfcore: Add support for saving x86_64 registersSergey Bugaev
Message-Id: <20230508213136.608575-21-bugaevc@gmail.com>
2023-05-10exec: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-20-bugaevc@gmail.com>