1 /* Wrapper for setting errno.
3 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
11 /* This routine is jumped to by all the syscall handlers, to stash
12 * an error number into errno. */
13 int __syscall_error(void) attribute_hidden;
14 int __syscall_error(void)
16 register int err_no __asm__ ("%rcx");
17 __asm__ ("mov %rax, %rcx\n\t"