Commit ac9711db authored by Jan Kiszka's avatar Jan Kiszka
Browse files

lib/cobalt: x86: Relax asm constraints for syscall wrapper



The y2038 test will pass the syscall number as variable. This is in
conflict with immediate constraint the current wrapper uses so far.
Relax it, the compiler will still use immediate where possible.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 34a6d653
......@@ -84,7 +84,7 @@ asm (".L__X'%ebx = 1\n\t"
DOSYSCALL \
RESTOREARGS_##nr \
: "=a" (__resultvar) \
: "i" (__xn_syscode(op)) ASMFMT_##nr(args) \
: "g" (__xn_syscode(op)) ASMFMT_##nr(args) \
: "memory", "cc"); \
(int) __resultvar; \
})
......@@ -98,7 +98,7 @@ asm (".L__X'%ebx = 1\n\t"
DOSYSCALLSAFE \
RESTOREARGS_##nr \
: "=a" (__resultvar) \
: "i" (__xn_syscode(op)) ASMFMT_##nr(args) \
: "g" (__xn_syscode(op)) ASMFMT_##nr(args) \
: "memory", "cc"); \
(int) __resultvar; \
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment