Sweden-Number/dlls/ntdll
Ken Thomases 7501942008 ntdll: For Mac 64-bit, poke the TEB address to %gs:0x30 and re-enable the inlining of NtCurrentTeb().
64-bit Windows apps have hard-coded accesses to %gs:0x30 baked into them.  They
need to find the TEB self pointer there.

Technically, the gsbase register and the memory it points to belong to the
pthread implementation on macOS.  It's used for the pthread TLS implementation.
However, study of the sources and experimentation reveal that TLS slot 6
(offset 0x30) is not currently used.  Furthermore, Apple has promised to not
use that slot in the future.  So, we hijack it for our purposes.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:01 +09:00
..
tests ntdll: NtUnmapViewOfSection should succeed for all offsets within the mapped range. 2016-07-19 22:03:21 +09:00
Makefile.in
actctx.c ntdll: Remove a redundant NULL check before RtlFreeHeap(). 2016-07-08 20:14:04 +09:00
atom.c
cdrom.c
critsection.c
debugbuffer.c
debugtools.c
directory.c
env.c
error.c
exception.c
file.c
handletable.c
heap.c
large_int.c
loader.c ntdll: Do not sort InMemoryOrderModuleList by memory address. 2016-07-07 21:23:26 +09:00
loadorder.c
misc.c
nt.c ntdll: Implement the SectionBasicInformation class of NtQuerySection. 2016-07-26 20:32:10 +09:00
ntdll.spec ntdll: For Mac 64-bit, poke the TEB address to %gs:0x30 and re-enable the inlining of NtCurrentTeb(). 2016-07-28 21:38:01 +09:00
ntdll_misc.h
om.c
path.c
printf.c
process.c
reg.c
relay.c
resource.c
rtl.c
rtlbitmap.c
rtlstr.c
sec.c
serial.c
server.c
signal_arm.c
signal_arm64.c
signal_i386.c
signal_powerpc.c
signal_x86_64.c ntdll: For Mac 64-bit, poke the TEB address to %gs:0x30 and re-enable the inlining of NtCurrentTeb(). 2016-07-28 21:38:01 +09:00
string.c
sync.c
tape.c
thread.c ntdll: Add support for fs segment in ThreadDescriptorTableEntry query. 2016-07-15 11:16:59 +09:00
threadpool.c
time.c
version.c
version.rc
virtual.c server: Avoid rounding mapping sizes on the server side. 2016-07-27 17:03:03 +09:00
wcstring.c