summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/x86_64/include/rtems/asm.h
diff options
context:
space:
mode:
authorAmaan Cheval <amaan.cheval@gmail.com>2018-08-13 15:51:47 +0530
committerJoel Sherrill <joel@rtems.org>2018-08-13 10:48:20 -0500
commitab971bf5e37a057432c267175ddf12d6799a2b35 (patch)
treeebc850151dee80f7bbd28ecac40987f34516cfaa /cpukit/score/cpu/x86_64/include/rtems/asm.h
parentlibtests/POSIX: Fix warnings and style. (diff)
downloadrtems-ab971bf5e37a057432c267175ddf12d6799a2b35.tar.bz2
bsps/x86_64: Reorganize header files and compile-options
Updates #2898.
Diffstat (limited to 'cpukit/score/cpu/x86_64/include/rtems/asm.h')
-rw-r--r--cpukit/score/cpu/x86_64/include/rtems/asm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/cpu/x86_64/include/rtems/asm.h b/cpukit/score/cpu/x86_64/include/rtems/asm.h
index 36699140b7..76efc07db3 100644
--- a/cpukit/score/cpu/x86_64/include/rtems/asm.h
+++ b/cpukit/score/cpu/x86_64/include/rtems/asm.h
@@ -84,6 +84,16 @@
#define r14 REG (r14)
#define r15 REG (r15)
+/*
+ * Order of register usage for function arguments as per the calling convention
+ */
+#define REG_ARG0 rdi
+#define REG_ARG1 rsi
+#define REG_ARG2 rdx
+#define REG_ARG3 rcx
+#define REG_ARG4 r8
+#define REG_ARG5 r9
+
// XXX: eax, ax, etc., segment registers
/*