Unverified Commit 2c5c7807 by Fabrice Fontaine Committed by Christian Brauner

src/lxc/raw_syscalls.c: fix sparc assembly

Build of lxc 3.2.1 fails with ultrasparc on: raw_syscalls.c: In function ‘lxc_raw_clone’: raw_syscalls.c:66:3: error: invalid 'asm': invalid operand output code asm volatile( ^~~ Issue has been added with commit b52e8e68 which added %g1 instead of %%g1 Fixes: - http://autobuild.buildroot.org/results/17c2319850f02f24da6fbef9656c07f86fdc5a3aSigned-off-by: 's avatarFabrice Fontaine <fontaine.fabrice@gmail.com>
parent 21560b71
......@@ -76,7 +76,7 @@ __returns_twice pid_t lxc_raw_clone(unsigned long flags, int *pidfd)
* processor status register (psr) is used instead of a
* full register.
*/
"addx %%g0, 0, %g1"
"addx %%g0, 0, %%g1"
: "=r"(g1), "=r"(o0), "=r"(o1), "=r"(o2) /* outputs */
: "r"(g1), "r"(o0), "r"(o1), "r"(o2) /* inputs */
: "%cc"); /* clobbers */
......
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