summaryrefslogtreecommitdiff
path: root/x86_64/README
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2008-09-10 22:15:26 +0200
committerNiels Möller <nisse@lysator.liu.se>2008-09-10 22:15:26 +0200
commiteec8e84c9923cc11a52d8273b5b28af9403e3462 (patch)
treebd0be1edb8da5ae45829ca50ff610135bd83212e /x86_64/README
parentf2ffb43d9cfe2c7897ebe7325e0ef6fc74a9737a (diff)
downloadnettle-eec8e84c9923cc11a52d8273b5b28af9403e3462.tar.gz
*** empty log message ***
Rev: nettle/ChangeLog:1.16 Rev: nettle/x86_64/README:1.1
Diffstat (limited to 'x86_64/README')
-rw-r--r--x86_64/README25
1 files changed, 25 insertions, 0 deletions
diff --git a/x86_64/README b/x86_64/README
new file mode 100644
index 00000000..95db7fee
--- /dev/null
+++ b/x86_64/README
@@ -0,0 +1,25 @@
+ABI, according to http://www.x86-64.org/documentation/abi-0.99.pdf:
+
+Up to 6 integer and pointer arguments are passed in registers. Nine
+registers, %rax, %rcx, %rdx, %rsi, %rdi and %r8-%r12 can be used
+freely. Integers and pointers are returned in %rax.
+
+Registers May be Argument
+ clobbered number
+
+%rax Y
+%rbx
+%rcx Y 4
+%rdx Y 3
+%rbp
+%rsi Y 2
+%rdi Y 1
+%rsp (SP)
+%r8 Y 5
+%r9 Y 6
+%r10 Y
+%r11 Y
+%r12
+%r13
+%r14
+%r15