From 36241ceda45016ced5a5c4b29d9dea2d361be64e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 30 Jan 2004 22:59:34 +0000 Subject: [PATCH] Added memory constraint to avoid miscompilation of the unaligned_mmap function (with help from Paul Streitman). --- dlls/ntdll/virtual.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 9e55dbc862c..9458113deb0 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -912,7 +912,8 @@ static void *unaligned_mmap( void *addr, size_t length, unsigned int prot, "popl %%ebx" : "=a" (ret) : "0" (90), /* SYS_mmap */ - "g" (&args) ); + "g" (&args) + : "memory" ); if (ret < 0 && ret > -4096) { errno = -ret;