aboutsummaryrefslogtreecommitdiff
path: root/lib/arch/x86_64/README.md
blob: 7420bf337d6ffcacb4b42b44e115ce545c006bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# x86_64 (SystemV)
Provide an implementation of the platform specific API as required in
[`api.h`](../api.h) according to the `x86_64 SystemV ABI`.

## Notes: SystemV ABI
- Integer/pointer arguments via `rdi`, `rsi`, `rdx`, `rcx`, `r8`, `r9`
- Integer/pointer return values via `rax`
- Callee saved registers `rbx`, `rbp`, `r12``r15`

## References
- [johannst x86_64 notes](https://johannst.github.io/notes/arch/x86_64.html)
- [x86_64 SystemV ABI](https://www.uclibc.org/docs/psABI-x86_64.pdf)