Author: imp
Date: Thu Jul 15 03:56:08 2010
New Revision: 210105
URL: http://svn.freebsd.org/changeset/base/210105

Log:
  Move TLB definitions to tlb.h

Modified:
  head/sys/mips/include/cpu.h
  head/sys/mips/include/tlb.h

Modified: head/sys/mips/include/cpu.h
==============================================================================
--- head/sys/mips/include/cpu.h Thu Jul 15 03:36:50 2010        (r210104)
+++ head/sys/mips/include/cpu.h Thu Jul 15 03:56:08 2010        (r210105)
@@ -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.
  */
 

Modified: head/sys/mips/include/tlb.h
==============================================================================
--- head/sys/mips/include/tlb.h Thu Jul 15 03:36:50 2010        (r210104)
+++ head/sys/mips/include/tlb.h Thu Jul 15 03:56:08 2010        (r210105)
@@ -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_ */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to