PERFORCE change 48802 for review

Juli Mallett jmallett at FreeBSD.org
Fri Mar 12 11:04:12 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=48802

Change 48802 by jmallett at jmallett_oingo on 2004/03/12 11:03:48

	More consistently use the XKSEG_START, which is completely
	wrong, luckily.  Add a real copyright.

Affected files ...

.. //depot/projects/mips/sys/mips/include/tlb.h#4 edit

Differences ...

==== //depot/projects/mips/sys/mips/include/tlb.h#4 (text+ko) ====

@@ -1,12 +1,29 @@
 /*-
- * Author:	Juli Mallett <jmallett at FreeBSD.org>
- * Date:	June 06, 2003
- * Description:
- * 	Header describing TLB interfaces on the MIPS.
+ * Copyright (c) 2004 Juli Mallett <jmallett at FreeBSD.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
- * This file is in the public domain.
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
  *
- * $FreeBSD$
+ * $P4: //depot/projects/mips/sys/mips/include/tlb.h#4 $
  */
 
 #ifndef	_MACHINE_TLB_H_
@@ -15,7 +32,7 @@
 extern pt_entry_t *kptmap;
 extern vm_size_t kptsize;
 
-#define	tlb_pte_index(va)	(((va) & ~VM_MIN_KERNEL_ADDRESS) >> PAGE_SHIFT)
+#define	tlb_pte_index(va)	(((va) - (MIPS_XKSEG_START)) >> PAGE_SHIFT)
 #define	tlb_pte_find(t,va)	(&(t)[tlb_pte_index((va))])
 
 void tlb_bootstrap(vm_size_t, vm_offset_t (*)(vm_size_t));


More information about the p4-projects mailing list