]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
arch/arm64: Save/restore link register on `clone` asm stub staging
authorSergiu Moga <sergiu@unikraft.io>
Fri, 2 May 2025 14:45:44 +0000 (17:45 +0300)
committerMichalis Pappas <michalis@unikraft.io>
Thu, 8 May 2025 06:41:33 +0000 (08:41 +0200)
commit2dd7b2bfbc08ba0893130a4081ff104a4b43ff63
tree83241305fd653010362234cb78f005e0ab967641
parent5256af1469e64eeac8190ba5f5bbb4a3394bacc1
arch/arm64: Save/restore link register on `clone` asm stub

Since we are invoking `clone` as a regular function call instead
of a system call, there is nobody to remember the asm stub entry
link register for us once we branch into the syscall. Therefore
save and restore it.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #89
arch/arm64/__clone.S