1. 26 Aug, 2016 2 commits
  2. 23 Aug, 2016 1 commit
  3. 18 Aug, 2016 6 commits
  4. 10 Aug, 2016 1 commit
  5. 08 Aug, 2016 1 commit
  6. 29 Jul, 2016 1 commit
    • Ken Thomases's avatar
      ntdll: For Mac 64-bit, poke NtCurrentTeb()->ThreadLocalStoragePointer to the… · 3d8efb23
      Ken Thomases authored
      ntdll: For Mac 64-bit, poke NtCurrentTeb()->ThreadLocalStoragePointer to the corresponding offset from %gs.
      
      64-bit Windows apps have hard-coded accesses to %gs:0x58 baked into them.  They
      need to find the ThreadLocalStoragePointer 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.
      Slot 11 (offset 0x58) is currently used for the implementation of the ttyname()
      system library function.  We do not anticipate that Wine or any of the system
      libraries or frameworks it uses will call ttyname().  Furthermore, Apple has
      made it so that future releases of macOS will no longer use that slot.  So, we
      hijack it for our purposes.
      Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com>
      Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
      3d8efb23
  7. 28 Jul, 2016 1 commit
    • Ken Thomases's avatar
      ntdll: For Mac 64-bit, poke the TEB address to %gs:0x30 and re-enable the… · 75019420
      Ken Thomases authored
      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: 's avatarKen Thomases <ken@codeweavers.com>
      Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
      75019420
  8. 06 Jul, 2016 1 commit
  9. 15 Apr, 2016 1 commit
  10. 28 Mar, 2016 1 commit
  11. 19 Feb, 2016 2 commits
  12. 18 Feb, 2016 1 commit
  13. 06 Jan, 2016 1 commit
  14. 21 Oct, 2015 1 commit
  15. 07 Aug, 2015 1 commit
  16. 05 Jun, 2015 2 commits
  17. 03 Apr, 2015 1 commit
  18. 27 Feb, 2015 1 commit
  19. 06 Feb, 2015 1 commit
  20. 24 Jul, 2014 1 commit
  21. 23 Jul, 2014 1 commit
  22. 11 Jun, 2014 1 commit
  23. 14 Apr, 2014 1 commit
  24. 08 Apr, 2014 3 commits
  25. 04 Nov, 2013 1 commit
  26. 20 Aug, 2013 1 commit
  27. 30 Apr, 2013 1 commit
  28. 29 May, 2012 1 commit
  29. 02 Apr, 2012 1 commit
  30. 30 Mar, 2012 1 commit