%fs, %gs on AROS hosted
marcus at jet.franken.de
Thu Nov 8 02:08:29 CST 2007
On Wed, Nov 07, 2007 at 09:25:51PM +0100, Staf Verhaegen wrote:
> On Wed, 07 Nov 2007 08:37:34 +0100, Marcus Meissner
> <marcus at jet.franken.de> wrote:
> > On Tue, Nov 06, 2007 at 10:17:12PM +0100, Staf Verhaegen wrote:
> >> Hello wine developers,
> > Win32 (and so Wine) uses %fs as the thread selector.
> > It needs to stay constant over process switches (as in "saved") and the
> > base
> > virtual address must be settable.
> But the use of %fs by wine does not seem to conflict in any way with a
> possible usage of that segment register by the OS where wine is running
> on. Or is there some OS specific code that is handling it ?
No, it does not conflict. Your syscall / scheduler entry/exit points
however need to take care to save/restore it correctly, otherwise
you get interesting crashes ;)
More information about the wine-devel