Added memory constraint to avoid miscompilation of the unaligned_mmap

function (with help from Paul Streitman).
This commit is contained in:
Alexandre Julliard 2004-01-30 22:59:34 +00:00
parent 66f1725428
commit 36241ceda4

View file

@ -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;