From 133adce055bdc97707cb7c7a99a1df1551177589 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 17 Aug 2001 05:26:09 +0000 Subject: 2001-08-16 Roland McGrath * userland-boot.c (boot_script_insert_right): New function. * boot_script.h: Declare it. * boot_script.c (boot_script_exec): Use that instead of mach_port_insert_right. * boot_script.h (boot_script_exec_cmd): Change TASK arg type to task_t. * userland-boot.c: Likewise. --- boot/userland-boot.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'boot') diff --git a/boot/userland-boot.c b/boot/userland-boot.c index ed14d36a..b6f38290 100644 --- a/boot/userland-boot.c +++ b/boot/userland-boot.c @@ -80,3 +80,16 @@ boot_script_free_task (task_t task, int aborting) else mach_port_deallocate (mach_task_self (), task); } + +int +boot_script_insert_right (struct cmd *cmd , mach_port_t port) +{ + error_t err = mach_port_insert_right (cmd->task, + port, port, MACH_MSG_TYPE_COPY_SEND); + if (err) + { + error (0, err, "%s: task_resume", cmd->path); + return BOOT_SCRIPT_MACH_ERROR; + } + return 0; +} -- cgit v1.2.3