Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips Initial commit.



details:   https://anonhg.NetBSD.org/src/rev/9c1b9bdf6cfd
branches:  trunk
changeset: 487888:9c1b9bdf6cfd
user:      soren <soren%NetBSD.org@localhost>
date:      Wed Jun 14 15:39:55 2000 +0000

description:
Initial commit.

diffstat:

 sys/arch/sgimips/conf/INDY                |  119 +++++
 sys/arch/sgimips/conf/Makefile.sgimips    |  251 +++++++++++
 sys/arch/sgimips/conf/files.sgimips       |   85 +++
 sys/arch/sgimips/conf/std.sgimips         |   18 +
 sys/arch/sgimips/include/Makefile         |   14 +
 sys/arch/sgimips/include/ansi.h           |    3 +
 sys/arch/sgimips/include/aout_machdep.h   |    3 +
 sys/arch/sgimips/include/arcs.h           |  170 +++++++
 sys/arch/sgimips/include/asm.h            |    3 +
 sys/arch/sgimips/include/autoconf.h       |   47 ++
 sys/arch/sgimips/include/bsd-aout.h       |    3 +
 sys/arch/sgimips/include/bswap.h          |    3 +
 sys/arch/sgimips/include/bus.h            |  650 ++++++++++++++++++++++++++++++
 sys/arch/sgimips/include/cdefs.h          |    3 +
 sys/arch/sgimips/include/conf.h           |   12 +
 sys/arch/sgimips/include/cpu.h            |   31 +
 sys/arch/sgimips/include/db_machdep.h     |    6 +
 sys/arch/sgimips/include/disklabel.h      |   95 ++++
 sys/arch/sgimips/include/ecoff_machdep.h  |    3 +
 sys/arch/sgimips/include/elf_machdep.h    |    5 +
 sys/arch/sgimips/include/endian.h         |    3 +
 sys/arch/sgimips/include/endian_machdep.h |    4 +
 sys/arch/sgimips/include/float.h          |    3 +
 sys/arch/sgimips/include/ieee.h           |    3 +
 sys/arch/sgimips/include/ieeefp.h         |    3 +
 sys/arch/sgimips/include/intr.h           |  103 ++++
 sys/arch/sgimips/include/kcore.h          |    3 +
 sys/arch/sgimips/include/kdbparam.h       |    3 +
 sys/arch/sgimips/include/limits.h         |    3 +
 sys/arch/sgimips/include/lock.h           |    4 +
 sys/arch/sgimips/include/locore.h         |    3 +
 sys/arch/sgimips/include/math.h           |    3 +
 sys/arch/sgimips/include/mips_opcode.h    |    3 +
 sys/arch/sgimips/include/param.h          |   87 ++++
 sys/arch/sgimips/include/pcb.h            |    3 +
 sys/arch/sgimips/include/pci_machdep.h    |   76 +++
 sys/arch/sgimips/include/pmap.h           |    3 +
 sys/arch/sgimips/include/proc.h           |    3 +
 sys/arch/sgimips/include/profile.h        |    3 +
 sys/arch/sgimips/include/psl.h            |    3 +
 sys/arch/sgimips/include/pte.h            |    3 +
 sys/arch/sgimips/include/ptrace.h         |    3 +
 sys/arch/sgimips/include/reg.h            |    3 +
 sys/arch/sgimips/include/regdef.h         |    3 +
 sys/arch/sgimips/include/regnum.h         |    3 +
 sys/arch/sgimips/include/reloc.h          |    5 +
 sys/arch/sgimips/include/rnd.h            |    3 +
 sys/arch/sgimips/include/setjmp.h         |    3 +
 sys/arch/sgimips/include/signal.h         |    3 +
 sys/arch/sgimips/include/stdarg.h         |    3 +
 sys/arch/sgimips/include/trap.h           |    3 +
 sys/arch/sgimips/include/types.h          |    3 +
 sys/arch/sgimips/include/varargs.h        |    3 +
 sys/arch/sgimips/include/vmparam.h        |    8 +
 sys/arch/sgimips/include/z8530var.h       |   71 +++
 55 files changed, 1963 insertions(+), 0 deletions(-)

diffs (truncated from 2183 to 300 lines):

