summaryrefslogtreecommitdiffstats
path: root/sys/arm/include/pmap.h
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2006-05-13 23:41:16 +0000
committercognet <cognet@FreeBSD.org>2006-05-13 23:41:16 +0000
commit2e58b619628d5c8e5ecbe445140aade714d9c2f3 (patch)
treead2cd12970015c6c1b03b6f9f087319ea6f2e34f /sys/arm/include/pmap.h
parent456f2593a536e19a6666580ad6ede280d3e7459e (diff)
downloadFreeBSD-src-2e58b619628d5c8e5ecbe445140aade714d9c2f3.zip
FreeBSD-src-2e58b619628d5c8e5ecbe445140aade714d9c2f3.tar.gz
Resurrect Skyeye support :
Add a new option, SKYEYE_WORKAROUNDS, which as the name suggests adds workarounds for things skyeye doesn't simulate. Specifically : - Use USART0 instead of DBGU as the console, make it not use DMA, and manually provoke an interrupt when we're done in the transmit function. - Skyeye maintains an internal counter for clock, but apparently there's no way to access it, so hack the timecounter code to return a value which is increased at every clock interrupts. This is gross, but I didn't find a better way to implement timecounters without hacking Skyeye to get the counter value. - Force the write-back of PTEs once we're done writing them, even if they are supposed to be write-through. I don't know why I have to do that.
Diffstat (limited to 'sys/arm/include/pmap.h')
-rw-r--r--sys/arm/include/pmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm/include/pmap.h b/sys/arm/include/pmap.h
index a7b08b3..c014cd5 100644
--- a/sys/arm/include/pmap.h
+++ b/sys/arm/include/pmap.h
@@ -332,12 +332,17 @@ extern int pmap_needs_pte_sync;
#endif /* ARM_NMMUS > 1 */
+#ifdef SKYEYE_WORKAROUNDS
+#define PMAP_NEEDS_PTE_SYNC 1
+#define PMAP_INCLUDE_PTE_SYNC
+#else
#if (ARM_MMU_SA1 == 1) && (ARM_NMMUS == 1)
#define PMAP_NEEDS_PTE_SYNC 1
#define PMAP_INCLUDE_PTE_SYNC
#elif (ARM_MMU_SA1 == 0)
#define PMAP_NEEDS_PTE_SYNC 0
#endif
+#endif
/*
* These macros return various bits based on kernel/user and protection.
OpenPOWER on IntegriCloud