1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00
Commit graph

115 commits

Author SHA1 Message Date
Martin Storsjö
aa78b46e9c arm64: Expose information about more modern CPU extensions.
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-03-05 20:50:23 +01:00
Paul Gofman
7ae488a2bb ntdll: Don't hardcode xstate size in syscall frame. 2024-02-16 23:32:06 +01:00
Paul Gofman
1e0728c5d4 ntdll: Don't hardcode xstate feature mask. 2024-02-16 23:32:06 +01:00
Alexandre Julliard
4022fb9ba3 server: Don't report alternate 64-bit machines as supported. 2024-02-07 22:28:00 +01:00
Martin Storsjö
e772113071 ntdll: Reduce fixme logging for large numbers of cores.
Once we've reached the condition for skipping a core, we will
skip all other cores in the same range as well - don't print
a fixme message for each of them.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-24 17:34:30 +01:00
Paul Gofman
7bd070ae86 ntdll: Return STATUS_DEBUGGER_INACTIVE from NtSystemDebugControl() stub. 2024-01-23 22:56:53 +01:00
Nikolay Sivov
26f11bdfe5 ntdll: Use public type for SystemSupportedProcessorArchitectures returned data.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-06 10:20:50 +01:00
Zhiyi Zhang
aeda480e2a ntdll: Fix an out-of-bounds write (Coverity). 2023-11-27 22:39:51 +01:00
Marc-Aurel Zent
f715f400dc ntdll: Use IOPowerSources API to fill battery info on macOS. 2023-11-20 17:44:30 +01:00
Alexandre Julliard
59485f00c9 ntdll: Remove DECLSPEC_HIDDEN usage. 2023-11-15 22:56:37 +01:00
Brendan Shanks
a5f17fac3e ntdll/unix: Replace sprintf with snprintf to avoid deprecation warnings on macOS. 2023-11-08 17:25:41 +01:00
Alexandre Julliard
6cde96fb38 ntdll: Fix the SystemProcessorFeaturesInformation value on ARM platforms. 2023-09-15 15:58:40 +02:00
Torge Matthies
7026effe95 ntdll: Implement efficiency class reporting for Intel hybrid CPUs.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-07-10 20:33:21 +02:00
Alexandre Julliard
c3352feb83 ntdll: Use nameless unions/structs for CPU-related data. 2023-05-30 12:12:09 +02:00
Alexandre Julliard
7686cba105 ntdll: One more fix for CPU information in old Wow64 mode. 2023-03-24 15:50:16 +01:00
Alexandre Julliard
dd7b4431a6 ntdll: Add a helper function to check for Wow64 mode. 2023-03-23 14:20:16 +01:00
Alexandre Julliard
f3d90fd55b ntdll: Add a helper function to check for old-style Wow64 mode. 2023-03-23 14:20:14 +01:00
Alexandre Julliard
da7411fdb3 ntdll: Fixup CPU information for old Wow64 mode. 2023-03-23 14:14:01 +01:00
Alexandre Julliard
c44e58c88b ntdll: Implement the SystemProcessorFeaturesInformation query. 2023-03-14 17:38:51 +01:00
Alexandre Julliard
72422be6d2 ntdll: Implement the SystemProcessorBrandString query. 2023-03-14 17:34:09 +01:00
Alexandre Julliard
b72c2dca01 ntdll: Fix some CPU information tests on ARM64. 2023-03-14 17:26:13 +01:00
Paul Gofman
e41135a4a5 ntdll: Use MemAvailable field for free RAM estimation if available. 2023-01-25 10:13:07 +01:00
Alexandre Julliard
501ac4d496 ntdll: Match a timezone change happening at 23:59:59 with the following day.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53595
2022-12-19 22:25:15 +01:00
Brendan Shanks
9645beb5c0 configure: Remove check for IOKit (always present on macOS). 2022-12-02 11:04:46 +01:00
Huw Davies
905821fc69 ntdll: Fix -Wformat warnings on macOS. 2022-11-29 13:15:34 +01:00
Alexandre Julliard
9f363a6905 ntdll: Build the Unix side without -DWINE_NO_LONG_TYPES. 2022-11-21 18:03:53 +01:00
Alexandre Julliard
0adec25f92 ntdll: Build the PE side without -DWINE_NO_LONG_TYPES. 2022-11-21 18:03:53 +01:00
Alexandre Julliard
af4378d46d ntdll: Use unsigned int for the return value of server calls.
To avoid typecasts in debug traces.
2022-11-21 18:03:53 +01:00
Alexandre Julliard
d5e2ab1a98 ntdll: Fix int/long type mismatches. 2022-11-21 18:03:53 +01:00
Brendan Shanks
13cc08e32d ntdll: Stop using deprecated kIOMasterPortDefault constant. 2022-11-08 21:32:53 +01:00
Paul Gofman
fd3574a162 ntdll: Fix processor package mask in SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX structure.
Fixes a regression introduced by commit
6aa437de6a.
2022-09-26 11:36:49 +02:00
Zebediah Figura
f66b49a496 ntdll: Calculate the necessary length after calling snprintf() in SystemWineVersionInformation.
This works around a spurious gcc warning:

