|
|
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) 1993 NeXT, Inc.
27: */
28:
29:
30: #ifndef _MACH_PPC_VM_PARAM_H_
31: #define _MACH_PPC_VM_PARAM_H_
32:
33: #import <sys/types.h>
34:
35: #define BYTE_SIZE 8 /* byte size in bits */
36:
37: #define PPC_PGBYTES 4096 /* bytes per power pc page */
38: #define PPC_PGSHIFT 12 /* number of bits to shift for pages */
39: #define PPC_PGALIGN 12 /* power of two for page alignment */
40:
41: #define VM_MIN_ADDRESS ((vm_offset_t) 0)
42: #define VM_MAX_ADDRESS ((vm_offset_t) 0xfffff000)
43:
44: #define KERNELBASE_TEXT 0x0 /* see MACH3.0 mach/ppc/vm_param.h */
45:
46: #define ppc_round_page(x) ((((unsigned)(x)) + PPC_PGBYTES - 1) & \
47: ~(PPC_PGBYTES-1))
48: #define ppc_trunc_page(x) (((unsigned)(x)) & ~(PPC_PGBYTES-1))
49:
50: #define VM_MIN_KERNEL_ADDRESS ((vm_offset_t) 0x00004000)
51: #define VM_MAX_KERNEL_ADDRESS ((vm_offset_t) 0x3ffff000)
52:
53: /*
54: * WARNING : If you make the stack bigger, you need to check the
55: * trap code to make sure things still work...
56: */
57:
58: #define KERNSTACK_SIZE (4 * PPC_PGBYTES)
59: #define INTSTACK_SIZE (10 * PPC_PGBYTES)
60:
61: /*
62: * Maximum alignment required by any data type for this architecture.
63: */
64: #define MAX_DATA_ALIGNMENT 16 /* 16 byte alignment for LDCWS, LDCWX */
65:
66: #endif /* _MACH_PPC_VM_PARAM_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.