Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 03:56:08 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210105 - head/sys/mips/include
Message-ID:  <201007150356.o6F3u8Y9071652@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007150356.o6F3u8Y9071652>