|
|
1.1 root 1: /*
2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
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.
11: *
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
18: * under the License.
19: *
20: * @APPLE_LICENSE_HEADER_END@
21: */
22: /*
23: * @OSF_COPYRIGHT@
24: */
25: #ifndef _MACH_PPC_VM_PARAM_H_
26: #define _MACH_PPC_VM_PARAM_H_
27:
28: #define BYTE_SIZE 8 /* byte size in bits */
29:
30: #define PPC_PGBYTES 4096 /* bytes per ppc page */
31: #define PPC_PGSHIFT 12 /* number of bits to shift for pages */
32:
33: #define VM_MIN_ADDRESS ((vm_offset_t) 0)
34: #define VM_MAX_ADDRESS ((vm_offset_t) 0xfffff000U)
35:
36: #define VM_MIN_KERNEL_ADDRESS ((vm_offset_t) 0x00001000)
37:
38: /* We map the kernel using only SR0,SR1,SR2,SR3 leaving segments alone */
39: #define VM_MAX_KERNEL_ADDRESS ((vm_offset_t) 0x3fffffff)
40:
41: #define USER_STACK_END ((vm_offset_t) 0xffff0000U)
42:
43: #define ppc_round_page(x) ((((unsigned)(x)) + PPC_PGBYTES - 1) & \
44: ~(PPC_PGBYTES-1))
45: #define ppc_trunc_page(x) (((unsigned)(x)) & ~(PPC_PGBYTES-1))
46:
47:
48: #define KERNEL_STACK_SIZE (4 * PPC_PGBYTES)
49: #define INTSTACK_SIZE (5 * PPC_PGBYTES)
50:
51: #endif /* _PPC_VM_PARAM_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.