kaniini / libucontext

ucontext implementation featuring glibc-compatible ABI
Other
106 stars 41 forks source link

aarch64: Fix return value if getcontext was used to acquire the current context #58

Closed VolkerChristian closed 3 months ago

VolkerChristian commented 1 year ago

x0 hast to be 0 in case setcontext is called with a context acquired by getcontext. Thus x0 must be stored in getcontext as 0.

kaniini commented 9 months ago

This has the side effect of not storing x1, which seems wrong to me.

kaniini commented 3 months ago

It seems fine, so I merged it. Thanks!