🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.games.microprose.transport-tyc
Article #28288

Re: TTDPatch on Win xp x64

#28288
From: Josef Drexler
Date: Mon, 30 May 2005 22:43
29 lines
2670 bytes
On Mon, 30 May 2005 16:20:23 +0200, Marcin Grzegorczyk wrote:

> Josef Drexler wrote:
>> [...]
>> Ah, that's actually a crash in TTD.  Somehow XP64 doesn't seem to allow
>> setting the FS segment register, or it fails in other ways.
> 
> As you may know, under Win32 the FS register points to a special segment 
> which contains a structure called Thread Information Block.  This is 
> used, among others, for structured exception handling.
> 
> AFAIK when a 64-bit processor is running in the IA-32e compatibility 
> mode, the FS and GS registers are treated somewhat different to the 
> other segment registers.  Might have something to do with the crash. 
> (Perhaps XP64 somehow protects the FS register to ensure that IA-32 
> programs don't mess it up.)

It's either that, or it doesn't restore it properly after a mode switch
from 64 bit mode.  Perhaps it always restores it to the TIB instead of the
value it had before.

Either way, just removing all FS prefix instructions fixed the problem, so
I've integrated that into alpha 51 (as part of the win2k switch).

-- 
   Josef Drexler                 |       http://jdrexler.com/home/
---------------------------------+---------------------------------------
 Please help Conserve Gravity    |  Email address is *valid*.
 Give up downhill skiing.        |  Don't remove the "nospam" part.
Technical Details
Message-ID: <pan.2005.05.30.22.43.20.539650@joesbox.cjb.net>
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail
References: <op.sri6a4h3rg3r9u@luna.dune> <pan.2005.05.29.14.23.45.386373@joesbox.cjb.net> <op.srjk34hnrg3r9u@luna.dune> <pan.2005.05.29.15.47.10.516671@joesbox.cjb.net> <d7f7f8$601$1@joesbox.cjb.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail
From: Josef Drexler <nospam0605@joesbox.cjb.net>
Newsgroups: alt.games.microprose.transport-tyc
Subject: Re: TTDPatch on Win xp x64
Organization: None apparently.
Lines: 30
Message-ID: <pan.2005.05.30.22.43.20.539650@joesbox.cjb.net>
References: <op.sri6a4h3rg3r9u@luna.dune> <pan.2005.05.29.14.23.45.386373@joesbox.cjb.net> <op.srjk34hnrg3r9u@luna.dune> <pan.2005.05.29.15.47.10.516671@joesbox.cjb.net> <d7f7f8$601$1@joesbox.cjb.net>
X-Orig-NNTP-Posting-Host: yoda.our.house
Mime-Version: 1.0
X-Orig-X-Trace: joesbox.cjb.net 1117492974 29668 192.168.1.3 (30 May 2005 22:42:54 GMT)
X-Orig-Complaints-To: abuse@joesbox.cjb.net
X-Orig-NNTP-Posting-Date: 30 May 2005 22:42:54 GMT
User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)
Date: Mon, 30 May 2005 22:43:03 GMT
NNTP-Posting-Host: 24.58.5.97
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyroc.rr.com 1117492983 24.58.5.97 (Mon, 30 May 2005 18:43:03 EDT)
NNTP-Posting-Date: Mon, 30 May 2005 18:43:03 EDT
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit