|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv2 2/5] arch/arm64: Define the size of callee-saved-registers for thread switch
Hi, On 4/18/19 9:11 AM, Jia He wrote: From: Wei Chen <wei.chen@xxxxxxx> In thread context switch, we will save the callee-saved registers (x19 ~ x28) and Frame Point Register and Link Register to prev's thread stack: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0024a/ch09s01s01.html It is a bit odd to point to the Cortex-A programmer guide when this code is meant to be generic. How about point to the AAPCS64 [1] instead? Signed-off-by: Wei Chen <wei.chen@xxxxxxx> Signed-off-by: Jianyong Wu <jianyong.wu@xxxxxxx> Signed-off-by: Jia He <justin.he@xxxxxxx> --- arch/arm/arm64/include/uk/asm/lcpu.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/arm64/include/uk/asm/lcpu.h b/arch/arm/arm64/include/uk/asm/lcpu.h index 6138d3b..b1bca0a 100644 --- a/arch/arm/arm64/include/uk/asm/lcpu.h +++ b/arch/arm/arm64/include/uk/asm/lcpu.h @@ -44,6 +44,15 @@ #define __TRAP_STACK_SIZE 288 #define __SP_OFFSET 272 #define __SP_EL0_OFFSET 280 + +/* + * In thread context switch, we will save the callee-saved registers + * (x19 ~ x28) and Frame Point Register and Link Register to prev's + * thread stack: + * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0024a/ch09s01s01.html Ditto.
[1] http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf -- Julien Grall _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |