aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mm.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2012-09-12 20:21:02 +0100
committerKeir Fraser <keir@xen.org>2012-09-12 20:21:02 +0100
commit5df3f4b7b92dd26797a5747e86d02a803bdbcd43 (patch)
tree7ca08c7f45b2899ab73e0392fed027fca75b501a /xen/include/asm-x86/mm.h
parent15a9f34d1b1a6c50f2da046a6e4c6726a230d089 (diff)
downloadxen-5df3f4b7b92dd26797a5747e86d02a803bdbcd43.tar.gz
xen-5df3f4b7b92dd26797a5747e86d02a803bdbcd43.tar.bz2
xen-5df3f4b7b92dd26797a5747e86d02a803bdbcd43.zip
x86: Remove CONFIG_COMPAT ifdef'ery from arch/x86 -- it is always defined.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/mm.h')
-rw-r--r--xen/include/asm-x86/mm.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h
index 3c1336c1a9..6e1e57cd7c 100644
--- a/xen/include/asm-x86/mm.h
+++ b/xen/include/asm-x86/mm.h
@@ -473,7 +473,6 @@ TYPE_SAFE(unsigned long,mfn);
#define SHARED_M2P_ENTRY (~0UL - 1UL)
#define SHARED_M2P(_e) ((_e) == SHARED_M2P_ENTRY)
-#ifdef CONFIG_COMPAT
#define compat_machine_to_phys_mapping ((unsigned int *)RDWR_COMPAT_MPT_VIRT_START)
#define _set_gpfn_from_mfn(mfn, pfn) ({ \
struct domain *d = page_get_owner(__mfn_to_page(mfn)); \
@@ -483,15 +482,6 @@ TYPE_SAFE(unsigned long,mfn);
(compat_machine_to_phys_mapping[(mfn)] = (unsigned int)(entry))), \
machine_to_phys_mapping[(mfn)] = (entry)); \
})
-#else
-#define _set_gpfn_from_mfn(mfn, pfn) ({ \
- struct domain *d = page_get_owner(__mfn_to_page(mfn)); \
- if(d && (d == dom_cow)) \
- machine_to_phys_mapping[(mfn)] = SHARED_M2P_ENTRY; \
- else \
- machine_to_phys_mapping[(mfn)] = (pfn); \
- })
-#endif
/*
* Disable some users of set_gpfn_from_mfn() (e.g., free_heap_pages()) until
@@ -579,13 +569,8 @@ int map_ldt_shadow_page(unsigned int);
extern int memory_add(unsigned long spfn, unsigned long epfn, unsigned int pxm);
-#ifdef CONFIG_COMPAT
void domain_set_alloc_bitsize(struct domain *d);
unsigned int domain_clamp_alloc_bitsize(struct domain *d, unsigned int bits);
-#else
-# define domain_set_alloc_bitsize(d) ((void)0)
-# define domain_clamp_alloc_bitsize(d, b) (b)
-#endif
unsigned long domain_get_maximum_gpfn(struct domain *d);