diff options
author | kib <kib@FreeBSD.org> | 2014-08-23 18:11:54 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-08-23 18:11:54 +0000 |
commit | a6b2e3717bb57fda6e5335144d16303dbbd6a12e (patch) | |
tree | b13fed1418c9ca2ef4eb107b08bc91cebf602a9a /sys/sparc64/include | |
parent | 06eb65b2486cbb226f54027c3e796e7af67bea20 (diff) | |
download | FreeBSD-src-a6b2e3717bb57fda6e5335144d16303dbbd6a12e.zip FreeBSD-src-a6b2e3717bb57fda6e5335144d16303dbbd6a12e.tar.gz |
For CPUs which do hardware cache line unaliasing, use direct map to
access sfbufs.
Suggested and reviewed by: alc
Tested by: Michael Moll <kvedulv@kvedulv.de>
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/vmparam.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/include/vmparam.h b/sys/sparc64/include/vmparam.h index 8e7d76c..c2f30c3 100644 --- a/sys/sparc64/include/vmparam.h +++ b/sys/sparc64/include/vmparam.h @@ -241,5 +241,8 @@ extern vm_offset_t vm_max_kernel_address; #define SFBUF #define SFBUF_MAP +#define SFBUF_OPTIONAL_DIRECT_MAP dcache_color_ignore +#include <machine/tlb.h> +#define SFBUF_PHYS_DMAP(x) TLB_PHYS_TO_DIRECT(x) #endif /* !_MACHINE_VMPARAM_H_ */ |