mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
committed by
Alan Carvalho de Assis
parent
eca7059785
commit
f8a809eb5b
@@ -210,5 +210,5 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
||||
return OK;
|
||||
}
|
||||
|
||||
return ERROR;
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
@@ -185,9 +185,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
||||
top_of_stack = (uint32_t) tcb->stack_alloc_ptr + stack_size - 4;
|
||||
|
||||
/* The MINERVA stack must be aligned at word (4 byte) boundaries; for
|
||||
* floating point use, the stack must be aligned to 8-byte addresses. If
|
||||
* necessary top_of_stack must be rounded down to the next boundary to
|
||||
* meet these alignment requirements.
|
||||
* floating point use, the stack must be aligned to 8-byte addresses.
|
||||
* If necessary top_of_stack must be rounded down to the next boundary
|
||||
* to meet these alignment requirements.
|
||||
*/
|
||||
|
||||
top_of_stack = STACK_ALIGN_DOWN(top_of_stack);
|
||||
|
||||
Reference in New Issue
Block a user