|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Copyright (c) 1989 NeXT, Inc.
27: *
28: * HISTORY
29: * 17-Sep-90 Gregg Kellogg (gk) at NeXT
30: * Changed log_entry_array_t to be out-of-line. The data structure's
31: * too big to be sent in-line.
32: *
33: * 24-May-89 Gregg Kellogg (gk) at NeXT
34: * Created.
35: *
36: */
37:
38: /*
39: * interface for kern_server to kern_loader communication.
40: */
41: subsystem kern_server_reply 200;
42:
43: #include <mach/std_types.defs>
44:
45: type panic_msg_t = (MSG_TYPE_STRING,8*256);
46: type log_entry_t = struct[8] of int;
47: type log_entry_array_t = ^array[] of log_entry_t;
48: type vm_address_t = int;
49: type vm_size_t = int;
50: type macho_header_name_t = (MSG_TYPE_STRING,8*16);
51:
52: import <kernserv/kern_server_reply_types.h>;
53:
54: userprefix kern_serv_;
55:
56: /*
57: * Send panic message to kern_server and suspend.
58: */
59: routine panic (
60: boot_port : port_t;
61: panic_msg : panic_msg_t);
62:
63: /*
64: * Retreive Mach-O header information (not available directly to loadable.
65: */
66: routine section_by_name (
67: boot_port : port_t;
68: segname : macho_header_name_t;
69: sectname : macho_header_name_t;
70: out addr : vm_address_t;
71: out size : vm_size_t);
72:
73: /*
74: * Returned log information.
75: */
76: simpleroutine log_data (
77: log_port : port_t;
78: log : log_entry_array_t, dealloc);
79:
80: /*
81: * Request notification on this port.
82: */
83: skip;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.