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