This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: Add support for Windows 8, first step
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Thu, 13 Oct 2011 18:51:09 +0200
- Subject: Re: Add support for Windows 8, first step
- References: <4E949B40.20402@gmail.com> <20111012082643.GA10913@calimero.vinschen.de> <4E95FC38.1090500@gmail.com> <20111013103332.GA18819@calimero.vinschen.de> <20111013155216.GE18819@calimero.vinschen.de>
- Reply-to: cygwin-developers at cygwin dot com
On Oct 13 17:52, Corinna Vinschen wrote:
> On Oct 13 12:33, Corinna Vinschen wrote:
> > Anyway, I will check in a patch, today or tomorrow, which adds code
> > to use the new structure on W8.
>
> I just checked in my patch. I introduced a new class fcwd_access_t
> which hides the implementation details so find_fast_cwd and
> cwdstuff::override_win32_cwd don't have to know the actual structure
> layout. Thus, if a nother FAST_CWD structure comes along, we only have
> to change (hopefully) a bit of code in fcwd_access_t.
>
> I didn't try to find out how to compute fast_cwd_ptr on W8 yet, but
> at least the FAST_CWD stuff should work fine using the "couldn't compute
> fast_cwd_ptr hack" in cwdstuff::override_win32_cwd on W8 now...
I just checked in a patch to find_fast_cwd_pointer which allows to
compute fast_cwd_ptr on W8 as well. It was pretty simple. The only
crucial difference in the code was the usage of "push crit-sect-addr"
instead of "mov edi, crit-sect-addr; push edi", which changes the
address of the next instruction by a single byte.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat