summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/mips/include/cpu.h18
-rw-r--r--sys/mips/include/tlb.h21
2 files changed, 20 insertions, 19 deletions
diff --git a/sys/mips/include/cpu.h b/sys/mips/include/cpu.h
index 614bb97..91de2b7 100644
--- a/sys/mips/include/cpu.h
+++ b/sys/mips/include/cpu.h
@@ -62,24 +62,6 @@
/* END: These are going away */
/*
- * The first TLB entry that write random hits.
- * TLB entry 0 maps the kernel stack of the currently running thread
- * TLB entry 1 maps the pcpu area of processor (only for SMP builds)
- */
-#define KSTACK_TLB_ENTRY 0
-#ifdef SMP
-#define PCPU_TLB_ENTRY 1
-#define VMWIRED_ENTRIES 2
-#else
-#define VMWIRED_ENTRIES 1
-#endif /* SMP */
-
-/*
- * The number of process id entries.
- */
-#define VMNUM_PIDS 256
-
-/*
* Exported definitions unique to mips cpu support.
*/
diff --git a/sys/mips/include/tlb.h b/sys/mips/include/tlb.h
index 1092d02..b38cf2b 100644
--- a/sys/mips/include/tlb.h
+++ b/sys/mips/include/tlb.h
@@ -29,12 +29,31 @@
#ifndef _MACHINE_TLB_H_
#define _MACHINE_TLB_H_
+/*
+ * The first TLB entry that write random hits.
+ * TLB entry 0 maps the kernel stack of the currently running thread
+ * TLB entry 1 maps the pcpu area of processor (only for SMP builds)
+ */
+#define KSTACK_TLB_ENTRY 0
+#ifdef SMP
+#define PCPU_TLB_ENTRY 1
+#define VMWIRED_ENTRIES 2
+#else
+#define VMWIRED_ENTRIES 1
+#endif /* SMP */
+
+/*
+ * The number of process id entries.
+ */
+#define VMNUM_PIDS 256
+
+extern int num_tlbentries;
+
void tlb_insert_wired(unsigned, vm_offset_t, pt_entry_t, pt_entry_t);
void tlb_invalidate_address(struct pmap *, vm_offset_t);
void tlb_invalidate_all(void);
void tlb_invalidate_all_user(struct pmap *);
void tlb_save(void);
void tlb_update(struct pmap *, vm_offset_t, pt_entry_t);
-extern int num_tlbentries;
#endif /* !_MACHINE_TLB_H_ */
OpenPOWER on IntegriCloud