From 80b8382cd7ba7a7bfda6f29d0d8daa83b37eeb04 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Thu, 25 Aug 2022 18:40:19 -0600 Subject: [PATCH] Fix aarch64 kfx size --- src/context/arch/aarch64.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/arch/aarch64.rs b/src/context/arch/aarch64.rs index 207cc859..c1141d00 100644 --- a/src/context/arch/aarch64.rs +++ b/src/context/arch/aarch64.rs @@ -18,8 +18,8 @@ use crate::syscall::FloatRegisters; /// This must be done, as no locks can be held on the stack during switch pub static CONTEXT_SWITCH_LOCK: AtomicBool = AtomicBool::new(false); -//TODO: find out ideal size -pub const KFX_SIZE: usize = 512; +// 512 bytes for registers, extra bytes for fpcr and fpsr +pub const KFX_SIZE: usize = 1024; pub const KFX_ALIGN: usize = 16; #[derive(Clone, Debug)] -- GitLab