Blame sysdeps/unix/x86_64/sysdep.h

Packit Service 82fcde
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#include <sysdeps/unix/sysdep.h>
Packit Service 82fcde
#include <sysdeps/x86_64/sysdep.h>
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__ASSEMBLER__
Packit Service 82fcde
Packit Service 82fcde
/* This is defined as a separate macro so that other sysdep.h files
Packit Service 82fcde
   can include this one and then redefine DO_CALL.  */
Packit Service 82fcde
Packit Service 82fcde
#define DO_CALL(syscall_name, args)					      \
Packit Service 82fcde
  lea SYS_ify (syscall_name), %rax;					      \
Packit Service 82fcde
  syscall
Packit Service 82fcde
Packit Service 82fcde
#define	r0		%rax	/* Normal return-value register.  */
Packit Service 82fcde
#define	r1		%rbx	/* Secondary return-value register.  */
Packit Service 82fcde
#define MOVE(x,y)	movq x, y
Packit Service 82fcde
Packit Service 82fcde
#endif	/* __ASSEMBLER__ */