summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/pmap.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-03-19 06:55:37 +0000
committerjake <jake@FreeBSD.org>2003-03-19 06:55:37 +0000
commitc318ac02ebccc91a7602c8efffa7b0ea3b323fad (patch)
tree144cd22224c382c87b331ba393ed9686c632a48c /sys/sparc64/include/pmap.h
parenta47fe0ac3a860fc961841840c88a63847d6c1ede (diff)
downloadFreeBSD-src-c318ac02ebccc91a7602c8efffa7b0ea3b323fad.zip
FreeBSD-src-c318ac02ebccc91a7602c8efffa7b0ea3b323fad.tar.gz
- Remove unused cache flushing routines. These will not necessary work
on future UltraSPARC cpus for which the data cache is not direct mapped. - Move UltraSPARC I and II (spitfire, blackbird, sapphire, sabre) specific functions to spitfire.c, and add cheetah.c for UltraSPARC III specific functions. Initially just cache flushing, but there are a few other functions that will need to move here. - Add an ipi handler for data cache flushing on UltraSPARC III. - Use function pointers to select the right cache flushing functions based on cpu_impl. With this it is possible to boot single user from an mfs root on UltraSPARC III systems, including spinning up secondary processors. There is currently no support for the host to pci bridge, and no documentation for it is publically available. Thanks to Oleg Derevenetz for providing access to a system with UltraSPARC III+ cpus.
Diffstat (limited to 'sys/sparc64/include/pmap.h')
-rw-r--r--sys/sparc64/include/pmap.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/sparc64/include/pmap.h b/sys/sparc64/include/pmap.h
index b0325f9..a5fddf1 100644
--- a/sys/sparc64/include/pmap.h
+++ b/sys/sparc64/include/pmap.h
@@ -44,15 +44,9 @@
#define _MACHINE_PMAP_H_
#include <sys/queue.h>
+#include <machine/cache.h>
#include <machine/tte.h>
-#define DCACHE_COLOR_BITS (1)
-#define DCACHE_COLORS (1 << DCACHE_COLOR_BITS)
-#define DCACHE_COLOR_MASK (DCACHE_COLORS - 1)
-#define DCACHE_COLOR(va) (((va) >> PAGE_SHIFT) & DCACHE_COLOR_MASK)
-#define DCACHE_OTHER_COLOR(color) \
- ((color) ^ DCACHE_COLOR_BITS)
-
#define PMAP_CONTEXT_MAX 8192
#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.tte_list))
OpenPOWER on IntegriCloud