diff --git a/CHANGELOG.md b/CHANGELOG.md index 782555d..5fde74b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Fixed + +- syscall2 for linux-aarch64. There was a type in the register constraints. + ## v0.1.0 - 2017-01-13 Initial release. Forked from [syscall] v0.2.1. @@ -13,7 +17,9 @@ Initial release. Forked from [syscall] v0.2.1. - Support for ARM, Aarch64, MIPS, MIPS64, PowerPC, PowerPC64, SPARC64, x86 and x86_64 Linux + - Support for x86_64 macOS + - Support for x86_64 FreeBSD [Unreleased]: https://github.com/japaric/syscall.rs/compare/v0.1.0...HEAD diff --git a/src/platform/linux-aarch64/mod.rs b/src/platform/linux-aarch64/mod.rs index 9c79e6e..7a9906c 100644 --- a/src/platform/linux-aarch64/mod.rs +++ b/src/platform/linux-aarch64/mod.rs @@ -37,7 +37,7 @@ pub unsafe fn syscall1(n: usize, a1: usize) -> usize { pub unsafe fn syscall2(n: usize, a1: usize, a2: usize) -> usize { let ret: usize; asm!("svc 0" - : "={r0}"(ret) + : "={x0}"(ret) : "{x8}"(n) "{x0}"(a1) "{x1}"(a2) : "memory" "cc" : "volatile");