diff -r 3a566bdd98c2 -r 9c1b9bdf6cfd sys/arch/sgimips/conf/INDY
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sgimips/conf/INDY        Wed Jun 14 15:39:55 2000 +0000
@@ -0,0 +1,119 @@
+#      $NetBSD: INDY,v 1.1 2000/06/14 15:45:37 soren Exp $
+
+include                "arch/sgimips/conf/std.sgimips"
+
+# XXX _LOW _HOW og/eller TEXTADDR
+
+makeoptions    TEXTADDR=0x80002000     # O2
+#makeoptions   TEXTADDR=0x80069000     # O2 Symmon
+#makeoptions   TEXTADDR=0x88002000     # Indy
+#makeoptions   TEXTADDR=0x88069000     # Indy Symmon
+#makeoptions   TEXTADDR=0x8001c000     # IP27
+#makeoptions   TEXTADDR=0x80300000     # IP27 Symmon
+
+maxusers       32
+
+#options       SYSCALL_DEBUG
+#options       PARANOIADIAG
+
+#options       PCI_CONFIG_DUMP
+
+options        SCSI_DELAY=0
+
+#options       MIPS1
+options        MIPS3
+options        MIPS3_L2CACHE_ABSENT
+#options       MIPS3_L2CACHE_PRESENT
+options        MIPS3_5200              # XXX
+#options       MIPS4
+
+#options       MEMORY_DISK_HOOKS 
+#options       MEMORY_DISK_IS_ROOT
+#options       MEMORY_DISK_SERVER=0
+#options       MINIROOTSIZE=8192
+
+options        KTRACE
+
+options        DDB
+options        DDB_HISTORY_SIZE=100
+options        DEBUG
+options        DIAGNOSTIC
+#makeoptions   DEBUG="-g"
+
+#options       EXEC_ECOFF
+
+file-system    FFS
+file-system    NFS
+#file-system   KERNFS
+#file-system   PROCFS
+
+options        SOFTDEP
+
+options        FFS_EI
+
+options        INET
+
+options        SCSIVERBOSE
+
+options        NFS_BOOT_DHCP
+#options       NFS_BOOT_BOOTPARAM
+
+config         netbsd          root on ? type ?
+
+mainbus0       at root
+cpu0           at mainbus0
+
+# O2
+crime0                 at mainbus0 addr 0x14000000
+mace0          at mainbus0 addr 0x1f000000
+macepci0       at mace0 offset 0x080000 intr 7
+pci0           at macepci0 bus 0
+mec0           at mace0 offset 0x280000 intr 3
+pckbc0         at mace0 offset 0x320000 intr 5
+lpt0           at mace0 offset 0x380000 intr 4
+com0           at mace0 offset 0x390000 intr 4 # stride 8
+com1           at mace0 offset 0x398000 intr 4 # stride 8
+tlp*           at pci? dev ? function ?
+ne*            at pci? dev ? function ?
+fxp*           at pci? dev ? function ?
+inphy*         at mii? phy ?
+nsphy*         at mii? phy ?
+ahc0           at pci0 dev 1 function ?
+ahc1           at pci0 dev 2 function ?
+scsibus0       at ahc0 channel ?
+#scsibus1      at ahc1 channel ?
+sd*            at scsibus? target ? lun ?
+cd*            at scsibus? target ? lun ?
+
+#pckbd*                at pckbc?
+#pms*          at pckbc?
+#pmsi*         at pckbc?
+#wskbd*                at pckbd? console ?
+#wsmouse*      at pms? mux 0
+#wsmouse*      at pmsi? mux 0
+#wsdisplay*    at foofb? console ?
+
+# Indy
+#imc0          at mainbus0 addr 0x1fa00000
+#gio0          at imc0
+#eisa0                 at imc0
+
+#hpc0          at gio? addr 0x1fb80000
+#hpc1          at gio? addr 0x1fb00000
+#hpc2          at gio? addr 0x1f980000
+#sq0           at hpc0 # net 0
+#sbic0                 at hpc0 # hd 0
+#sbic1                 at hpc0 # hd 1
+
+#zsc*          at hpc0 # pbus0 device ?
+#zstty*                at zsc? channel ?
+
+#pbus0                 at hpc0
+
+#pckbc0        at pbus0 device ?
+
+
+pseudo-device  loop
+pseudo-device  pty             64
+pseudo-device  bpfilter        8
+#pseudo-device md              1
diff -r 3a566bdd98c2 -r 9c1b9bdf6cfd sys/arch/sgimips/conf/Makefile.sgimips
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sgimips/conf/Makefile.sgimips    Wed Jun 14 15:39:55 2000 +0000
@@ -0,0 +1,251 @@
+#      $NetBSD: Makefile.sgimips,v 1.1 2000/06/14 15:45:37 soren Exp $
+
+# Makefile for NetBSD
+#
+# This makefile is constructed from a machine description:
+#      config machineid
+# Most changes should be made in the machine description
+#      /sys/arch/sgimips/conf/``machineid''
+# after which you should do
+#      config machineid
+# Machine generic makefile changes should be made in
+#      /sys/arch/sgimips/conf/Makefile.sgimips
+# after which config should be rerun for all machines of that type.
+#
+# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
+#      IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
+#
+# -DTRACE      compile in kernel tracing hooks
+# -DQUOTA      compile in file system quotas
+
+# DEBUG is set to -g if debugging.
+# PROF is set to -pg if profiling.
+
+AR?=           ar
+AS?=           as
+CC?=           cc
+CPP?=          cpp
+LD?=           ld
+LORDER?=       lorder
+MKDEP?=                mkdep
+NM?=           nm
+RANLIB?=       ranlib
+SIZE?=         size
+STRIP?=                strip
+TSORT?=                tsort -q
+
+COPTS?=                -O2
+
+TEXTADDR?=     0x80002000
+
+# source tree is located via $S relative to the compilation directory
+.ifndef S
+#S!=   cd ../../../..; pwd
+S=     ../../../..
+.endif
+SGIMIPS= $S/arch/sgimips
+MIPS=  $S/arch/mips
+
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
+INCLUDES=      -I. -I$S/arch -I$S -nostdinc
+CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dsgimips
+CWARNFLAGS?=   -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes \
+               -Wpointer-arith
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
+CWARNFLAGS+=   -Wno-main
+.endif
+GP?=           -G 0
+CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
+               -mno-abicalls -mno-half-pic
+AFLAGS=                -x assembler-with-cpp -traditional-cpp -D_LOCORE
+LINKFLAGS=     -T ${MIPS}/conf/kern.ldscript.be -Ttext ${TEXTADDR} \
+               -e start ${GP}
+STRIPFLAGS=    -g -X -x
+
+%INCLUDES
+
+### find out what to use for libkern
+.include "$S/lib/libkern/Makefile.inc"
+.ifndef PROF
+LIBKERN=       ${KERNLIB}
+.else
+LIBKERN=       ${KERNLIB_PROF}
+.endif
+
+### find out what to use for libcompat
+.include "$S/compat/common/Makefile.inc"
+.ifndef PROF
+LIBCOMPAT=     ${COMPATLIB}
+.else
+LIBCOMPAT=     ${COMPATLIB_PROF}
+.endif
+
+# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
+# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
+
+NORMAL_C=      ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
+NOPROF_C=      ${CC} ${CFLAGS} ${CPPFLAGS} -c $<
+NORMAL_S=      ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
+
+%OBJS
+
+%CFILES
+
+%SFILES
+
+# load lines for config "xxx" will be emitted as:
+# xxx: ${SYSTEM_DEP} swapxxx.o
+#      ${SYSTEM_LD_HEAD}
+#      ${SYSTEM_LD} swapxxx.o
+#      ${SYSTEM_LD_TAIL}
+SYSTEM_OBJ=    locore.o locore_machdep.o
+.if !empty(IDENT:M-DMIPS1)
+SYSTEM_OBJ+=   locore_mips1.o
+.endif
+.if !empty(IDENT:M-DMIPS3)
+SYSTEM_OBJ+=   locore_mips3.o
+.endif
+SYSTEM_OBJ+=   fp.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
+SYSTEM_DEP=    Makefile ${SYSTEM_OBJ}
+SYSTEM_LD_HEAD=        @rm -f $@
+SYSTEM_LD=     @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o ; \
+               ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
+# XXX
+SYSTEM_LD_TAIL=        @echo ${LD} -T ${MIPS}/conf/kern.ldscript.be -Ttext 0x88002000 \
+               -e start ${GP} -x -o $@.high '$${SYSTEM_OBJ}' vers.o ; \
+               ${LD} -T ${MIPS}/conf/kern.ldscript.be -Ttext 0x88002000 \
+               -e start ${GP} -x -o $@.high ${SYSTEM_OBJ} vers.o swapnetbsd.o
+# XXX
+SYSTEM_LD_TAIL+=; \
+               ${SIZE} $@; chmod 755 $@ ; \
+               ${SIZE} $@.high; chmod 755 $@.high
+
+DEBUG?=
+.if ${DEBUG} == "-g"
+LINKFLAGS+=    -X
+SYSTEM_LD_TAIL+=; \
+               echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+               echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+               ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
+.else
+LINKFLAGS+=    -x
+.endif
+
+SYSTEM_LD_TAIL+=;\
+# XXX          echo elf2ecoff $@ $@.ecoff; elf2ecoff $@ $@.ecoff; \
+# XXX          chmod 755 $@.ecoff
+
+%LOAD
+
+assym.h: $S/kern/genassym.sh ${MIPS}/mips/genassym.cf
+       sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
+         < ${MIPS}/mips/genassym.cf > assym.h.tmp && \
+       mv -f assym.h.tmp assym.h
+
+
+param.c: $S/conf/param.c
+       rm -f param.c
+       cp $S/conf/param.c .
+
+param.o: param.c Makefile
+       ${NORMAL_C}
+
+ioconf.o: ioconf.c
+       ${NORMAL_C}
+
+newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+       sh $S/conf/newvers.sh
+       ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
+
+__CLEANKERNEL: .USE
+       @echo "${.TARGET}ing the kernel objects"
+       rm -f eddep *netbsd netbsd.ecoff netbsd.gdb tags *.[io] \
+         [a-z]*.s [Ee]rrs linterrs makelinks assym.h.tmp assym.h
+
+__CLEANDEPEND: .USE
+       rm -f .depend
+
+clean: __CLEANKERNEL
+
+cleandir distclean: __CLEANKERNEL __CLEANDEPEND



Home | Main Index | Thread Index | Old Index