Mail Archives: cygwin-developers/2002/12/12/11:39:10
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime AT docserver DOT cac DOT washington DOT edu for more info.
--491353-16020-1039711130=:268
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Thu, 12 Dec 2002, Christopher Faylor wrote:
> On Thu, Dec 12, 2002 at 01:37:37AM -0600, Gary R. Van Sickle wrote:
> >Ok, attached is what I'd try if I was set up to try it. I've found that you
> >pretty much always need the "volatile" after the __asm__, or the newer gccs want
> >to optimize your assembly away, even if they should be able to tell that you've
> >got side-effects.
>
> AFAIK, there is a volatile after the __asm__.
>
> How about a standard unified diff so that it is easy to see what you changed?
I didn't specified it when i put the asm stuff it into a c source file.
You might have a look at the version that i created.
AFAICT the only changes between Garys inline asm version and mine is the
addition of the missing volatile.
Anyway, i have attached a diff.
Thomas
--491353-16020-1039711130=:268
Content-Type: TEXT/plain; name="winbase.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT WNT DOT 4 DOT 44 DOT 0212121738500 DOT 268 AT algeria DOT intern DOT net>
Content-Description:
Content-Disposition: attachment; filename="winbase.patch"
LS0tIHdpbmJhc2UuaC5vcmcJMjAwMi0wNi0yNCAwMzoxMjozNy4wMDAwMDAw
MDAgKzAyMDAKKysrIHdpbmJhc2UuaAkyMDAyLTEyLTEyIDEwOjExOjQ3LjAw
MDAwMDAwMCArMDEwMApAQCAtNyw0NiArNyw4MyBAQAogI2RlZmluZSBfV0lO
QkFTRTJfSAogI2VuZGlmCiAKLSNpZm5kZWYgX1dJTkJBU0UyX0gKLSNkZWZp
bmUgX1dJTkJBU0UyX0gKKyNpZiBkZWZpbmVkKF9fSU5TSURFX0NZR1dJTl9f
KSAmJiAhZGVmaW5lZCAoX19OT19JTlRFUkxPQ0tFRF9fKQorCisjaWZuZGVm
IF9fSU5URVJMT0NLRURfREVGSU5FRF9fCisjZGVmaW5lIF9fSU5URVJMT0NL
RURfREVGSU5FRF9fC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