forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user