Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2004 00:21:15 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 48778 for review
Message-ID:  <200403120821.i2C8LFAp093664@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=48778

Change 48778 by jmallett@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
 



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