Commit graph

7493 commits

Author SHA1 Message Date
Vijay Kiran Kamuju 349c2275d4 ntdll: Add stub RtlLookupGenericTableAvl function.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56736
2024-05-30 13:26:17 +02:00
Piotr Caban 9ff41324ae ntdll: Fix UNC path handling in alloc_module. 2024-05-27 22:59:21 +02:00
Jacek Caban 434702fdc9 ntdll: Use assembly wrapper for unixlib calls on ARM64EC.
Instead of using indirect C calls, which need to go through the call dispatcher.
2024-05-23 12:20:48 +02:00
Alexandre Julliard 127650c293 ntdll: Make __wine_unix_call() an inline function. 2024-05-23 12:20:48 +02:00
Brendan Shanks ed9ec141d5 ntdll: Don't warn on macOS and FreeBSD when xattr doesn't exist. 2024-05-20 22:49:25 +02:00
Piotr Caban 04927ec80d ntdll: Don't use gmtime concurrently.
The function may be called by
NtQuerySystemInformation(SystemTimeOfDayInformation) and
NtQuerySystemInformation(SystemCurrentTimeZoneInformation) concurrently.
2024-05-17 18:01:44 +02:00
Alexandre Julliard e4db1b39ea ntdll: Add default values for cache parameters.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56653
2024-05-16 19:01:09 +02:00
Paul Gofman 3c0e318582 ntdll: Allocate crit section debug info by default for Windows versions before 8.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56661
2024-05-14 18:28:04 +02:00
Alexandre Julliard 9dca2a7072 ntdll: Update PROCESSOR_ARCHITECTURE variable correctly for ARM platforms. 2024-05-14 12:28:51 +02:00
Alexandre Julliard cd5eb0f143 ntdll: Report the correct processor details on ARM platforms. 2024-05-14 11:11:51 +02:00
Alexandre Julliard dd4514a26b ntdll: Add processor information to the SMBIOS data. 2024-05-13 11:54:17 +02:00
Alexandre Julliard 7f9cad6979 ntdll: Store the CPU vendor and id during detection. 2024-05-13 11:53:10 +02:00
Billy Laws a2b4924db5 ntdll: Don't restore PC from LR after unwinding through frame switches.
Fixes unwinds from within a consolidation callback on ARM64EC, as the
context frame could be x64 with UNWOUND_TO_CALL set, in which case LR
contains garbage.

See: 71abc26cf8/src/coreclr/unwinder/arm64/unwinder.cpp (L2334)
2024-05-08 20:41:15 +02:00
Alexandre Julliard 6ab9a50d48 ntdll: Generate dummy SMBIOS data on non-supported platforms. 2024-05-08 20:41:15 +02:00
Alexandre Julliard 8e5f84ea3c ntdll: Build the SMBIOS table incrementally.
With helpers to create the various sections.
2024-05-08 20:41:15 +02:00
Alexandre Julliard 49bb8f10db ntdll: Cache the generated SMBIOS data. 2024-05-08 16:53:18 +02:00
Alexandre Julliard b70f01cc12 ntdll: Use null-terminated strings instead of explicit lengths to build SMBIOS data. 2024-05-08 16:53:18 +02:00
Billy Laws 79fb59e21e ntdll: Allocate wow64 environment block within the 32-bit address space. 2024-05-06 22:20:24 +02:00
Fotios Valasiadis 24ca848c56 ntdll/unix: Fix building on musl by explicitly including asm/ioctls.h.
After commit 898ab8dab1 wine would no longer
build on musl.

Issue is that apparently TCSETS2 isn't defined when including sys/ioctl.h.

A little digging shows that glibc goes ahead and includes asm/ioctls.h in
sys/ioctl.h, providing said macro.  Musl on the other hand doesn't and relies
on bits/ioctl.h, which lacks said macro.

