Commit Graph

45 Commits

Author SHA1 Message Date
bernard 279fac7cbb [Kernel] Change RT_USING_IDLE_HOOK as simple definition. 2017-06-07 09:24:22 +08:00
geniusgogo 05052127c3 Update idle.c 2017-05-23 11:04:22 +08:00
geniusgogo 3c14a8867d Update idle.c 2017-05-22 23:53:55 +08:00
geniusgogo 662f619cf6 Update idle.c 2017-05-16 10:42:29 +08:00
xieyangrun e05186dd95 separate idle hook 2017-05-16 10:02:19 +08:00
ArdaFu 189e9b9632 [Kernel] add new hooks for support trace componment. 2016-08-09 11:29:11 +08:00
bernard 3b5c2e2f9f Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2014-09-11 12:55:18 +08:00
bernard ab786679c7 [Kernel] comments clean up. 2014-09-11 12:50:41 +08:00
Grissiom d4133990b0 kernel/idle: fix rt_thread_idle_excute in high optimization level
The rt_list_isempty has prototype of "int rt_list_isempty(const rt_list_t *l)".
So the compiler has a good reason that the rt_thread_defunct list does
not change within rt_thread_idle_excute thus optimize the "while" loop
into a "if".

So add the volatile qualifier when test against the rt_thread_defunc list.
2014-09-02 17:21:31 +08:00
Grissiom 04f432f47b kernel: let rt_thread_idle_excute loop until there is no dead thread
Out side world is difficult to tell whethere there is dead thread
remaining. If rt_thread_idle_excute only do one cleanup, it's hard to
finish cleanups outside the idle thread. So let is loop and do all the
cleanups in one call.
2013-12-21 11:31:40 +08:00
Bernard Xiong 79392bb082 Embedded GPLv2 license. 2013-06-24 17:06:09 +08:00
Bernard Xiong 4afdf44da2 add RT_KERNEL_MALLOC/FREE 2013-04-25 14:22:07 +08:00
bernard.xiong@gmail.com 975610477e Add RT_USING_MEMHEAP_AS_HEAP feature: system can use "heap" memheap as system default memory heap.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2554 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-29 12:29:03 +00:00
dzzxzz@gmail.com 9f348578e7 fixed the coding style in idle.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2503 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-20 07:55:05 +00:00
bernard.xiong@gmail.com ee11663d87 remove rt_current_module and user can use rt_module_unload to remove a module.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2458 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-28 14:24:22 +00:00
dzzxzz@gmail.com f19d8aa591 change the return type of function rt_object_is_systemobject()
using rt_bool_t instead of rt_err_t

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2150 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-02 09:20:19 +00:00
bernard.xiong@gmail.com d82a8cce21 fixed module unload issue; code cleanup for timer.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2119 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-05-16 06:18:58 +00:00
bernard.xiong@gmail.com 00548d27a1 cleanup code comments.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2044 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-14 03:50:28 +00:00
bernard.xiong@gmail.com 0f519b6721 move src\kservice.h to include\rtservice.h.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2005 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-22 06:11:44 +00:00
dzzxzz 12b5e56f46 unify the coding style of kernel
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1998 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-17 06:43:49 +00:00
bernard.xiong@gmail.com 130da0f1d9 RT_DEBUG_NOT_IN_INTERRUPT is only executed when rt_thread_defunct is not empty.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1739 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-10-05 07:00:04 +00:00
dzzxzz c0f80bdf9a cleanup kernel code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1715 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-21 03:56:42 +00:00
dzzxzz 405678552d cleanup code in ipc.c and idle.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1713 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-19 07:15:31 +00:00
qiuyiuestc@gmail.com cea21370a4 rewrite module memory allocator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1618 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-07-04 23:48:07 +00:00
bernard.xiong@gmail.com ee68988518 change the RT_DEBUG_NOT_REENT to RT_DEBUG_NOT_IN_INTERRUPT.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1503 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-14 23:59:42 +00:00
mbbill@gmail.com 864bd11802 Add reentrance check. Put kernel debug switch together.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-12 10:01:48 +00:00
wuyangyong 7bc4fe3b74 add IDLE_THREAD_STACK_SIZE in rtconfig.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1306 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-03-04 09:16:41 +00:00
bernard.xiong 30967678b1 fix compiling issue when RT_USING_HEAP is not defined.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1149 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-30 05:20:41 +00:00
bernard.xiong@gmail.com 7a80d831c9 update doxygen comments.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1132 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-29 00:04:55 +00:00
qiuyiuestc d240423d74 construct module symbol table
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1053 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-17 16:17:07 +00:00
bernard.xiong 7018ab0661 add cleanup callback function on thread exit; add IPC object reset command.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1043 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-12 10:16:33 +00:00
qiuyiuestc fb7d4122fc implement module memory allocator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1030 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-10-28 01:21:47 +00:00
mbbill a2055ef63a FIX: #endif out of position.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@959 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-09-26 14:12:17 +00:00
qiuyiuestc 7fd452b8a6 module update
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@946 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-09-25 15:30:25 +00:00
qiuyiuestc d54f2bbfc6 module update
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@905 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-09-13 01:03:09 +00:00
bernard.xiong 2e0352e653 add rt_thread_idle_excute API.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@830 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-08-05 08:16:30 +00:00
bernard.xiong 4902e69f1e change the ALIGN definition for IAR compiler.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@781 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-06-29 09:08:24 +00:00
qiuyiuestc 8b8dba661f module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@742 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-05-29 14:19:56 +00:00
bernard.xiong@gmail.com 88bfa45e7a fix thread delete issue when module is not used.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@725 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-05-22 01:13:41 +00:00
bernard.xiong@gmail.com ecea5d2b89 fix thread delete issue when module is not used.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@724 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-05-21 23:55:38 +00:00
qiuyiuestc c8efa6b331 continue...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@668 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-23 14:51:28 +00:00
qiuyiuestc b87f6d562b module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@666 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-23 14:23:23 +00:00
qiuyiuestc 38c432620f module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@663 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-21 16:59:06 +00:00
bernard.xiong 51e2d91378 add license and copyright info
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@226 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-25 12:18:53 +00:00
bernard.xiong bda4730a94 import RT-Thread RTOS 0.3.x to Google SVN
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-07-02 22:48:23 +00:00