utask_fixup_stack_len: round down, not up

Closes #3
trunk
alexis 2023-02-13 20:23:25 -07:00
parent 67d79fc935
commit 3fb16dc637
1 changed files with 1 additions and 1 deletions

View File

@ -75,6 +75,6 @@ void utask_riscv_yield(void * tas);
#define utask_decl_stack(name, size) \
unsigned char __attribute__((aligned(4))) name[size]
#define utask_fixup_stack_len(len) ((((len) + 3) / 4) * 4)
#define utask_fixup_stack_len(len) ((len) & ~0x3)
#endif // !defined(UTASK_RISCV_H)