https://bugs.winehq.org/show_bug.cgi?id=43966
--- Comment #8 from VitorMM vitormm@portingkit.com --- (In reply to Ken Thomases from comment #7)
(In reply to VitorMM from comment #5)
So we first need to find out where is the reserve entries end? There is any way to figure that out, or just by trying a bunch of different values?
The range supported by the OS before 10.13.2 is from 3 to 8191. The range in the 10.13.2 betas is 3 to 127. I wrote a simple test program to determine this.
Wine currently tries indexes from 512 to 8191. (It assumes that indexes below 512 are reserved for the system.)
So these lines from libs/wine/ldt.c #define LDT_FIRST_ENTRY 512 #define LDT_SIZE 8192
Should instead be like for macOS? #define LDT_FIRST_ENTRY 3 #define LDT_SIZE 127
Just to confirm.