PERFORCE change 29948 for review
Juli Mallett
jmallett at FreeBSD.org
Mon Apr 28 10:16:22 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=29948
Change 29948 by jmallett at 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
More information about the p4-projects
mailing list