From 17ba0a3429f394522db806ddfbf03f859fbd74b4 Mon Sep 17 00:00:00 2001 From: occheung Date: Fri, 8 Oct 2021 10:59:40 +0800 Subject: [PATCH] riscv32: align stack to 4k boundary --- src/arch/riscv32.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/riscv32.rs b/src/arch/riscv32.rs index 54e5a01..16303be 100644 --- a/src/arch/riscv32.rs +++ b/src/arch/riscv32.rs @@ -44,7 +44,7 @@ use core::mem; use stack::Stack; -pub const STACK_ALIGNMENT: usize = 16; +pub const STACK_ALIGNMENT: usize = 4096; #[derive(Debug, Clone, Copy)] #[repr(transparent)]