summaryrefslogtreecommitdiff
path: root/i386/intel/pmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386/intel/pmap.c')
-rw-r--r--i386/intel/pmap.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 2d66bf1..fc56e87 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -83,12 +83,12 @@
#ifdef ORC
#define OLIVETTICACHE 1
-#endif ORC
+#endif /* ORC */
#ifndef OLIVETTICACHE
#define WRITE_PTE(pte_p, pte_entry) *(pte_p) = (pte_entry);
#define WRITE_PTE_FAST(pte_p, pte_entry) *(pte_p) = (pte_entry);
-#else OLIVETTICACHE
+#else /* OLIVETTICACHE */
#error might not work anymore
/* This gross kludgery is needed for Olivetti XP7 & XP9 boxes to get
@@ -125,7 +125,7 @@ pt_entry_t *pte_p, pte_entry;
#define WRITE_PTE_FAST(pte_p, pte_entry)*pte_p = pte_entry;
-#endif OLIVETTICACHE
+#endif /* OLIVETTICACHE */
/*
* Private data structures.
@@ -349,7 +349,7 @@ lock_data_t pmap_system_lock;
} \
}
-#else NCPUS > 1
+#else /* NCPUS > 1 */
#define SPLVM(spl)
#define SPLX(spl)
@@ -370,7 +370,7 @@ lock_data_t pmap_system_lock;
} \
}
-#endif NCPUS > 1
+#endif /* NCPUS > 1 */
#define MAX_TBIS_SIZE 32 /* > this -> TBIA */ /* XXX */
@@ -380,11 +380,11 @@ lock_data_t pmap_system_lock;
flush(); \
flush_tlb(); \
}
-#else i860
+#else /* i860 */
#define INVALIDATE_TLB(s, e) { \
flush_tlb(); \
}
-#endif i860
+#endif /* i860 */
#if NCPUS > 1
@@ -415,7 +415,7 @@ typedef struct pmap_update_list *pmap_update_list_t;
struct pmap_update_list cpu_update_list[NCPUS];
-#endif NCPUS > 1
+#endif /* NCPUS > 1 */
/*
* Other useful macros.
@@ -450,7 +450,7 @@ pt_entry_t *kernel_page_dir;
void pmap_remove_range(); /* forward */
#if NCPUS > 1
void signal_cpus(); /* forward */
-#endif NCPUS > 1
+#endif /* NCPUS > 1 */
#if i860
/*
@@ -520,7 +520,7 @@ void ptep_check(ptep)
panic("pte count");
}
}
-#endif DEBUG_PTE_PAGE
+#endif /* DEBUG_PTE_PAGE */
/*
* Map memory at initialization. The physical addresses being
@@ -614,7 +614,7 @@ void pmap_bootstrap()
#if NCPUS > 1
lock_init(&pmap_system_lock, FALSE); /* NOT a sleep lock */
-#endif NCPUS > 1
+#endif /* NCPUS > 1 */
simple_lock_init(&kernel_pmap->lock);
@@ -852,7 +852,7 @@ void pmap_init()
simple_lock_init(&up->lock);
up->count = 0;
}
-#endif NCPUS > 1
+#endif /* NCPUS > 1 */
/*
* Indicate that the PMAP module is now fully initialized.
@@ -1126,7 +1126,7 @@ void pmap_remove_range(pmap, va, spte, epte)
#if DEBUG_PTE_PAGE
if (pmap != kernel_pmap)
ptep_check(get_pte_page(spte));
-#endif DEBUG_PTE_PAGE
+#endif /* DEBUG_PTE_PAGE */
num_removed = 0;
num_unwired = 0;
@@ -1730,7 +1730,7 @@ Retry:
e = e->next;
}
}
-#endif DEBUG
+#endif /* DEBUG */
/*
* Add new pv_entry after header.
@@ -1888,9 +1888,9 @@ void pmap_copy(dst_pmap, src_pmap, dst_addr, len, src_addr)
{
#ifdef lint
dst_pmap++; src_pmap++; dst_addr++; len++; src_addr++;
-#endif lint
+#endif /* lint */
}
-#endif 0
+#endif /* 0 */
/*
* Routine: pmap_collect
@@ -2014,7 +2014,7 @@ void pmap_activate(my_pmap, th, my_cpu)
{
PMAP_ACTIVATE(my_pmap, th, my_cpu);
}
-#endif 0
+#endif /* 0 */
/*
* Routine: pmap_deactivate
@@ -2031,10 +2031,10 @@ void pmap_deactivate(pmap, th, which_cpu)
{
#ifdef lint
pmap++; th++; which_cpu++;
-#endif lint
+#endif /* lint */
PMAP_DEACTIVATE(pmap, th, which_cpu);
}
-#endif 0
+#endif /* 0 */
/*
* Routine: pmap_kernel
@@ -2046,7 +2046,7 @@ pmap_t pmap_kernel()
{
return (kernel_pmap);
}
-#endif 0
+#endif /* 0 */
/*
* pmap_zero_page zeros the specified (machine independent) page.
@@ -2065,7 +2065,7 @@ pmap_zero_page(phys)
while (i--)
zero_phys(phys++);
}
-#endif 0
+#endif /* 0 */
/*
* pmap_copy_page copies the specified (machine independent) page.
@@ -2087,7 +2087,7 @@ pmap_copy_page(src, dst)
dst += INTEL_PGBYTES;
}
}
-#endif 0
+#endif /* 0 */
/*
* Routine: pmap_pageable
@@ -2111,7 +2111,7 @@ pmap_pageable(pmap, start, end, pageable)
{
#ifdef lint
pmap++; start++; end++; pageable++;
-#endif lint
+#endif /* lint */
}
/*
@@ -2528,7 +2528,7 @@ void pmap_update_interrupt()
splx(s);
}
-#else NCPUS > 1
+#else /* NCPUS > 1 */
/*
* Dummy routine to satisfy external reference.
*/
@@ -2536,7 +2536,7 @@ void pmap_update_interrupt()
{
/* should never be called. */
}
-#endif NCPUS > 1
+#endif /* NCPUS > 1 */
#if i860 /* akp */
void set_dirbase(dirbase)
@@ -2546,7 +2546,7 @@ void set_dirbase(dirbase)
/*flush_tlb();*/
flush_and_ctxsw(dirbase);
}
-#endif i860
+#endif /* i860 */
#ifdef i386
/* Unmap page 0 to trap NULL references. */