Alexandre Julliard
eb6fcd3cb9
ntdll: Rename the SYSTEM_MODULE and SYSTEM_MODULE_INFORMATION structures.
...
To be consistent with the _EX version.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-27 16:39:55 +02:00
Alexandre Julliard
a9828988e9
ntdll/tests: Add a test for a Wow64-only syscall.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-27 13:48:53 +02:00
Alexandre Julliard
3fb4d1f779
ntdll: Always clear the returned handle in Nt object functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-23 17:38:32 +02:00
Alexandre Julliard
8337998d25
ntdll/tests: Add tests for Wow64SystemServiceEx().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-21 13:19:57 +02:00
Paul Gofman
52202224d9
ntdll: Comment out stubs for Nt and Zw functions.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 12:17:16 +02:00
Biswapriyo Nath
d60c450c7b
winecrt0: Add missing members in _JUMP_BUFFER for SJLJ.
...
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-19 20:09:58 +02:00
Paul Gofman
20fff538c4
ntdll: Add stub for ProcessInstrumentationCallback info class in NtSetInformationProcess().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-19 15:37:03 +02:00
Paul Gofman
b335b69368
ntdll: Add SystemKernelDebuggerInformationEx info class to NtQuerySystemInformation().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-19 15:36:32 +02:00
Alexandre Julliard
4e37f2d144
ntdll/tests: Add tests for IO_STATUS_BLOCKs in Wow64 mode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-09 12:39:07 +02:00
Alexandre Julliard
27ecc6ba5f
ntdll: Fix iosb handling in NtCancelIoFile().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-07 16:33:29 +02:00
Alexandre Julliard
3a32ea8e91
ntdll: Add support for LdrSystemDllInitBlock.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-07 16:33:29 +02:00
Francois Gouget
e72c71d27d
ntdll/tests: Improve the RtlWaitOnAddress() timeout checks.
...
GetTickCount()'s granularity represents 15% of the time we want to
mesure, making it hard to not get failures. So use NtQuerySystemTime()
instead since we already depend on it.
Narrow down the acceptable range again.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-05 19:55:37 +02:00
Francois Gouget
4e91180471
ntdll/tests: TZinfo sometimes does not get a MUI string.
...
RtlQuery*TimeZoneInformation() should return a MUI string but
there are rare cases where it does not in Windows 10 2004.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-05 19:55:35 +02:00
Alexandre Julliard
9a224788b7
ntdll: Forward RtlGetNativeSystemInformation() to NtWow64GetNativeSystemInformation() on 32-bit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-05 13:44:03 +02:00
Alexandre Julliard
0426430563
ntdll: Implement NtWow64GetNativeSystemInformation().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-05 13:41:30 +02:00
Alexandre Julliard
5071a28743
ntdll: Implement SystemEmulation* information classes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-05 13:41:27 +02:00
Alexandre Julliard
c6919423a8
ntdll/tests: Retrieve the actual segment registers for RtlWow64GetThreadSelectorEntry test.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-02 12:39:12 +02:00
Zebediah Figura
151370c478
ntdll/tests: Add more tests for deleted keys.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Alexandre Julliard
3469ebf90e
ntdll: Implement RtlWow64GetThreadSelectorEntry().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 10:32:24 +02:00
Alexandre Julliard
c9d23a15ce
ntdll/tests: Add tests for RtlWow64GetCurrentCpuArea().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 18:46:16 +02:00
Alexandre Julliard
7700467a38
ntdll/tests: Add tests for 64-bit modules in Wow64 mode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 18:46:16 +02:00
Alexandre Julliard
19f19d0e2e
ntdll: Implement NtWow64AllocateVirtualMemory64().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-29 14:51:25 +02:00
Alexandre Julliard
bfd2d1d77d
ntdll: Implement NtWow64Read/WriteVirtualMemory64().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-29 12:42:57 +02:00
Qian Hong
73d0bb7740
server: Forbid deleting files with an open mapping.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Qian Hong
7316122011
ntdll/tests: Test deleting files with an open mapping.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:27 +02:00
Alexandre Julliard
8ac411ed6d
server: Support both native and wow64 register contexts.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-27 11:42:32 +02:00
Alexandre Julliard
d66bd3e8b1
ntdll/tests: Move Wow64 tests to a separate file.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-25 22:48:47 +02:00
Zebediah Figura
10cc82827e
ntdll/tests: Mark a test as conditionally succeeding under Wine.
...
The stack handler doesn't return ExceptionContinueExecution if test_stage == 2.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-24 21:59:26 +02:00
Zebediah Figura
9eade0d245
ntdll/tests: Fix a failure in test_thread_context() under Wine.
...
Follow-up to 94ee270972
.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-24 21:59:23 +02:00
Zebediah Figura
2554daf1bf
ntdll/tests: Fix AVX tests on processors that don't support XSAVEOPT.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-24 21:59:17 +02:00
Paul Gofman
4e4847dd71
ntdll/tests: Do not write to fs, gs when testing cleared segment regs on x64.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51152
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-23 21:45:08 +02:00
Alexandre Julliard
9ae2b046ef
ntdll/tests: Add more tests for Wow64 contexts.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-22 17:57:46 +02:00
Alexandre Julliard
03fe2b36cd
ntdll/tests: Add more tests for segment registers in 64-bit mode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-22 17:48:45 +02:00
Akihiro Sagawa
0acd98f135
ntdll: Validate directory path when the path name ends with a dos device name.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51291
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-21 23:13:57 +02:00
Akihiro Sagawa
64c4582a40
ntdll/tests: Expand path name tests with path + device name.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-21 23:13:57 +02:00
Alexandre Julliard
15b18f4830
ntdll/tests: Adapt some of the i386 tests to run on x86-64 as well.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-18 16:48:48 +02:00
Zebediah Figura
c82c5e96a9
ntdll/tests: Relax tests for RtlWaitOnAddress() timeout.
...
RtlWaitOnAddress() shouldn't be waiting for less than 100 ms here, and it isn't,
but using GetTickCount() to measure this can result in up to 15 ms of error,
causing frequent test failures.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-17 20:08:16 +02:00
Alexandre Julliard
a2fce84a8b
ntdll: Fix some exception test failures on ARM64.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-10 19:54:33 +02:00
Alexandre Julliard
4e74038749
ntdll: Fix some exception test failures on ARM.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-10 19:54:33 +02:00
Alexandre Julliard
d08f42b68c
kernelbase: Move CopyContext() implementation to ntdll.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-03 17:42:19 +02:00
Alexandre Julliard
3f1f58f19a
ntdll: Use appropriate context constants where possible.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-03 13:03:20 +02:00
Francois Gouget
dc94b03799
ntdll/tests: Fix the XState AllFeatureSize check on old CPUs.
...
On old CPUs lacking XSAVEC, Windows 8+ does not set AllFeatureSize and
AllFeatures.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=51188
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-28 21:54:03 +02:00
Francois Gouget
b6d5f976e3
ntdll: Update the STATUS_NO_SUCH_DEVICE error mapping.
...
Windows 10 >= 1909 returns ERROR_NO_SUCH_DEVICE.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-28 21:53:07 +02:00
Paul Gofman
eefce9dcb9
ntdll/tests: Don't consider zero 'AllFeatures' value in USD broken.
...
Both variants are observed on different computers with Win10.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-27 16:14:47 +02:00
Paul Gofman
2fac2e6b32
ntdll/tests: Do not test old xstate structure details in test_user_shared_data().
...
Fixes test failures on 32 bit Testbot machines.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-26 21:29:37 +02:00
Alexandre Julliard
78cbc26957
ntdll: Fill the Wow64 PEB and process parameters.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-25 21:13:00 +02:00
Daniel Lehman
cb6a6bb6cf
ntdll/tests: Clean up temp file.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-24 11:42:37 +02:00
Alexandre Julliard
771e9260f8
ntdll/tests: Only load RtlWow64GetCpuAreaInfo() on 64-bit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-21 18:08:45 +02:00
Zebediah Figura
f47a09b917
ntdll/tests: Fix a copy-paste error in an ok message.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-18 09:56:43 +02:00
Alexandre Julliard
5ba8f0d73b
ntdll: Store the Wow64 context at the top of the 64-bit stack.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 18:49:09 +02:00
Alexandre Julliard
a8ff0c12f4
ntdll: Allocate a separate 64-bit stack for Wow64 threads.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 18:49:09 +02:00
Alexandre Julliard
5864bc88de
ntdll: Always send the native PEB pointer to the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-13 16:45:28 +02:00
Alexandre Julliard
4dca2cc797
ntdll: Always send the native TEB pointer to the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-13 16:45:28 +02:00
Alexandre Julliard
c2be6ecf0b
ntdll/tests: Add tests for Wow64 TEB and PEB information.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-13 16:45:28 +02:00
Alexandre Julliard
d1e90e1537
ntdll/tests: Don't skip all tests if a function is missing.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-13 16:45:28 +02:00
Alexandre Julliard
e97a2c4c0f
ntdll: Implement RtlWow64GetCpuAreaInfo().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-12 16:56:27 +02:00
Rémi Bernon
b44fb883b0
ntdll/tests: Check that creating huge thread stacks works.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-07 22:22:49 +02:00
Alexandre Julliard
40165dfa58
ntdll: RtlCreateUserThread() also takes a zero_bits parameter.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-07 22:22:49 +02:00
Francois Gouget
c021db5a41
ntdll/tests: Fix the speilling of an ok() message.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-06 19:49:54 +02:00
Alexandre Julliard
87b7132b37
ntdll: Implement RtlFindExportedRoutineByName().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-05 21:52:22 +02:00
Sven Baars
fc8bf8d33d
ntdll/tests: Use FindClose() to close handles returned by FindFirstFileW() (Valgrind).
...
Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-03 20:42:29 +02:00
Alexandre Julliard
7cdb88a5d8
include: Update the SYSTEM_PROCESS_INFORMATION structure.
...
Spotted by Alex Henrie.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Rémi Bernon
24d2a65916
ntdll/tests: Remove Qpc(Interrupt|System)TimeIncrement(Shift) checks.
...
They are not fixed and are updated from time to time (every few secs),
randomly failing the tests on the testbot.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-29 23:37:45 +02:00
Alexandre Julliard
4f8ede8e76
ntdll: Implement RtlWow64IsWowGuestMachineSupported().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-29 23:37:45 +02:00
Alexandre Julliard
6c2f19c0a7
ntdll: Implement RtlWow64GetCurrentMachine().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-29 23:37:45 +02:00
Alexandre Julliard
f2c1470c7c
ntdll: Implement RtlWow64GetProcessMachines().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-29 23:37:45 +02:00
Alexandre Julliard
b5095a1028
ntdll/tests: Fix a test failure on Windows 8.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-29 23:37:45 +02:00
Paul Gofman
02e3327f06
ntdll: Implement NtGetNextThread().
...
Largely based on a patch by Nikolay Sivov for NtGetNextProcess().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-29 10:48:59 +02:00
Alexandre Julliard
6a9e19344d
ntdll: Always allocate space for both 32- and 64-bit TEB.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-27 16:52:30 +02:00
Gabriel Ivăncescu
ec20f767fb
ntdll/tests: Test hard linking a file to a different casing of itself or existing target.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-23 20:02:07 +02:00
Alexandre Julliard
126a14ac9a
ntdll: Implement NtQuerySystemInformationEx(SystemSupportedProcessorArchitectures).
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-23 20:02:06 +02:00
Gijs Vermeulen
2f2cdc8bb1
ntdll: Don't fail when trying to remove the value of a non-existant variable in RtlSetEnvironmentVariable().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51035
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 22:11:27 +02:00
Gijs Vermeulen
09879590cb
ntdll/tests: Refactor RtlSetEnvironmentVariable() tests.
...
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 22:11:27 +02:00
Rémi Bernon
94dcca8a0e
ntdll/tests: Add committed / reserved thread stack sizes tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 09:35:04 +02:00
Gijs Vermeulen
749f8c25e2
ntdll: Return STATUS_INFO_LENGTH_MISMATCH when len is too small in NtQueryObject(ObjectBasicInformation).
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50791
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 22:39:46 +02:00
Alexandre Julliard
a0b77d7151
ntdll/tests: Add some file system redirection tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:30:50 +02:00
Alexandre Julliard
060b28b9ba
ntdll: Allow a second backslash after the drive letter.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 17:04:35 +02:00
Alexandre Julliard
405666b736
ntdll: Reject NT path names that are not in canonical form.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-13 13:05:29 +02:00
Michael Stefaniuc
8163dcb6c8
ntdll/tests: Remove superfluous casts to self.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-09 20:37:14 +02:00
Alexandre Julliard
afaf35b9e1
include: Add more SYSTEM_INFORMATION_CLASS definitions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-30 17:10:03 +02:00
Paul Gofman
084519a82b
ntdll: Implement NtQuerySystemInformationEx(SystemCpuSetInformation).
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-30 17:10:03 +02:00
Zebediah Figura
195c57eeb7
ntdll: Report SegDs to be identical to SegSs in x86_64 exception handlers.
...
Based on a patch by Dávid Török.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47970
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-29 22:44:35 +02:00
Zebediah Figura
10d7a804c1
ntdll/tests: Add a test for segment register contents in x86_64 exception handlers.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-29 22:44:35 +02:00
Mark Harmstone
9ea1134eea
ntdll: Add error mapping for MUI statuses.
...
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-25 21:52:18 +01:00
Rémi Bernon
d9d478e277
ntdll/tests: Add RtlQueryPerformanceCounter tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-19 19:55:34 +01:00
Rémi Bernon
97d2802d1b
ntdll/tests: Add InterruptTimeBias to fix spurious test failures.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 22:22:19 +01:00
Rémi Bernon
8591c2ac1a
ntdll/tests: Fix tick count read from user shared data.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 22:22:19 +01:00
Rafał Harabień
77481d36d3
ntdll: Allow getting/setting x86_64 context of x86 processes in wine64.
...
WoW64 process has two separate contexts:
- x86 context used most of the time (e.g. by application code)
- x86_64 context used by system when it quits x86 emulation and jumps to
the kernel code
A notable exception are debug registers - their state is shared. Some
debuggers make use of that fact and sets/gets debug registers of x86
processes using x86_64 thread context.
Add support for setting and getting debug registers using x86_64
thread context. Getting other registers is allowed too and will return
values from x86 thread context.
Fixes hardware breakpoints in IDA 7.0 disassembler (x86_64 app) when
debugging x86 (32 bit) applications.
Signed-off-by: Rafał Harabień <rafalh92@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-09 21:33:43 +01:00
Rafał Harabień
bee9f0126f
ntdll/tests: Test getting/setting x86_64 context of x86 processes in wine64.
...
Signed-off-by: Rafał Harabień <rafalh92@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-09 21:33:43 +01:00
Jacek Caban
af74bd3122
ntdll: Use syscall dispatcher to restore context in NtSetContextThread.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-02 20:41:39 +01:00
Alexandre Julliard
4ef8e946f1
winebuild: Set Thumb bit in CPSR register on syscall entry.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-24 22:01:42 +01:00
Zebediah Figura
db0fe33813
ntdll/tests: Avoid passing an uninitialized timeout to NtNotifyChangeKey().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-24 22:01:42 +01:00
Zebediah Figura
1f1d4da5f6
ntdll: Fill the handle attributes in System(Extended)HandleInformation.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-18 10:18:39 +01:00
Michael Müller
835f5fff71
ntdll: Implement NtQuerySystemInformation(SystemExtendedHandleInformation).
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-18 10:14:38 +01:00
Alexandre Julliard
e941079126
ntdll: Reimplement local atom tables in user space.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-16 11:01:25 +01:00
Rémi Bernon
26ee9134d5
ntdll: Re-implement RtlRegisterWait using TpSetWait.
...
This adds several internal flags to TP_WAIT object to support the
implementation:
* WT_EXECUTEONLYONCE: waits are re-queued unless it is set.
* WT_EXECUTEINWAITTHREAD: call the callback in the wait thread when set.
* WT_EXECUTEINIOTHREAD: call alertable NtWaitForMultipleObjects in wait
thread when set, as well the callback in the wait thread, as for
WT_EXECUTEINWAITTHREAD. The worker threads use non-alertable waits
otherwise.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47843
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-11 22:26:36 +01:00
Alexandre Julliard
7c85b365d1
ntdll/tests: Relax a broken result on Windows.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-11 16:31:30 +01:00
Rémi Bernon
6a45c160f4
ntdll/tests: Test RtlRegisterWait with WT_EXECUTEINWAITTHREAD flag.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47843
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-10 20:05:36 +01:00
Rémi Bernon
bf846d05ed
ntdll/tests: Remove traces from threadpool callbacks.
...
They seem to cause spurious failures.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47843
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-10 20:05:33 +01:00
Alexandre Julliard
27b9a2c621
ntdll/tests: Add some tests for NtQueryVirtualMemory(MemorySectionName).
...
Partly based on a patch by Dmitry Timoshkov.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-10 16:30:20 +01:00