]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/vm_param.h
xnu-517.9.4.tar.gz
[apple/xnu.git] / osfmk / mach / ppc / vm_param.h
1
2 /*
3 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 *
5 * @APPLE_LICENSE_HEADER_START@
6 *
7 * The contents of this file constitute Original Code as defined in and
8 * are subject to the Apple Public Source License Version 1.1 (the
9 * "License"). You may not use this file except in compliance with the
10 * License. Please obtain a copy of the License at
11 * http://www.apple.com/publicsource and read it before using this file.
12 *
13 * This Original Code and all software distributed under the License are
14 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
18 * License for the specific language governing rights and limitations
19 * under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /*
24 * @OSF_COPYRIGHT@
25 */
26 #ifndef _MACH_PPC_VM_PARAM_H_
27 #define _MACH_PPC_VM_PARAM_H_
28
29 #define BYTE_SIZE 8 /* byte size in bits */
30
31 #define PPC_PGBYTES 4096 /* bytes per ppc page */
32 #define PPC_PGSHIFT 12 /* number of bits to shift for pages */
33
34 #define VM_MAX_PAGE_ADDRESS 0xFFFFFFFFFFFFF000ULL
35
36 #define VM_MIN_ADDRESS ((vm_offset_t) 0)
37 #define VM_MAX_ADDRESS ((vm_offset_t) (VM_MAX_PAGE_ADDRESS & 0xFFFFFFFF))
38
39 #define VM_MIN_KERNEL_ADDRESS ((vm_offset_t) 0x00001000)
40
41 #define VM_MAX_KERNEL_ADDRESS ((vm_offset_t) 0xDFFFFFFF)
42
43 #define USER_STACK_END ((vm_offset_t) 0xffff0000U)
44
45 #define KERNEL_STACK_SIZE (4 * PPC_PGBYTES)
46 #define INTSTACK_SIZE (5 * PPC_PGBYTES)
47
48 #endif /* _PPC_VM_PARAM_H_ */