native,platform: relax the condition of checking sigal stack size

This commit is contained in:
Zihao Yu 2022-07-29 16:11:02 +08:00
parent 112799e02a
commit 7c9b27be20
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ static void save_example_context() {
}
static void setup_sigaltstack() {
assert(sizeof(thiscpu->sigstack) == SIGSTKSZ);
assert(sizeof(thiscpu->sigstack) >= SIGSTKSZ);
stack_t ss;
ss.ss_sp = thiscpu->sigstack;
ss.ss_size = sizeof(thiscpu->sigstack);

View file

@ -20,7 +20,7 @@ typedef struct {
uintptr_t ksp;
int cpuid;
Event ev; // similar to cause register in mips/riscv
uint8_t sigstack[8192];
uint8_t sigstack[32768];
} __am_cpu_t;
extern __am_cpu_t *__am_cpu_struct;
#define thiscpu __am_cpu_struct