aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/mm.c
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2005-02-11 18:04:56 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2005-02-11 18:04:56 +0000
commit054206d161ad06d19298132f1c3a54d2a1598270 (patch)
tree8e4829d2ba79a078e5175c2efc717e5fbcafcfb1 /extras/mini-os/mm.c
parent28268ccd6d678a5bff48c00acc014f6c9df639cc (diff)
downloadxen-054206d161ad06d19298132f1c3a54d2a1598270.tar.gz
xen-054206d161ad06d19298132f1c3a54d2a1598270.tar.bz2
xen-054206d161ad06d19298132f1c3a54d2a1598270.zip
bitkeeper revision 1.1185 (420cf3c8-bMMcsnH1kMVRwy5AQ-ecg)
Various mini-os and Xen fixes. The M2P table is now definitely accessible (read-only) from guest context. Signed-off-by: keir.fraser@cl.cam.ac.uk
Diffstat (limited to 'extras/mini-os/mm.c')
-rw-r--r--extras/mini-os/mm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/mini-os/mm.c b/extras/mini-os/mm.c
index 2bc87a5165..40a80e2ccb 100644
--- a/extras/mini-os/mm.c
+++ b/extras/mini-os/mm.c
@@ -84,6 +84,7 @@ void init_mm(void)
*/
max_free_pfn = PFN_DOWN(to_phys(pgd));
+#ifdef __i386__
{
unsigned long *pgd = (unsigned long *)start_info.pt_base;
unsigned long pte;
@@ -110,6 +111,7 @@ void init_mm(void)
(u_long)to_virt(PFN_PHYS(start_pfn)), PFN_PHYS(start_pfn),
(u_long)to_virt(PFN_PHYS(max_free_pfn)), PFN_PHYS(max_free_pfn));
init_page_allocator(PFN_PHYS(start_pfn), PFN_PHYS(max_free_pfn));
+#endif
/* Now initialise the physical->machine mapping table. */