Signed-off-by: Fotios Valasiadis <fvalasiad@gmail.com>
2024-05-06 22:20:24 +02:00
Alexandre Julliard 4e0e623859 ntdll: Generate stub entry points as x86-64 code on ARM64EC.
Partial revert of 220a70bee2.
2024-05-02 09:28:29 +02:00
Alexandre Julliard 6d931c271a ntdll: Build __chkstk as x86-64 code on ARM64EC.
Based on a patch by Jacek Caban.
2024-05-02 09:28:00 +02:00
Paul Gofman deb273a926 ntdll: Implement NtQuerySystemInformation(SystemProcessIdInformation). 2024-05-01 16:54:00 +02:00
Kirill Zhumarin 898ab8dab1 ntdll: Use termios2 for serial when possible. 2024-04-30 22:32:51 +02:00
Paul Gofman d61419d357 ntdll: Store exception reporting flags for debug events. 2024-04-26 23:21:57 +02:00
Paul Gofman b6928d3aee ntdll: Store exception reporting flags on suspend. 2024-04-26 23:21:57 +02:00
Paul Gofman 04a2917f6b ntdll: Store exception reporting flags in server context. 2024-04-26 23:21:57 +02:00
Paul Gofman 547d3a776f ntdll: Set exception reporting flags in NtGetContextThread(). 2024-04-26 23:21:57 +02:00
Paul Gofman e1a816a347 ntdll/tests: Add tests for CONTEXT_EXCEPTION_REQUEST. 2024-04-26 23:21:56 +02:00
Alexandre Julliard 6f4c2b7f5a ntdll/tests: Remove unnecessary shared header.
And remove some duplicate includes.
2024-04-26 11:18:56 +02:00
Paul Gofman e00cbef06d ntdll: Pre-check entry->addr before taking a spin lock in RtlWaitOnAddress(). 2024-04-24 17:14:15 +02:00
Paul Gofman 56d56ec629 ntdll: Remove entries from queue in RtlWakeAddressAll(). 2024-04-24 17:14:15 +02:00
Jacek Caban b87589757b ntdll: Use mangled function names in ARM64EC assembly. 2024-04-18 20:54:25 +02:00
Isaac Marovitz d821ddaa20 ntdll: Implement NtQueueApcThreadEx(). 2024-04-17 22:34:44 +02:00
Paul Gofman 146c263127 ntdll: Return STATUS_NO_YIELD_PERFORMED from NtYieldExecution() on Linux if no yield was performed. 2024-04-17 22:27:32 +02:00
Vijay Kiran Kamuju 04b829e81b ntdll/tests: Add NtQueryInformationProcess(ProcessQuotaLimits) tests.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
2024-04-16 22:09:59 +02:00
Vijay Kiran Kamuju ea4ba2f7de ntdll: Add NtQueryInformationProcess(ProcessQuotaLimits) stub.
Based on a patch by Qian Hong.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44812
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
2024-04-16 22:09:59 +02:00
Paul Gofman 14a51fa446 ntdll: Preserve untouched parts of xstate in set_thread_wow64_context(). 2024-04-09 08:27:01 -05:00
Jacek Caban aa2aa2033c ntdll: Use __ASM_GLOBAL_IMPORT for RtlUnwind.
Avoids importing locally defined symbols on ARM and ARM64, where we call it from winecrt0.
2024-04-01 20:22:52 +02:00
Brendan Shanks abcbd85b7c ntdll: Simplify creation of the server directory. 2024-03-27 22:19:24 +01:00
Paul Gofman bb47eb9f72 ntdll/tests: Add more tests for xstate. 2024-03-26 18:21:06 +01:00
Paul Gofman 29c73ee173 ntdll: Support more xstate features. 2024-03-26 18:20:56 +01:00
Paul Gofman 3dea242677 ntdll: Mind generic xstate masks in server context conversion. 2024-03-26 18:20:56 +01:00
Paul Gofman a9d77d0989 ntdll: Factor out context_to_server() function. 2024-03-26 18:20:56 +01:00
Paul Gofman 25e0a25807 ntdll: Factor out xstate_from_server() function. 2024-03-26 18:20:56 +01:00
Paul Gofman 6bc2c09232 ntdll: Support generic xstate in Unix-side manipulation functions. 2024-03-26 18:20:55 +01:00
Paul Gofman a10da8a42a ntdll: Preserve untouched parts of xstate in NtSetContextThread(). 2024-03-26 18:20:55 +01:00
Paul Gofman 7ae23ad775 ntdll: Only save AVX xstate in wine_syscall_dispatcher. 2024-03-26 18:20:53 +01:00
Alexandre Julliard cf08bbaa0f ntdll: Use a common wrapper to call unwind handlers on x86-64. 2024-03-25 18:05:39 +01:00
Alexandre Julliard 24e9fcac08 ntdll: Use a common wrapper to call exception handlers on x86-64. 2024-03-25 18:05:25 +01:00
Alexandre Julliard 47f94fcf5f ntdll: Copy the context contents instead of the pointer on collided unwind.
Similar to how it's done on ARM platforms.
2024-03-25 18:04:56 +01:00