1. 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
  2. 26 Jul, 2016 1 commit
  3. 07 Jun, 2016 1 commit
  4. 04 Jun, 2016 1 commit
  5. 31 Mar, 2016 1 commit
  6. 07 Mar, 2016 1 commit
  7. 04 Feb, 2016 1 commit
  8. 23 Oct, 2015 1 commit
  9. 26 Aug, 2015 1 commit
  10. 21 Aug, 2015 1 commit
  11. 14 Jul, 2015 1 commit
  12. 09 Jul, 2015 1 commit
  13. 24 Jun, 2015 1 commit
  14. 15 Jun, 2015 1 commit
  15. 08 Jun, 2015 1 commit
  16. 28 May, 2015 2 commits
  17. 21 May, 2015 1 commit
  18. 17 Apr, 2015 1 commit
  19. 02 Apr, 2015 1 commit
  20. 06 Feb, 2015 1 commit
  21. 23 Jun, 2014 1 commit
  22. 17 Jun, 2014 1 commit
  23. 12 Jun, 2014 1 commit
  24. 07 May, 2014 1 commit
  25. 08 Apr, 2014 1 commit
  26. 24 Mar, 2014 1 commit
  27. 06 Feb, 2014 2 commits
  28. 04 Feb, 2014 1 commit
  29. 26 Dec, 2013 1 commit
  30. 11 Nov, 2013 1 commit
  31. 21 Oct, 2013 1 commit
  32. 14 Oct, 2013 2 commits
  33. 26 Sep, 2013 1 commit
  34. 09 Sep, 2013 1 commit
  35. 28 Aug, 2013 1 commit
  36. 24 May, 2013 1 commit
  37. 30 Apr, 2013 1 commit