Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/include/vmparam.h
Context not available. | |||||
#if !defined(LOCORE) | #if !defined(LOCORE) | ||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
#define VM_MIN_ADDRESS (0x0000000000000000UL) | #define VM_MIN_ADDRESS (0x0000000000000000UL) | ||||
#ifdef AIM | #define VM_MAXUSER_ADDRESS (0x3ffffffffffff000UL) | ||||
#define VM_MAXUSER_ADDRESS (0xfffffffffffff000UL) | |||||
#else | |||||
#define VM_MAXUSER_ADDRESS (0x7ffffffffffff000UL) | |||||
#endif | |||||
#define VM_MAX_ADDRESS (0xffffffffffffffffUL) | #define VM_MAX_ADDRESS (0xffffffffffffffffUL) | ||||
#else | #else | ||||
#define VM_MIN_ADDRESS ((vm_offset_t)0) | #define VM_MIN_ADDRESS ((vm_offset_t)0) | ||||
Context not available. | |||||
#ifdef BOOKE | #ifdef BOOKE | ||||
#define VM_MIN_ADDRESS 0 | #define VM_MIN_ADDRESS 0 | ||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
#define VM_MAXUSER_ADDRESS 0x7ffffffffffff000 | #define VM_MAXUSER_ADDRESS 0x3ffffffffffff000 | ||||
#else | #else | ||||
#define VM_MAXUSER_ADDRESS 0x7ffff000 | #define VM_MAXUSER_ADDRESS 0x7ffff000 | ||||
#endif | #endif | ||||
Context not available. | |||||
#define FREEBSD32_USRSTACK FREEBSD32_SHAREDPAGE | #define FREEBSD32_USRSTACK FREEBSD32_SHAREDPAGE | ||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
#ifdef AIM | |||||
#define VM_MIN_KERNEL_ADDRESS 0xe000000000000000UL | |||||
#define VM_MAX_KERNEL_ADDRESS 0xe0000001c7ffffffUL | |||||
#else | |||||
#define VM_MIN_KERNEL_ADDRESS 0xc000000000000000UL | #define VM_MIN_KERNEL_ADDRESS 0xc000000000000000UL | ||||
#define VM_MAX_KERNEL_ADDRESS 0xc0000001c7ffffffUL | #define VM_MAX_KERNEL_ADDRESS 0xc0000001c7ffffffUL | ||||
#endif | |||||
#define VM_MAX_SAFE_KERNEL_ADDRESS VM_MAX_KERNEL_ADDRESS | #define VM_MAX_SAFE_KERNEL_ADDRESS VM_MAX_KERNEL_ADDRESS | ||||
#endif | #endif | ||||
Context not available. | |||||
/* | /* | ||||
* We (usually) have a direct map of all physical memory, so provide | * We (usually) have a direct map of all physical memory, so provide | ||||
* a macro to use to get the kernel VA address for a given PA. Returns | * a macro to use to get the kernel VA address for a given PA. Check the | ||||
* 0 if the direct map is unavailable. The location of the direct map | * value of PMAP_HAS_PMAP before using. | ||||
* may not be 1:1 in future, so use of the macro is recommended. | |||||
*/ | */ | ||||
#ifndef LOCORE | |||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
#define DMAP_BASE_ADDRESS 0x0000000000000000UL | #define DMAP_BASE_ADDRESS 0xc000000000000000UL | ||||
#define DMAP_MAX_ADDRESS 0xcfffffffffffffffUL | |||||
#else | #else | ||||
#define DMAP_BASE_ADDRESS 0x00000000UL | #define DMAP_BASE_ADDRESS 0x00000000UL | ||||
#define DMAP_MAX_ADDRESS 0xbfffffffUL | |||||
#endif | #endif | ||||
#endif | |||||
#define PMAP_HAS_DMAP (hw_direct_map) | #define PMAP_HAS_DMAP (hw_direct_map) | ||||
#define PHYS_TO_DMAP(x) ({ \ | #define PHYS_TO_DMAP(x) ({ \ | ||||
Context not available. |