PERFORCE change 48778 for review

Juli Mallett jmallett at FreeBSD.org
Fri Mar 12 00:21:16 PST 2004


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

Change 48778 by jmallett at jmallett_oingo on 2004/03/12 00:20:46

	Add some struct __hack...  Note that Index is 32-bits.

Affected files ...

.. //depot/projects/mips/sys/mips/include/cpufunc.h#16 edit

Differences ...

==== //depot/projects/mips/sys/mips/include/cpufunc.h#16 (text+ko) ====

@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 2002 Juli Mallett.  All rights reserved.
+ * Copyright (c) 2002-2004 Juli Mallett.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -104,13 +104,12 @@
 			 :					\
 			 : [a0] "r"(a0));			\
 	mips_barrier();						\
-}
+} struct __hack
 
-MIPS_RDRW64_COP0(entrylo0, MIPS_COP_0_TLB_LO0)
-MIPS_RDRW64_COP0(entrylo1, MIPS_COP_0_TLB_LO1)
-MIPS_RDRW64_COP0(entryhi, MIPS_COP_0_TLB_HI)
-MIPS_RDRW64_COP0(index, MIPS_COP_0_TLB_INDEX)
-MIPS_RDRW64_COP0(pagemask, MIPS_COP_0_TLB_PG_MASK)
+MIPS_RDRW64_COP0(entrylo0, MIPS_COP_0_TLB_LO0);
+MIPS_RDRW64_COP0(entrylo1, MIPS_COP_0_TLB_LO1);
+MIPS_RDRW64_COP0(entryhi, MIPS_COP_0_TLB_HI);
+MIPS_RDRW64_COP0(pagemask, MIPS_COP_0_TLB_PG_MASK);
 
 #undef	MIPS_RDRW64_COP0
 
@@ -134,14 +133,15 @@
 			 :					\
 			 : [a0] "r"(a0));			\
 	mips_barrier();						\
-}
+} struct __hack
 
-MIPS_RDRW32_COP0(compare, MIPS_COP_0_COMPARE)
-MIPS_RDRW32_COP0(config, MIPS_COP_0_CONFIG)
-MIPS_RDRW32_COP0(count, MIPS_COP_0_COUNT)
-MIPS_RDRW32_COP0(wired, MIPS_COP_0_TLB_WIRED)
-MIPS_RDRW32_COP0(cause, MIPS_COP_0_CAUSE)
-MIPS_RDRW32_COP0(status, MIPS_COP_0_STATUS)
+MIPS_RDRW32_COP0(compare, MIPS_COP_0_COMPARE);
+MIPS_RDRW32_COP0(config, MIPS_COP_0_CONFIG);
+MIPS_RDRW32_COP0(count, MIPS_COP_0_COUNT);
+MIPS_RDRW32_COP0(index, MIPS_COP_0_TLB_INDEX);
+MIPS_RDRW32_COP0(wired, MIPS_COP_0_TLB_WIRED);
+MIPS_RDRW32_COP0(cause, MIPS_COP_0_CAUSE);
+MIPS_RDRW32_COP0(status, MIPS_COP_0_STATUS);
 
 #undef	MIPS_RDRW32_COP0
 


More information about the p4-projects mailing list