2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
28 #endif /* KERNEL_SERVER */
29 bootstrap 1000001; /* 999999 + 2 skips */
31 #include <mach/std_types.defs>
32 #include <mach/mach_types.defs>
37 * Objects to references of type bootstrap_t are returned by:
38 * task_get_special_port(task_t,...);
39 * task_get_bootstrap(task_t,...);
43 * A task can make this call on its bootstrap port
44 * to get its privileged ports.
46 routine bootstrap_ports(
47 bootstrap : bootstrap_t;
48 out priv_host : mach_port_t;
49 out device_master : mach_port_t;
50 out wired_ledger : mach_port_t;
51 out paged_ledger : mach_port_t;
52 out host_security : mach_port_t);
55 * A task can use this call to get its argument strings.
57 routine bootstrap_arguments(
58 bootstrap : bootstrap_t;
60 out arguments : pointer_t, Dealloc);
63 * A task can use this call to get its environment strings.
65 routine bootstrap_environment(
66 bootstrap : bootstrap_t;
68 out environment : pointer_t, Dealloc);
71 * A task can use this call to indicate to its bootstrapper that it
72 * is done with its startup processing. This call is used when the
73 * task is important enough so that the bootstrap process wants to
74 * wait for it to come up before continuing with other things.
76 simpleroutine bootstrap_completed(
77 bootstrap : bootstrap_t;