From afc455ff671ddb540ebe14b6c6a3b96e569496c4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 17 Aug 2001 10:28:22 +0000 Subject: 2001-08-17 Roland McGrath * userland-boot.c (boot_script_insert_right): Take new result parameter for send right name in target task. (boot_script_insert_task_port): New function. * boot_script.h: Update those two decls. (VAL_TASK): New macro. * boot_script.c (VAL_SYM, VAL_FUNC): Increase these constants. (builtin_symbols): Use VAL_TASK for "task-create". (boot_script_exec): Update caller of boot_script_insert_right. Treat VAL_TASK like VAL_PORT, but call boot_script_insert_task_port. --- boot/boot_script.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'boot/boot_script.h') diff --git a/boot/boot_script.h b/boot/boot_script.h index 5695328e..c436ac21 100644 --- a/boot/boot_script.h +++ b/boot/boot_script.h @@ -21,6 +21,7 @@ #define VAL_NONE 0 /* none -- function runs at exec time */ #define VAL_STR 1 /* string */ #define VAL_PORT 2 /* port */ +#define VAL_TASK 3 /* task port */ /* This structure describes a command. */ struct cmd @@ -77,7 +78,8 @@ mach_port_t boot_script_read_file (const char *file); int boot_script_task_create (struct cmd *); /* task_create + task_suspend */ int boot_script_task_resume (struct cmd *); int boot_script_prompt_task_resume (struct cmd *); -int boot_script_insert_right (struct cmd *, mach_port_t); /* same name */ +int boot_script_insert_right (struct cmd *, mach_port_t, mach_port_t *namep); +int boot_script_insert_task_port (struct cmd *, task_t, mach_port_t *namep); /* The user must define this function to clean up the `task_t' returned by boot_script_task_create. */ -- cgit v1.2.3