This commit is contained in:
Jorge Aparicio 2017-01-13 00:55:55 -05:00
parent 0950e37073
commit b69140b8a9

View file

@ -15,7 +15,7 @@ pub mod nr;
pub unsafe fn syscall0(mut n: usize) -> usize {
asm!("int $$0x80"
: "+{eax}"(n)
: "{eax}"(n)
:
: "memory" "cc"
: "volatile");
n
@ -76,8 +76,7 @@ pub unsafe fn syscall5(mut n: usize,
-> usize {
asm!("int $$0x80"
: "+{eax}"(n)
: "{ebx}"(a1) "{ecx}"(a2) "{edx}"(a3) "{esi}"(a4)
"{edi}"(a5)
: "{ebx}"(a1) "{ecx}"(a2) "{edx}"(a3) "{esi}"(a4) "{edi}"(a5)
: "memory" "cc"
: "volatile");
n