summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-01-11libdiskfs: catch mmap failureSamuel Thibault
Just backtrace for now
2025-01-10rtc: Fix crash on readingSamuel Thibault
2025-01-02Header files: Install rtc.h header fileZhaoming Luo
Message-ID: <20250102004552.26250-1-zhmingluo@163.com>
2024-12-31sutils/MAKEDEV.sh: create /dev/rtc entryZhaoming Luo
2024-12-30startup: Do not emit ARGP_ERR_UNKNOWNSamuel Thibault
This is making startup completely ignore parameters when root= is passed first on the kernel command line.
2024-12-29pci-arbiter: Fix long standing bug with PCI accessDamien Zammit
Proxied memory was not rounded up to page size, causing error with vm_map'ing the underlying memory. WARNING: Assumes pci memory resources are at least page aligned. If not, this will expose part of next resource to userspace. Message-ID: <20241228073545.712061-1-damien@zamaudio.com>
2024-12-29fifo: Do not detach pipe when there are still readersSamuel Thibault
Typically for a control socket we need to be able to connect several times to it. This notably fixes the control socket of sv.
2024-12-28rumpdisk: Deallocate buffers in write during failure pathsDamien Zammit via Bug reports for the GNU Hurd
Message-ID: <20241228063834.709656-1-damien@zamaudio.com>
2024-12-28acpi: Better error handling on S_acpi_get_pci_irqDamien Zammit via Bug reports for the GNU Hurd
Return positive error code when return value indicates error. Message-ID: <20241228073512.711999-1-damien@zamaudio.com>
2024-12-27libirqhelp: Avoid loop between acpi and libirqhelpv0.9.git20241227Samuel Thibault
Now that acpi uses libirqhelp, the latter shouldn't be trying to lookup the former through the FS.
2024-12-23acpi: Look out for acpi_get_irq_number errorsSamuel Thibault
Otherwise we would take the error as irq number.
2024-12-23Fix port leaksSamuel Thibault
get_privileged_ports adds a port ref, so we have to deallocate it.
2024-12-14Add a description comment for the MIG type translation filesZhaoming Luo
Signed-off-by: Zhaoming Luo <zhmingluo@163.com> Message-ID: <20241213005831.748151-1-zhmingluo@163.com>
2024-12-11Add rtc translator and RTC CMOS driverZhaoming Luo
A /hurd/rtc translator will be created as, users can create a /dev/rtc device using the following command: ``` sudo settrans -c /dev/rtc /hurd/rtc ``` * Makefile: add rtc-cmos server into the compile chain * hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations * hurd/rtc.h: new file. Interfaces for rtc device * rtc/Makefile: new file. Makefile for rtc server * rtc/main.c: new file. Initialisation for rtc translator * rtc/mig-mutate.h: new file. Type translation for rtc server * rtc/rtc-cmos_pioctl-ops.c: new file. The rtc-cmos server-side implementation Signed-off-by: Zhaoming Luo <zhmingluo@163.com> Message-ID: <20241211005415.507656-2-zhmingluo@163.com>
2024-12-09smp: Simplify passing argvSamuel Thibault
2024-12-09sutils: Add smp tool to run process on slave processorsDamien Zammit via Bug reports for the GNU Hurd
Until we make gnumach fully parallel, we need a way to execute on slave processor set on smp-enabled gnumach. For example: $ /sbin/smp /bin/bash $ will launch a shell that executes commands only within slave pset, consisting of all processors except processor 0. We can thus test parallelism on Hurd in a controlled way. Message-ID: <20241126103747.353948-1-damien@zamaudio.com>
2024-12-08Add some runsystem progress debugSamuel Thibault
2024-12-08lwip: Properly handle errors during initializationZhaoming Luo
Reviewed-by: Sergey Bugaev <bugaevc@gmail.com> Message-ID: <20241208045237.1607-1-zhmingluo@163.com>
2024-12-07Code refactorZhaoming Luo
Message-ID: <20241207045245.1457-1-zhmingluo@163.com>
2024-12-05libstore: Fix zero store writesSergey Bugaev
We discard any written data, but we still need to set *amount. Not doing that is undefined behavior, and causes the write to appear to fail. This is the cause of a libzstd test failure on GNU/Hurd in particular. Reported-by: Diego Nieto Cid <dnietoc@gmail.com> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-ID: <20241204113402.540235-1-bugaevc@gmail.com>
2024-11-10shutdown: Try mach device acpi before /servers/acpiDamien Zammit via Bug reports for the GNU Hurd
Since libmachdev cannot currently serve netfs as well as trivfs on a path, we need to allow connecting to the bootstrapped acpi server to shut down the machine. Message-ID: <20241110084135.3859485-3-damien@zamaudio.com>
2024-11-10acpi, libmachdev: Add _forever variant of trivfs server loopDamien Zammit via Bug reports for the GNU Hurd
The acpi server needs to survive after the shutdown notification, so it can serve S_acpi_sleep() RPC to actually shut down the machine. Therefore we need to keep the server alive and not respond to the trivfs goaway request. Message-ID: <20241110084135.3859485-2-damien@zamaudio.com>
2024-11-08Comment fixesZhaoming Luo
I don't think ioctls.h is a good place looking for the subsystem id calculation, instead hurd/ioctls.defs, it contains the following codes: ``` /* Calculate the MiG subsystem (i.e. first message ID) for the RPCs produced by ioctl requests in the given group. */ #define IOC_GROUP_SUBSYSTEM(group) (100000 + ((group) - 'f') * 4000) ``` Message-ID: <20241108031619.312288-1-zhmingluo@163.com>
2024-11-04More device_get_status count fixesSamuel Thibault
2024-11-04lwip: Fix integer type mismatch on x86_64Samuel Thibault
2024-10-28console-client: Isolate fb driver even more from vgaSamuel Thibault
2024-10-28console-client: Enable switching to gfx console when availableDamien Zammit
This compiles in and enables the new framebuffer codepath in the vga driver, if detected. Message-ID: <20241028080849.3196116-3-damien@zamaudio.com>
2024-10-28console-client: Add graphical console video passthroughDamien Zammit
When bootloader sets a linear framebuffer mode and passes the required info to Hurd via multiboot info table, we can use this framebuffer as is. Otherwise, fall back to EGA text mode as before. This is just the new framebuffer code as a separate commit. Message-ID: <20241028080849.3196116-2-damien@zamaudio.com>
2024-10-28xkb: Fix delete key in consoleDamien Zammit
Adding the missing NULL sentinel pointer allows delete key to function without crashing pc_kbd driver. Message-ID: <20241028080849.3196116-1-damien@zamaudio.com>
2024-10-27Using NETIF_FOREACH to replace netif for-loopsZhaoming Luo
Come across NETIF_FOREACH in /usr/include/lwip/lwip/netif.h, but I'm not sure if it affects some self-contained stuff. netif.h belongs to liblwip-dev. Message-ID: <tencent_3A8C7926D4CB059A970F2B5046C547149409@qq.com>
2024-10-26irqhelp: Add name of library to log_error messagesDamien Zammit
Message-ID: <20241023003509.2994709-1-damien@zamaudio.com>
2024-10-24adding a missing commentZhaoming Luo
Adding a line of missing comment
2024-10-24irqhelp: Dont bail when cannot connect to acpiDamien Zammit
As the acpi translator requires libirqhelp, we cannot fail when libirqhelp cannot connect to acpi translator, break the egg/chicken. acpi translator will only call the irqhelp api with fixed gsi during startup, so won't require itself to be started yet. Message-ID: <20241023003446.2994643-1-damien@zamaudio.com>
2024-10-22acpi: Link to libirqhelpDamien Zammit
This change is required when the libacpica library is updated to link with hurd library irqhelp. Message-ID: <20241021032136.2915779-2-damien@zamaudio.com>
2024-09-10Define i386_get_xstate_size in libmachdev.Flavio Cruz
libmachdev implements the mach_i386 routines, so we have to implement this one. Message-ID: <3pe32mbui3x3gueiyk5ybzrj54gkbwddlk6kqjconwg7jnxlc6@kgsaffiftak2>
2024-09-10Revert "Include device/input.h in console-client"Samuel Thibault
This reverts commit a698c6dafb63de4e69450b63ba7f4b71892c27e4.
2024-09-09Include device/input.h in console-clientFlavio Cruz
We avoid using repeated definitions and also update kd_event with the new 64bit compatible fields (rpc_time_value). Message-ID: <Y7zdiy1QtUz4RSY3@jupiter.tail36e24.ts.net>
2024-09-08Restructure argument setup in hashbangFlavio Cruz
We do a few things here: - Move search_path to the scope where it is used to make dependencies more clear. - Have a separate variable to store the file name we eventually need to free and move the free logic to happen in a single place. Both of this allows us to still free the name even if a fault is generated and also avoids a compiler warning as we try to assign a 'const char*' file_name_exec to a 'char *', making it more clear to what exactly we need to free. I also believe 'error' in line 245 was not initialized in case 'file_name_exec' is used and this fixes that too. Message-ID: <20240121210757.1900938-1-flaviocruz@gmail.com>
2024-09-08x86_64: do not define mach_cpu_subtypes since we don't use itFlavio Cruz
Message-ID: <20240121210757.1900938-4-flaviocruz@gmail.com>
2024-09-08Fix warnings in fstestsFlavio Cruz
Message-ID: <20240121210757.1900938-3-flaviocruz@gmail.com>
2024-09-08procfs: remove unused rootdir_symlink_make_nodeFlavio Cruz
Not needed since b2c97e251bb470e6f967c716081675a96dbde59c Message-ID: <20240121210757.1900938-2-flaviocruz@gmail.com>
2024-09-07remap, syncfs: correct program version namefree_software@xobnur.uk
/hurd/remap --version was claiming to be fakeroot Message-ID: <621e135a-f272-43e8-9c10-35804abb1ed5@xobnur.uk>
2024-09-01libports: Add missing ports_interrupt_server declarationSamuel Thibault
2024-08-29startup, settrans: Add missing flush of stderr to get output on waitingSamuel Thibault
2024-08-26ext2fs: Ignore translators bits when checking we have no Hurd extensionsSamuel Thibault
We don't actually want to write these anyway.
2024-08-26ext2fs: Fix masking out translators bitsSamuel Thibault
We need to mask out before shifting the bits.
2024-08-26ext2fs: mention which inode size is supportedSamuel Thibault
2024-08-25Fix line-buffered stderrSamuel Thibault
mach_open_devstream creates a fully-buffered stream by default. This prevents from seeing various messages.
2024-08-25libdiskfs: Print error if we fail to open /dev/consoleSamuel Thibault
2024-08-25Make sure to also print early-fatal errors on mach consoleSamuel Thibault
In case the user is using a debug kernel, they will get to see these.