summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 16:03:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 16:03:54 +0000
commit8e30a269a21cd61ca1387e666e458e52c0b153ab (patch)
tree4d1cc760d319a170b335b9e90ea9d26162ffc687 /cpukit/libmisc
parent2007-12-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-8e30a269a21cd61ca1387e666e458e52c0b153ab.tar.bz2
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_report_statistics_plugin.c, libmisc/shell/shell.c, libmisc/shell/shell.h, score/src/objectinitializeinformation.c: Add posix_memalign. Split out management of deferred frees to subroutines. * libcsupport/src/malloc_deferred.c, libcsupport/src/posix_memalign.c: New files.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r--cpukit/libmisc/shell/shell.c8
-rw-r--r--cpukit/libmisc/shell/shell.h14
2 files changed, 13 insertions, 9 deletions
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index ea87edb145..4bbbec4033 100644
--- a/cpukit/libmisc/shell/shell.c
+++ b/cpukit/libmisc/shell/shell.c
@@ -342,17 +342,17 @@ void rtems_shell_print_env(
}
#endif
-rtems_task rtems_shell_shell(rtems_task_argument task_argument)
+rtems_task rtems_shell_task(rtems_task_argument task_argument)
{
rtems_shell_env_t * shell_env = (rtems_shell_env_t*) task_argument;
- rtems_shell_shell_loop( shell_env );
+ rtems_shell_main_loop( shell_env );
rtems_task_delete( RTEMS_SELF );
}
#define RTEMS_SHELL_MAXIMUM_ARGUMENTS 128
-rtems_boolean rtems_shell_shell_loop(
+rtems_boolean rtems_shell_main_loop(
rtems_shell_env_t *shell_env_arg
)
{
@@ -535,6 +535,6 @@ rtems_status_code rtems_shell_init (
shell_env->exit_shell = FALSE;
shell_env->forever = forever;
- return rtems_task_start(task_id,rtems_shell_shell,
+ return rtems_task_start(task_id, rtems_shell_task,
(rtems_task_argument) shell_env);
}
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h
index fbaf1165ac..d9a2a53fe7 100644
--- a/cpukit/libmisc/shell/shell.h
+++ b/cpukit/libmisc/shell/shell.h
@@ -119,7 +119,7 @@ typedef struct {
uintptr_t mdump_addr;
} rtems_shell_env_t;
-rtems_boolean rtems_shell_shell_loop(
+rtems_boolean rtems_shell_main_loop(
rtems_shell_env_t *rtems_shell_env
);
@@ -137,10 +137,14 @@ extern rtems_shell_env_t *rtems_current_shell_env;
*/
struct rtems_shell_filesystems_tt;
typedef struct rtems_shell_filesystems_tt rtems_shell_filesystems_t;
-typedef int (*rtems_shell_filesystems_mounter_t)(const char* driver,
- const char* path,
- rtems_shell_filesystems_t* fs,
- rtems_filesystem_options_t options);
+
+typedef int (*rtems_shell_filesystems_mounter_t)(
+ const char* driver,
+ const char* path,
+ rtems_shell_filesystems_t* fs,
+ rtems_filesystem_options_t options
+);
+
struct rtems_shell_filesystems_tt {
const char* name;
int driver_needed;