on x64, disable the option to create user-level tasks

This commit is contained in:
Stefan Lankes 2012-09-10 15:39:51 +02:00
parent 941a7006a4
commit bffaf0bd57
2 changed files with 7 additions and 1 deletions

View file

@ -232,6 +232,7 @@ int network_shutdown(void)
return 0;
}
#if 0
static void list_fs(vfs_node_t* node, uint32_t depth)
{
int j, i = 0;
@ -272,6 +273,7 @@ static void list_root(void) {
kprintf("List of the file system:\n/\n");
list_fs(fs_root, 1);
}
#endif
int initd(void* arg)
{
@ -303,7 +305,7 @@ int initd(void* arg)
kputs("network interface is not up\n");
#endif
#if !NO_SYS
#if !NO_SYS && defined(CONFIG_X86_32)
create_user_task(&id, "/bin/rlogind", argv);
kprintf("Create rlogind with id %u\n", id);
#endif

View file

@ -802,6 +802,7 @@ static int user_entry(void* arg)
*/
int create_user_task_on_core(tid_t* id, const char* fname, char** argv, uint32_t core_id)
{
#ifdef CONFIG_X86_32
vfs_node_t* node;
int argc = 0;
size_t i, buffer_size = 0;
@ -839,6 +840,9 @@ int create_user_task_on_core(tid_t* id, const char* fname, char** argv, uint32_t
/* create new task */
return create_task(id, user_entry, load_args, NORMAL_PRIO, core_id);
#else
return -EINVAL;
#endif
}
/** @brief Used by the execve-Systemcall */