diff options
author | Roland McGrath <roland@gnu.org> | 2001-08-17 05:26:13 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-08-17 05:26:13 +0000 |
commit | c3040a1e324a55b6d8ca64395fc4bc2c99d5d00d (patch) | |
tree | aa72ee1ab876e2a2590c71e8aed093e09924a466 | |
parent | 133adce055bdc97707cb7c7a99a1df1551177589 (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.
-rw-r--r-- | boot/boot_script.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/boot/boot_script.c b/boot/boot_script.c index 205fcce4..75152b3e 100644 --- a/boot/boot_script.c +++ b/boot/boot_script.c @@ -2,15 +2,10 @@ /* Written by Shantanu Goel (goel@cs.columbia.edu). */ -#include <mach.h> +#include <mach/mach_types.h> #include <string.h> #include "boot_script.h" -/* -#include <stdio.h> -#include <stdlib.h> -*/ - /* This structure describes a symbol. */ struct sym @@ -576,15 +571,10 @@ boot_script_exec () case VAL_PORT: /* Insert send right. */ - if ((mach_port_insert_right - (cmd->task, (mach_port_t) arg->val, - (mach_port_t) arg->val, MACH_MSG_TYPE_COPY_SEND))) - { - printf ("(bootstrap): %s: Cannot insert port right %d\n", - cmd->path, arg->val); - error = BOOT_SCRIPT_MACH_ERROR; - goto done; - } + error = boot_script_insert_right (cmd, + (mach_port_t) arg->val); + if (error) + goto done; i = arg->val; p = buf + sizeof (buf); |