summaryrefslogtreecommitdiff
path: root/boot/boot_script.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-17 10:28:22 +0000
committerRoland McGrath <roland@gnu.org>2001-08-17 10:28:22 +0000
commitafc455ff671ddb540ebe14b6c6a3b96e569496c4 (patch)
treec037abd9f1522156be20a0faa65ae2fe3e4362e0 /boot/boot_script.h
parent16f26b53445c06f8ce9f3d1100b92cce4653563e (diff)
2001-08-17 Roland McGrath <roland@frob.com>
* 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.
Diffstat (limited to 'boot/boot_script.h')
-rw-r--r--boot/boot_script.h4
1 files changed, 3 insertions, 1 deletions
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. */