summaryrefslogtreecommitdiff
path: root/libcpu/arm/lpc1100/stack.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2012-11-13 07:56:40 +0000
committerbernard.xiong <[email protected]>2012-11-13 07:56:40 +0000
commitec0cb881d83b89e4eb2a7cf2bbf2b49a34b81b0d (patch)
tree9a239474d49d7c1da4f4c7bbbbf19fd3f7ab9e80 /libcpu/arm/lpc1100/stack.c
parent6c8080043f35a4d68851c18d36ac5e51d46ef25b (diff)
remove lpc1100 because there is a cortex-m0 branch.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2406 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/arm/lpc1100/stack.c')
-rw-r--r--libcpu/arm/lpc1100/stack.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/libcpu/arm/lpc1100/stack.c b/libcpu/arm/lpc1100/stack.c
deleted file mode 100644
index 6bfa26b08a..0000000000
--- a/libcpu/arm/lpc1100/stack.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * File : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009, RT-Thread Development Team
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
- *
- * Change Logs:
- * Date Author Notes
- * 2010-01-25 Bernard first version
- */
-#include <rtthread.h>
-
-/**
- * @addtogroup LPC1100
- */
-/*@{*/
-
-/**
- * This function will initialize thread stack
- *
- * @param tentry the entry of thread
- * @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)
-{
- unsigned long *stk;
-
- stk = (unsigned long *)stack_addr;
- *(stk) = 0x01000000L; /* PSR */
- *(--stk) = (unsigned long)tentry; /* entry point, pc */
- *(--stk) = (unsigned long)texit; /* lr */
- *(--stk) = 0; /* r12 */
- *(--stk) = 0; /* r3 */
- *(--stk) = 0; /* r2 */
- *(--stk) = 0; /* r1 */
- *(--stk) = (unsigned long)parameter; /* r0 : argument */
- *(--stk) = 0; /* r7 */
- *(--stk) = 0; /* r6 */
- *(--stk) = 0; /* r5 */
- *(--stk) = 0; /* r4 */
-
- /* return task's current stack address */
- return (rt_uint8_t *)stk;
-}
-
-/*@}*/