Module: xenomai-3 Branch: next Commit: d6be3d20817c31eb9dda960168663640423cb399 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=d6be3d20817c31eb9dda960168663640423cb399
Author: Don Mahurin <d...@mperpetuo.com> Date: Fri May 8 10:39:32 2015 -0700 lib/cobalt/arm64: implement syscall for armv8/aarch64 --- lib/cobalt/arch/arm64/include/asm/xenomai/syscall.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cobalt/arch/arm64/include/asm/xenomai/syscall.h b/lib/cobalt/arch/arm64/include/asm/xenomai/syscall.h index 8f48eb1..1d5806c 100644 --- a/lib/cobalt/arch/arm64/include/asm/xenomai/syscall.h +++ b/lib/cobalt/arch/arm64/include/asm/xenomai/syscall.h @@ -88,6 +88,7 @@ #define __sys2(x) #x #define __sys1(x) __sys2(x) +#ifndef __aarch64__ #ifdef __ARM_EABI__ #define __SYS_REG , "r7" #define __SYS_REG_DECL register unsigned long __r7 __asm__ ("r7") @@ -102,6 +103,13 @@ #define __NR_OABI_SYSCALL_BASE 0x900000 #define __SYS_CALLOP "swi\t" __sys1(__NR_OABI_SYSCALL_BASE + XENO_ARM_SYSCALL) "" #endif +#else +#define __SYS_REG , "r8" +#define __SYS_REG_DECL register unsigned long __r8 __asm__ ("r8") +#define __SYS_REG_SET __r8 = XENO_ARM_SYSCALL +#define __SYS_REG_INPUT ,"r" (__r8) +#define __SYS_CALLOP "svc\t0" +#endif #define XENOMAI_DO_SYSCALL(nr, op, args...) \ ({ \ _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git