eax then.
A pointer to the pointer won't help, only make the problem worse needing an
additional indirection.
AFIK, there is no way to tell the inline assembler how to do it correctly in
a single instruction, we need to have the pointer loaded in a register. A
fastcall will have the parameter in a register already, but won't be better
than an inline.
There is no point in saving a instruction here anyway, loading/saving the
gdtr is very rare.
But if you know a way to have a single instruction in an inline to work as
intended tell us how plz.
Jose Catena
DIGIWAVES S.L.
-----Original Message-----
From: ros-dev-bounces(a)reactos.org [mailto:ros-dev-bounces@reactos.org] On
Behalf Of Alex Ionescu
Sent: Wednesday, 30 December, 2009 18:08
To: ReactOS Development List
Subject: Re: [ros-dev] MSVC
I recommend changing the convention such that Descriptor is a pointer to the
pointer -- this way the functions can remain one-liners and not introduce
register side-effects (especially since you're choosing ebx -- trashing a
nonvolatile).