summaryrefslogtreecommitdiff
path: root/libcpu/arm/armv6/stack.c
diff options
context:
space:
mode:
authorSummerGift <[email protected]>2017-12-21 15:13:51 +0800
committerSummerGift <[email protected]>2017-12-21 15:14:23 +0800
commita4a85a28da2518be29228bb7c889e63f24f97552 (patch)
tree33ff3394996169007f8d5eb64f4c57ff1215f6b8 /libcpu/arm/armv6/stack.c
parente7b17867596dfcf51061cd03a9960eb33d23a9d2 (diff)
[libcpu]:optimize code format
Diffstat (limited to 'libcpu/arm/armv6/stack.c')
-rw-r--r--libcpu/arm/armv6/stack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpu/arm/armv6/stack.c b/libcpu/arm/armv6/stack.c
index b130459507..c2f31717b3 100644
--- a/libcpu/arm/armv6/stack.c
+++ b/libcpu/arm/armv6/stack.c
@@ -39,20 +39,20 @@
* This function will initialize thread stack
*
* @param tentry the entry of thread
- * @param parameter the parameter of entry
+ * @param parameter the parameter of entry
* @param stack_addr the beginning stack address
* @param texit the function will be called when thread exit
*
* @return stack address
*/
rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
- rt_uint8_t *stack_addr, void *texit)
+ rt_uint8_t *stack_addr, void *texit)
{
rt_uint32_t *stk;
stack_addr += sizeof(rt_uint32_t);
stack_addr = (rt_uint8_t *)RT_ALIGN_DOWN((rt_uint32_t)stack_addr, 8);
- stk = (rt_uint32_t*)stack_addr;
+ stk = (rt_uint32_t *)stack_addr;
*(--stk) = (rt_uint32_t)tentry; /* entry point */
*(--stk) = (rt_uint32_t)texit; /* lr */
*(--stk) = 0; /* r12 */