Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2003 10:16:20 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29948 for review
Message-ID:  <200304281716.h3SHGKHk011975@repoman.freebsd.org>

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

Change 29948 by jmallett@jmallett_dalek on 2003/04/28 10:15:24

	Choose ARCBIOS pointer size based on ARCBIOS64 knob in
	opt_arcbios.h.

Affected files ...

.. //depot/projects/mips/sys/conf/options.mips#10 edit
.. //depot/projects/mips/sys/dev/arcbios/arcbios.h#4 edit
.. //depot/projects/mips/sys/mips/conf/GENERIC#12 edit

Differences ...

==== //depot/projects/mips/sys/conf/options.mips#10 (text+ko) ====

@@ -12,3 +12,4 @@
 SGIMIPS			opt_platform.h
 
 _BYTE_ORDER		opt_endian.h
+ARCBIOS64		opt_arcbios.h

==== //depot/projects/mips/sys/dev/arcbios/arcbios.h#4 (text+ko) ====

@@ -36,6 +36,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "opt_arcbios.h"
+
 /*
  * The ARC BIOS (which is similar, but not 100% compatible with SGI ARCS)
  * specification can be found at:
@@ -78,7 +80,11 @@
 #define	ARCBIOS_ENOCONNECT	34	/* not connected */
 #endif /* sgimips */
 
-typedef	uint32_t	ArcPointer_t;/* XXX */
+#ifndef	ARCBIOS64
+typedef	uint32_t	ArcPointer_t;
+#else
+typedef	uint64_t	ArcPointer_t;
+#endif
 
 /*
  * 4.2.2: System Parameter Block

==== //depot/projects/mips/sys/mips/conf/GENERIC#12 (text+ko) ====

@@ -19,6 +19,8 @@
 
 # Hardware support
 device		arcbios			#ARCBIOS
+options 	ARCBIOS64		#ARCBIOS uses 64-bit pointers in
+					#structures.  Disable for IP22.
 
 options 	SCHED_4BSD		#A scheduler, if you please
 



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