File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 39
39
* This function will initialize thread stack
40
40
*
41
41
* @param tentry the entry of thread
42
- * @param parameter the parameter of entry
42
+ * @param parameter the parameter of entry
43
43
* @param stack_addr the beginning stack address
44
44
* @param texit the function will be called when thread exit
45
45
*
46
46
* @return stack address
47
47
*/
48
48
rt_uint8_t * rt_hw_stack_init (void * tentry , void * parameter ,
49
- rt_uint8_t * stack_addr , void * texit )
49
+ rt_uint8_t * stack_addr , void * texit )
50
50
{
51
51
rt_uint32_t * stk ;
52
52
53
53
stack_addr += sizeof (rt_uint32_t );
54
54
stack_addr = (rt_uint8_t * )RT_ALIGN_DOWN ((rt_uint32_t )stack_addr , 8 );
55
- stk = (rt_uint32_t * )stack_addr ;
55
+ stk = (rt_uint32_t * )stack_addr ;
56
+
56
57
* (-- stk ) = (rt_uint32_t )tentry ; /* entry point */
57
58
* (-- stk ) = (rt_uint32_t )texit ; /* lr */
58
59
* (-- stk ) = 0 ; /* r12 */
You can’t perform that action at this time.
0 commit comments