aboutsummaryrefslogtreecommitdiffstats
path: root/freebsd-5.3-xen-sparse
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk[kaf24] <kaf24@firebug.cl.cam.ac.uk[kaf24]>2005-04-30 15:20:55 +0000
committerkaf24@firebug.cl.cam.ac.uk[kaf24] <kaf24@firebug.cl.cam.ac.uk[kaf24]>2005-04-30 15:20:55 +0000
commite66cbf425214927543279005be10e187126cdd56 (patch)
treed54be45ebe0bcbbef5a48d49a5cd5191f20ba15b /freebsd-5.3-xen-sparse
parentf497950f3f6e52282b5ba70c3d95dace15785417 (diff)
downloadxen-e66cbf425214927543279005be10e187126cdd56.tar.gz
xen-e66cbf425214927543279005be10e187126cdd56.tar.bz2
xen-e66cbf425214927543279005be10e187126cdd56.zip
bitkeeper revision 1.1389.1.19 (4273a257_YthmItOayXCOoUAFw7rYA)
wrpt-disable.patch Disable writable pagetables in FreeBSD for the time being. Signed-off-by: Kip Macy <kmacy@fsmware.com>
Diffstat (limited to 'freebsd-5.3-xen-sparse')
-rw-r--r--freebsd-5.3-xen-sparse/i386-xen/include/xenpmap.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/freebsd-5.3-xen-sparse/i386-xen/include/xenpmap.h b/freebsd-5.3-xen-sparse/i386-xen/include/xenpmap.h
index b25b0b8fe6..4d5e73f9b0 100644
--- a/freebsd-5.3-xen-sparse/i386-xen/include/xenpmap.h
+++ b/freebsd-5.3-xen-sparse/i386-xen/include/xenpmap.h
@@ -59,7 +59,9 @@ void pmap_ref(pt_entry_t *pte, unsigned long ma);
#define PMAP_DEC_REF_PAGE(a)
#endif
+#if 0
#define WRITABLE_PAGETABLES
+#endif
#define ALWAYS_SYNC 0
#ifdef PT_DEBUG
@@ -118,18 +120,18 @@ void pd_set(struct pmap *pmap, vm_paddr_t *ptr, vm_paddr_t val, int type);
#define PT_SET_VA(_ptp,_npte,sync) do { \
PMAP_REF((_ptp), xpmap_ptom(_npte)); \
- xen_queue_pt_update((pt_entry_t *)vtomach(_ptp), \
+ xen_queue_pt_update(vtomach(_ptp), \
xpmap_ptom(_npte)); \
if (sync || ALWAYS_SYNC) xen_flush_queue(); \
} while (/*CONSTCOND*/0)
#define PT_SET_VA_MA(_ptp,_npte,sync) do { \
PMAP_REF((_ptp), (_npte)); \
- xen_queue_pt_update((pt_entry_t *)vtomach(_ptp), _npte);\
+ xen_queue_pt_update(vtomach(_ptp), _npte); \
if (sync || ALWAYS_SYNC) xen_flush_queue(); \
} while (/*CONSTCOND*/0)
#define PT_CLEAR_VA(_ptp, sync) do { \
PMAP_REF((pt_entry_t *)(_ptp), 0); \
- xen_queue_pt_update((pt_entry_t *)vtomach(_ptp), 0); \
+ xen_queue_pt_update(vtomach(_ptp), 0); \
if (sync || ALWAYS_SYNC) \
xen_flush_queue(); \
} while (/*CONSTCOND*/0)