Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 1997 20:37:24 -0700
From:      Sean Eric Fagan <sef@Kithrup.COM>
To:        chadf@bookcase.com
Cc:        hackers@freebsd.org
Subject:   Re: FS & GS registers not in sigcontext?
Message-ID:  <199704180337.UAA18664@kithrup.com>
In-Reply-To: <Pine.BSF.3.95.970417214854.562A-100000.kithrup.freebsd.hackers@notes>
References:  <Pine.SV4.3.95.970416141023.13445A-100000@parkplace.cet.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
>#ifdef linux
>/* fs and gs are not supported on *BSD. Hopefully we won't need them. */
>#define FS_sig(context)      ((context)->sc_fs)
>#define GS_sig(context)      ((context)->sc_gs)
>#endif
>
>	And I was just kinda curious why they weren't in there? I mean is
>there a reason behind it, or is it just one of those "nobody's bothered
>yet" kinda things?

The fs and gs registers are not saves on the stack by the processor except
in VM86 mode.

We have some support for that, as announced on -emulation several times, but
it's not perfect, and, frankly, the interest level has not seemed worth the
effort we've put into it.  (The learning we all got from it has probably
been worth it :).)  (Before I get a dozen people saying, "Hey, I'm
interested" -- it won't run 32-bit programs, which means it won't run most
Windows binaries.  Most of the OpenDOS programs I've tried seem to work, but
not all, and we have very mixed success with "real programs."  of course,
part of that is because it's *hard* to find DOS-only "real programs" these
days!  But if you do think you're interested, some 2.2-relative patches are
on freefall.cdrom.com:~ftp/pub/sef.)

Sean.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704180337.UAA18664>