Added memory constraint to avoid miscompilation of the unaligned_mmap
function (with help from Paul Streitman).
This commit is contained in:
parent
66f1725428
commit
36241ceda4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue