summaryrefslogtreecommitdiffhomepage
path: root/doc/specs/SPEC_NEKERNEL_ABI.md
blob: c72ecabd1aa23c8cb54715c1a8053d77791ed2a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Specification of NeKernel's PEF ABI.

The PEF ABI has multiple versions depending on the ISA.

===================================

# 0: General Information (ISA agnostic)

===================================

- Arguments goes from a0 to max argument register of ISA.
- SIMD arguments uses SIMD registers.
- The ABI is stack based, rbp is preserved.

===================================

# 0: General Information (x64)

===================================

- RBP is saved.
- SIMD is saved.

===================================

# 0: General Information (ARM64)

===================================

- BP is saved.
- SIMD is saved.