corrects stack alignment
This commit is contained in:
@@ -139,7 +139,7 @@ If floating point support:
|
||||
Stack Bottom: (higher memory address) */
|
||||
|
||||
LOAD t0, TX_THREAD_STACK_END_OFFSET(a0) // Pickup end of stack area
|
||||
andi t0, t0, -4*REGBYTES // Ensure alignment (16-byte for RV32 & 32-byte for RV64)
|
||||
andi t0, t0, -16 // Ensure 16-byte alignment
|
||||
|
||||
/* Actually build the stack frame. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user