../wine/dlls/ntdll/unix/system.c: In function ‘NtQuerySystemInformation’:
../wine/dlls/ntdll/unix/system.c:3176:36: error: ‘%s’ directive output between 0 and 2147483644 bytes may cause result to exceed ‘INT_MAX’ [-Werror=format-truncation=]
 3176 |         snprintf( info, size, "%s%c%s%c%s%c%s", version, 0, wine_build, 0, buf.sysname, 0, buf.release );
      |                                    ^~                       ~~~~~~~~~~
../wine/dlls/ntdll/unix/system.c:3176:9: note: ‘snprintf’ output between 8 and 2147483780 bytes into a destination of size 4294967295
 3176 |         snprintf( info, size, "%s%c%s%c%s%c%s", version, 0, wine_build, 0, buf.sysname, 0, buf.release );
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-16 19:13:13 +02:00
Tim Clem
2ffcce16cb ntdll: Fix leak of mach_host_self port. 2022-08-09 15:53:17 +02:00
Zhiyi Zhang
45b5661c69 ntdll: Restore the timezone bias cache.
After 7161dcd, the timezone bias is calculated every time when SystemTimeOfDayInformation is queried.
This restores the cache for timezone bias.

Improve HROT framerate from ~100fps to ~500fps.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-26 22:37:48 +02:00
Alexandre Julliard
c6d9640007 ntdll: Use proper absolute paths for registry keys.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-04 16:43:46 +02:00
Alex Henrie
89ec37871f ntdll: Don't hard-code the battery and AC adapter names on Linux.
Look through all of the devices in /sys/class/power_supply and take the
statistics from the first battery and the first AC adapter.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52831
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2022-06-16 11:40:05 +02:00
Torge Matthies
4e19373c2f ntdll: Calculate buffer sizes from registry structs correctly.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-20 13:32:34 +02:00
Chip Davis
f3d9f00850 ntdll: Implement idle time query for Mac OS.
Signed-off-by: Chip Davis <cdavis5x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-19 21:58:49 +02:00
Paul Gofman
05676e83e9 ntdll: Collect logical processor info at process start.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-16 11:25:15 +02:00
Paul Gofman
6aa437de6a ntdll: Refactor logical processor info manipulation functions.
To reduce the diff in the next patch.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-16 11:25:12 +02:00
Paul Gofman
aadc1a0a80 ntdll: Move init_cpu_info() below create_logical_proc_info().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-16 11:25:12 +02:00
Paul Gofman
6ee6076216 ntdll: Fix allocation size in grow_logical_proc_ex_buf().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-16 11:25:12 +02:00
Rémi Bernon
bb17583239 kernelbase: Fix GlobalMemoryStatusEx counters.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-25 17:56:36 +01:00
Alexandre Julliard
abfa6bf860 ntdll: Consistently use time_t in timezone matching.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-02 18:43:10 +01:00
Jacek Caban
d0413d833f ntdll: Don't use inline assembly in do_cpuid.
Avoids problems on old GCC.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51862
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-17 17:17:54 +01:00
Alexandre Julliard
b3ca48f39c configure: Assume that sys/time.h is available on Unix.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 18:43:51 +01:00
Damjan Jovanovic
36af18a4f1 ntdll: Implement fill_battery_state() on FreeBSD.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 21:54:57 +01:00
Huw Davies
3ac41371f9 ntdll: Move the FILE ptr into the blocks that use it.
This is to prevent compiler warnings on non-linux platforms.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-30 22:07:21 +01:00
Damjan Jovanovic
d5406d028b ntdll: Implement setting SYSTEM_PERFORMANCE_INFORMATION.IdleTime on FreeBSD.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:48 +01:00
Damjan Jovanovic
478a7dbc90 ntdll: Implement setting SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION.IdleTime on FreeBSD.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:48 +01:00