Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/vm.h
Show All 31 Lines | |||||
/* Memory attribute configuration. */ | /* Memory attribute configuration. */ | ||||
#define VM_MEMATTR_DEVICE 0 | #define VM_MEMATTR_DEVICE 0 | ||||
#define VM_MEMATTR_UNCACHEABLE 1 | #define VM_MEMATTR_UNCACHEABLE 1 | ||||
#define VM_MEMATTR_WRITE_BACK 2 | #define VM_MEMATTR_WRITE_BACK 2 | ||||
#define VM_MEMATTR_WRITE_THROUGH 3 | #define VM_MEMATTR_WRITE_THROUGH 3 | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* If defined vmstat will try to use both of these in a switch statement */ | /* If defined vmstat will try to use both of these in a switch statement */ | ||||
#define VM_MEMATTR_WRITE_COMBINING VM_MEMATTR_WRITE_THROUGH | #define VM_MEMATTR_WRITE_COMBINING VM_MEMATTR_UNCACHEABLE | ||||
#endif | #endif | ||||
#define VM_MEMATTR_DEFAULT VM_MEMATTR_WRITE_BACK | #define VM_MEMATTR_DEFAULT VM_MEMATTR_WRITE_BACK | ||||
#endif /* !_MACHINE_VM_H_ */ | #endif /* !_MACHINE_VM_H_ */ |