diff options
author | rwatson <rwatson@FreeBSD.org> | 2011-01-04 14:49:54 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2011-01-04 14:49:54 +0000 |
commit | b5469e8b581b388e373b5a39d23cc88058622db2 (patch) | |
tree | e0d5d75c0d8583fa305bc8fca00f7523da80fddf /sys/i386/include/pmap.h | |
parent | cdb6d8e9a40ffe79e58357fb15b6a624f27c9e6e (diff) | |
download | FreeBSD-src-b5469e8b581b388e373b5a39d23cc88058622db2.zip FreeBSD-src-b5469e8b581b388e373b5a39d23cc88058622db2.tar.gz |
Make "options XENHVM" compile for i386, not just amd64 -- a largely
mechanical change. This opens the door for using PV device drivers
under Xen HVM on i386, as well as more general harmonisation of i386
and amd64 Xen support in FreeBSD.
Reviewed by: cperciva
MFC after: 3 weeks
Diffstat (limited to 'sys/i386/include/pmap.h')
-rw-r--r-- | sys/i386/include/pmap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h index a710f4b..3d09588 100644 --- a/sys/i386/include/pmap.h +++ b/sys/i386/include/pmap.h @@ -208,7 +208,7 @@ extern pd_entry_t *IdlePTD; /* physical address of "Idle" state directory */ */ #define vtophys(va) pmap_kextract((vm_offset_t)(va)) -#ifdef XEN +#if defined(XEN) #include <sys/param.h> #include <machine/xen/xen-os.h> #include <machine/xen/xenvar.h> @@ -315,7 +315,9 @@ pmap_kextract(vm_offset_t va) } return (pa); } +#endif +#if !defined(XEN) #define PT_UPDATES_FLUSH() #endif |