diff options
author | Roland McGrath <roland@gnu.org> | 2001-08-17 05:26:09 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-08-17 05:26:09 +0000 |
commit | 133adce055bdc97707cb7c7a99a1df1551177589 (patch) | |
tree | b7ee5e6cc95c3970523a00824da7d57f81f03fbb | |
parent | dee983681855f5615f32a99b2319bdfc91bac2b5 (diff) |
2001-08-16 Roland McGrath <roland@frob.com>
* 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.
-rw-r--r-- | boot/userland-boot.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; +} |