diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-18 14:12:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:18:48 +0100 |
commit | ffcd542fe20b072cdb2b38ff36a62a2c62a4c6f2 (patch) | |
tree | 0aee7287e94f453d852441da5c0abe5797bf8b44 /testsuite/timeout01 | |
parent | Move shell items to separate file (diff) | |
download | rtems-libbsd-ffcd542fe20b072cdb2b38ff36a62a2c62a4c6f2.tar.bz2 |
Move TIMEOUT(9) and ZONE(9) initialization
Delete most of virtual memory support.
Diffstat (limited to 'testsuite/timeout01')
-rw-r--r-- | testsuite/timeout01/init.c | 1 | ||||
-rw-r--r-- | testsuite/timeout01/timeout_helper.c | 24 | ||||
-rw-r--r-- | testsuite/timeout01/timeout_helper.h | 1 |
3 files changed, 0 insertions, 26 deletions
diff --git a/testsuite/timeout01/init.c b/testsuite/timeout01/init.c index 4afddc70..f74a1b80 100644 --- a/testsuite/timeout01/init.c +++ b/testsuite/timeout01/init.c @@ -49,7 +49,6 @@ static void Init(rtems_task_argument arg) sc = rtems_bsd_initialize(); assert(sc == RTEMS_SUCCESSFUL); - timeout_table_init(); callout_tick_task_init(); timeout_test(); diff --git a/testsuite/timeout01/timeout_helper.c b/testsuite/timeout01/timeout_helper.c index 060fef0b..343651df 100644 --- a/testsuite/timeout01/timeout_helper.c +++ b/testsuite/timeout01/timeout_helper.c @@ -39,30 +39,6 @@ #include "timeout_helper.h" -void timeout_table_init() -{ - size_t size = 0; - caddr_t v = 0; - void* firstaddr = 0; - - /* calculates how much memory is needed */ - v = kern_timeout_callwheel_alloc(v); - - /* allocate memory */ - size = (size_t)v; - firstaddr = malloc(round_page(size)); - assert(firstaddr != NULL); - - /* now set correct addresses for callwheel */ - v = (caddr_t) firstaddr; - v = kern_timeout_callwheel_alloc(v); - - assert((size_t)((void *)v - firstaddr) == size); - - /* Initialize the callouts we just allocated. */ - kern_timeout_callwheel_init(); -} - #define CALLOUT_TICK_TASK_PRIO (PRIORITY_DEFAULT_MAXIMUM - 1) #define CALLOUT_TICK_TASK_STACK_SIZE (1024) #define CALLOUT_TICK_TASK_NAME rtems_build_name('C', 'O', 'U', 'T') diff --git a/testsuite/timeout01/timeout_helper.h b/testsuite/timeout01/timeout_helper.h index 7e5acce1..050c592e 100644 --- a/testsuite/timeout01/timeout_helper.h +++ b/testsuite/timeout01/timeout_helper.h @@ -36,7 +36,6 @@ extern "C" { #endif /* __cplusplus */ -void timeout_table_init(void); void callout_tick_task_init(void); #ifdef __cplusplus |