├── NDTools-4 ├── gcc ├── gcc-1.36 │ ├── cpp.kys │ ├── cpp.pgs │ ├── cpp.tps │ ├── cpp.vrs │ ├── stamp-gnulib2 │ ├── config.h │ ├── version.c │ ├── config.status │ ├── config │ │ ├── tm-decstatn.h │ │ ├── tm-mips-bsd.h │ │ ├── tm-mips-sysv.h │ │ ├── tm-sun3os3.h │ │ ├── tm-sun3os3nf.h │ │ ├── tm-sun3-nfp.h │ │ ├── tm-isi68-nfp.h │ │ ├── xm-3b1.h │ │ ├── xm-altos3068.h │ │ ├── xm-hp9k320.h │ │ ├── tm-convex1.h │ │ ├── tm-convex2.h │ │ ├── xm-vaxv.h │ │ ├── xm-genix.h │ │ ├── xm-iris.h │ │ ├── tm-newsgas.h │ │ ├── tm-hp9k310g.h │ │ ├── tm-hp9k320g.h │ │ ├── tm-sun4os3.h │ │ ├── tm-hp9k3bsd.h │ │ ├── tm-compaq.h │ │ ├── xm-ns32k.h │ │ ├── xm-mips.h │ │ ├── xm-m88k.h │ │ ├── xm-spur.h │ │ ├── xm-i386.h │ │ ├── xm-i860.h │ │ ├── xm-vax.h │ │ ├── xm-convex.h │ │ ├── xm-m68k.h │ │ ├── xm-pyr.h │ │ ├── xm-sparc.h │ │ ├── xm-umips.h │ │ └── xm-aix386.h │ ├── make.com │ ├── config.std │ │ ├── tm-decstatn.h │ │ ├── tm-mips-bsd.h │ │ ├── tm-mips-sysv.h │ │ ├── tm-sun3os3.h │ │ ├── tm-sun3os3nf.h │ │ ├── tm-sun3-nfp.h │ │ ├── tm-isi68-nfp.h │ │ ├── xm-3b1.h │ │ ├── xm-altos3068.h │ │ ├── xm-hp9k320.h │ │ ├── tm-convex1.h │ │ ├── tm-convex2.h │ │ ├── xm-vaxv.h │ │ ├── xm-genix.h │ │ ├── xm-iris.h │ │ ├── tm-newsgas.h │ │ ├── tm-hp9k310g.h │ │ ├── tm-hp9k320g.h │ │ ├── tm-sun4os3.h │ │ ├── tm-hp9k3bsd.h │ │ ├── tm-compaq.h │ │ ├── xm-ns32k.h │ │ ├── xm-mips.h │ │ ├── xm-m88k.h │ │ ├── xm-spur.h │ │ ├── xm-i386.h │ │ ├── xm-i860.h │ │ ├── xm-vax.h │ │ ├── xm-convex.h │ │ ├── xm-m68k.h │ │ ├── xm-pyr.h │ │ ├── xm-sparc.h │ │ └── xm-umips.h │ ├── gnulib │ ├── print-self1.c │ ├── cpp.dvi │ ├── gcc.dvi │ ├── print-self.c │ ├── move-if-change │ ├── stab.h │ ├── gdbfiles.h │ ├── typeclass.h │ ├── stddef.h │ ├── input.h │ ├── README │ ├── assert.h │ ├── cpp.cps │ ├── stdarg.h │ ├── make-cccp.com │ ├── config-gcc.com │ ├── .gdbinit │ ├── c-parse.h │ ├── limits.h │ ├── va-spur.h │ └── gvarargs.h ├── gdb │ ├── SCCS │ ├── dep.c │ ├── param.h │ ├── pinsn.c │ ├── opcode.h │ ├── hc.pro │ ├── config.status │ ├── dummy.c │ ├── m-sunos4.h │ ├── version.c │ ├── talloca.c │ ├── my.user.h │ ├── munch │ ├── kdb-start.c │ ├── getpagesize.h │ ├── alloca.s │ ├── init.c │ ├── environ.h │ ├── wait.h │ ├── createtags │ └── cthread_option ├── ld │ ├── .depend_done │ └── Makedep ├── otool │ ├── .depend_done │ └── Makedep ├── as │ ├── i860.o │ ├── atof-m68k-assist.s │ ├── m-generic.h │ ├── m-sun3.h │ ├── m68k.h │ ├── m-hpux.h │ ├── append.c │ ├── operands │ ├── frags.h │ └── notes ├── runtime860 │ ├── gnuify │ ├── _negdf2.s │ ├── _adddf3.s │ ├── _muldf3.s │ ├── _subdf3.s │ ├── _ashlsi3.s │ ├── _ashrsi3.s │ ├── _fixdfsi.s │ ├── _lshlsi3.s │ ├── _lshrsi3.s │ ├── _extendsfdf2.s │ ├── _varargs.s │ ├── _mulsi3.s │ ├── _umulsi3.s │ ├── _truncdfsf2.s │ ├── _negsf2.s │ ├── _cmpdf2.s │ ├── _floatsidf.s │ ├── _divsf3.s │ ├── _addsf3.s │ ├── _mulsf3.s │ ├── _subsf3.s │ ├── _cmpsf2.s │ ├── _fixunsdfsi.s │ ├── _eprintf.s │ ├── _divdf3.s │ └── _builtin_new.s ├── include │ └── Makefile └── unixsyms │ └── Makefile └── NextDimension-21 ├── MachDriver ├── Makedep ├── Executable_Name.seg ├── Instance_Var.seg ├── Server_Name.seg ├── Loadable_Name.seg ├── Version_String.seg ├── Unload_Commands.seg ├── ND_id.h ├── ND_patches.h ├── Load_Commands.seg ├── ND_types.h └── gamma.c ├── include.i860 ├── ND ├── i860 ├── cpus.h ├── cs_kdb.h ├── mach_load.h ├── stat_time.h ├── simple_clock.h ├── machine │ ├── param.h │ ├── Makefile │ ├── exception.h │ ├── pcb.h │ └── vm_types.h ├── kern │ ├── Makefile │ └── parallel.h ├── sys │ ├── systm.h │ ├── Makefile │ ├── map.h │ ├── thread_modes.h │ └── boolean.h ├── vm │ ├── Makefile │ ├── vm_prot.h │ └── vm_kern.h ├── setjmp.h └── Makefile ├── PSDriver ├── bitmap │ ├── depend │ ├── Makefile │ ├── bm12funcline.h │ ├── mp12funcline.h │ ├── bm38.h │ ├── bm34.h │ └── bm38hl.860.s ├── client │ ├── depend │ ├── Makefile │ ├── nd.h │ └── remote.h ├── common │ ├── depend │ ├── Makefile │ └── psUser.h ├── device │ ├── depend │ ├── trapprecision.c │ ├── devprim.h │ ├── nulldev.h │ ├── Makefile │ ├── nextprebuilt.h │ ├── devinit.c │ ├── hostdict.h │ └── defaultswitches.h ├── devpattern │ ├── depend │ ├── Makefile │ ├── ims11d11.c │ ├── ims11d18.c │ ├── ims11d12.c │ ├── ims11d14.c │ └── ims1xd18.c ├── server │ ├── depend │ ├── server-040 │ ├── video.h │ └── copy38.c ├── config-040 ├── Makefile ├── include │ ├── server.h │ └── package_specs.h ├── config-i860 ├── config-cpu └── Makefile.common ├── NDkernel ├── old ├── obj │ ├── flush.o │ ├── locore.o │ ├── strcat.o │ ├── strcmp.o │ ├── strcpy.o │ ├── strlen.o │ ├── strncat.o │ ├── strncmp.o │ └── strncpy.o ├── libc │ ├── strlen.c │ ├── strcmp.c │ ├── strcpy.c │ ├── strncmp.c │ ├── strcat.c │ ├── strncpy.c │ ├── strncat.c │ └── Makefile ├── ND │ ├── btptes.c │ ├── param.c │ ├── stubs.c │ ├── swab_pte.c │ ├── vm_pager.c │ ├── kern_main.c │ └── psl.h └── kdb │ ├── strcmp.c │ ├── structs.h │ └── Makefile ├── ROM ├── NDromload ├── romload.o ├── romcode │ ├── main.c │ ├── NDrom.h │ └── Makefile └── pas │ ├── Makefile │ ├── ptokens.h │ ├── pas.h │ ├── pass1.c │ ├── pass2.c │ └── scan.l ├── RelNotes ├── NDFunctions.wn ├── NextDimensionNotes.wn └── video_rom.wn │ └── WNDocument.wn ├── libND ├── ND_id.h ├── ND_kernserver.c └── NDGlobals.h ├── cmds └── bind860.sh └── diag └── ndslot.h /NDTools-4/gcc: -------------------------------------------------------------------------------- 1 | gcc-1.36 -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/cpp.kys: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/cpp.pgs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/cpp.tps: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/cpp.vrs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NDTools-4/gdb/SCCS: -------------------------------------------------------------------------------- 1 | ../SCCS -------------------------------------------------------------------------------- /NDTools-4/ld/.depend_done: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NDTools-4/ld/Makedep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /NDTools-4/otool/.depend_done: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/stamp-gnulib2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NDTools-4/gdb/dep.c: -------------------------------------------------------------------------------- 1 | i860-dep.c -------------------------------------------------------------------------------- /NDTools-4/gdb/param.h: -------------------------------------------------------------------------------- 1 | m-i860.h -------------------------------------------------------------------------------- /NDTools-4/gdb/pinsn.c: -------------------------------------------------------------------------------- 1 | i860-pinsn.c -------------------------------------------------------------------------------- /NDTools-4/gdb/opcode.h: -------------------------------------------------------------------------------- 1 | i860-opcode.h -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Makedep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/ND: -------------------------------------------------------------------------------- 1 | ../ND -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/bitmap/depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/client/depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/common/depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/devpattern/depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/server/depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/i860: -------------------------------------------------------------------------------- 1 | machine -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.h: -------------------------------------------------------------------------------- 1 | ./config/xm-i860.h -------------------------------------------------------------------------------- /NDTools-4/gdb/hc.pro: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Executable_Name.seg: -------------------------------------------------------------------------------- 1 | /mach -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Instance_Var.seg: -------------------------------------------------------------------------------- 1 | instance -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Server_Name.seg: -------------------------------------------------------------------------------- 1 | NextDimension -------------------------------------------------------------------------------- /NextDimension-21/include.i860/cpus.h: -------------------------------------------------------------------------------- 1 | #define NCPUS 1 2 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/version.c: -------------------------------------------------------------------------------- 1 | char *version_string = "1.36"; 2 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/cs_kdb.h: -------------------------------------------------------------------------------- 1 | #define CS_KDB 1 2 | -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Loadable_Name.seg: -------------------------------------------------------------------------------- 1 | NextDimension_loadable -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Version_String.seg: -------------------------------------------------------------------------------- 1 | Unknown Version 2 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/mach_load.h: -------------------------------------------------------------------------------- 1 | #define MACH_LOAD 1 2 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/stat_time.h: -------------------------------------------------------------------------------- 1 | #define STAT_TIME 1 2 | -------------------------------------------------------------------------------- /NDTools-4/gdb/config.status: -------------------------------------------------------------------------------- 1 | Links are now set up for use with a i860. 2 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/simple_clock.h: -------------------------------------------------------------------------------- 1 | #define SIMPLE_CLOCK 0 2 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.status: -------------------------------------------------------------------------------- 1 | Links are now set up for use with a i860. 2 | -------------------------------------------------------------------------------- /NDTools-4/gdb/dummy.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | double __huge_val = FLT_MAX; 4 | -------------------------------------------------------------------------------- /NDTools-4/gdb/m-sunos4.h: -------------------------------------------------------------------------------- 1 | #include "m-sun3.h" 2 | #define SUNOS4 3 | #define FPU 4 | -------------------------------------------------------------------------------- /NDTools-4/as/i860.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NDTools-4/as/i860.o -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-decstatn.h: -------------------------------------------------------------------------------- 1 | #define DECSTATION 2 | 3 | #include "tm-mips.h" 4 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-mips-bsd.h: -------------------------------------------------------------------------------- 1 | #define MIPS_BSD43 2 | 3 | #include "tm-mips.h" 4 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-mips-sysv.h: -------------------------------------------------------------------------------- 1 | #define MIPS_SYSV 2 | 3 | #include "tm-mips.h" 4 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/make.com: -------------------------------------------------------------------------------- 1 | $! 2 | $! Build GCC 3 | $! 4 | $ @make-cccp 5 | $ @make-cc1 6 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-decstatn.h: -------------------------------------------------------------------------------- 1 | #define DECSTATION 2 | 3 | #include "tm-mips.h" 4 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-mips-bsd.h: -------------------------------------------------------------------------------- 1 | #define MIPS_BSD43 2 | 3 | #include "tm-mips.h" 4 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-mips-sysv.h: -------------------------------------------------------------------------------- 1 | #define MIPS_SYSV 2 | 3 | #include "tm-mips.h" 4 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/gnulib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NDTools-4/gcc-1.36/gnulib -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/print-self1.c: -------------------------------------------------------------------------------- 1 | main(a){a="main(a){a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);} -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/cpp.dvi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NDTools-4/gcc-1.36/cpp.dvi -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/gcc.dvi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NDTools-4/gcc-1.36/gcc.dvi -------------------------------------------------------------------------------- /NDTools-4/gdb/version.c: -------------------------------------------------------------------------------- 1 | /* Define the current version number of GDB. */ 2 | 3 | char *version = "3.0"; 4 | -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Unload_Commands.seg: -------------------------------------------------------------------------------- 1 | # Termination 2 | 3 | CALL ND_signoff 0 4 | 5 | 6 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/old: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/old -------------------------------------------------------------------------------- /NextDimension-21/ROM/NDromload: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/ROM/NDromload -------------------------------------------------------------------------------- /NextDimension-21/ROM/romload.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/ROM/romload.o -------------------------------------------------------------------------------- /NDTools-4/gdb/talloca.c: -------------------------------------------------------------------------------- 1 | char *alloca(size) 2 | int size; 3 | { 4 | char *sbrk(); 5 | 6 | return(sbrk(size)); 7 | } 8 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/config-040: -------------------------------------------------------------------------------- 1 | CPUTYPE = 040 2 | LIBS = -lND -lsys_s 3 | CRT0 = -lcrt0.o 4 | RANLIB = ranlib -s 5 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/romcode/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "NDrom.h" 3 | 4 | main() 5 | { 6 | return; 7 | } -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/flush.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/flush.o -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/print-self.c: -------------------------------------------------------------------------------- 1 | main(){char*p="main(){char*p=%c%s%c;(void)printf(p,34,p,34,10);}%c";(void)printf(p,34,p,34,10);} 2 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/locore.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/locore.o -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/strcat.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/strcat.o -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/strcmp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/strcmp.o -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/strcpy.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/strcpy.o -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/strlen.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/strlen.o -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/strncat.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/strncat.o -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/strncmp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/strncmp.o -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/obj/strncpy.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/NDkernel/obj/strncpy.o -------------------------------------------------------------------------------- /NextDimension-21/RelNotes/NDFunctions.wn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/RelNotes/NDFunctions.wn -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-sun3os3.h: -------------------------------------------------------------------------------- 1 | #include "tm-sun3.h" 2 | 3 | /* LINK_SPEC is needed only for Sunos 4. */ 4 | 5 | #undef LINK_SPEC 6 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/server/server-040: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/PSDriver/server/server-040 -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-sun3os3.h: -------------------------------------------------------------------------------- 1 | #include "tm-sun3.h" 2 | 3 | /* LINK_SPEC is needed only for Sunos 4. */ 4 | 5 | #undef LINK_SPEC 6 | -------------------------------------------------------------------------------- /NextDimension-21/RelNotes/NextDimensionNotes.wn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/RelNotes/NextDimensionNotes.wn -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-sun3os3nf.h: -------------------------------------------------------------------------------- 1 | #include "tm-sun3-nfp.h" 2 | 3 | /* LINK_SPEC is needed only for Sunos 4. */ 4 | 5 | #undef LINK_SPEC 6 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-sun3os3nf.h: -------------------------------------------------------------------------------- 1 | #include "tm-sun3-nfp.h" 2 | 3 | /* LINK_SPEC is needed only for Sunos 4. */ 4 | 5 | #undef LINK_SPEC 6 | -------------------------------------------------------------------------------- /NextDimension-21/RelNotes/video_rom.wn/WNDocument.wn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/NeXTDimension/master/NextDimension-21/RelNotes/video_rom.wn/WNDocument.wn -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-sun3-nfp.h: -------------------------------------------------------------------------------- 1 | /* Define target machine as a Sun 3 with no 68881. */ 2 | 3 | #define TARGET_DEFAULT 5 4 | 5 | #include "tm-sun3.h" 6 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-sun3-nfp.h: -------------------------------------------------------------------------------- 1 | /* Define target machine as a Sun 3 with no 68881. */ 2 | 3 | #define TARGET_DEFAULT 5 4 | 5 | #include "tm-sun3.h" 6 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-isi68-nfp.h: -------------------------------------------------------------------------------- 1 | /* Define target machine as an ISI 68000/68020 with no 68881. */ 2 | 3 | #define TARGET_DEFAULT 5 4 | 5 | #include "tm-isi68.h" 6 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-isi68-nfp.h: -------------------------------------------------------------------------------- 1 | /* Define target machine as an ISI 68000/68020 with no 68881. */ 2 | 3 | #define TARGET_DEFAULT 5 4 | 5 | #include "tm-isi68.h" 6 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-3b1.h: -------------------------------------------------------------------------------- 1 | #define USG 2 | 3 | #include "xm-m68k.h" 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-3b1.h: -------------------------------------------------------------------------------- 1 | #define USG 2 | 3 | #include "xm-m68k.h" 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-altos3068.h: -------------------------------------------------------------------------------- 1 | #define USG 2 | 3 | #include "xm-m68k.h" 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-hp9k320.h: -------------------------------------------------------------------------------- 1 | #define USG 2 | 3 | #include "xm-m68k.h" 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-altos3068.h: -------------------------------------------------------------------------------- 1 | #define USG 2 | 3 | #include "xm-m68k.h" 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-hp9k320.h: -------------------------------------------------------------------------------- 1 | #define USG 2 | 3 | #include "xm-m68k.h" 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-convex1.h: -------------------------------------------------------------------------------- 1 | /* tm.h file for a Convex C1. */ 2 | 3 | #include "tm-convex.h" 4 | 5 | #undef TARGET_DEFAULT 6 | #define TARGET_DEFAULT 1 7 | 8 | #define CC1_SPEC "%{mc2:-mnoc1}" 9 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-convex2.h: -------------------------------------------------------------------------------- 1 | /* tm.h file for a Convex C2. */ 2 | 3 | #include "tm-convex.h" 4 | 5 | #undef TARGET_DEFAULT 6 | #define TARGET_DEFAULT 2 7 | 8 | #define CC1_SPEC "%{mc1:-mnoc2}" 9 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-convex1.h: -------------------------------------------------------------------------------- 1 | /* tm.h file for a Convex C1. */ 2 | 3 | #include "tm-convex.h" 4 | 5 | #undef TARGET_DEFAULT 6 | #define TARGET_DEFAULT 1 7 | 8 | #define CC1_SPEC "%{mc2:-mnoc1}" 9 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-convex2.h: -------------------------------------------------------------------------------- 1 | /* tm.h file for a Convex C2. */ 2 | 3 | #include "tm-convex.h" 4 | 5 | #undef TARGET_DEFAULT 6 | #define TARGET_DEFAULT 2 7 | 8 | #define CC1_SPEC "%{mc1:-mnoc2}" 9 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/move-if-change: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if 3 | test -r $2 4 | then 5 | if 6 | cmp $1 $2 > /dev/null 7 | then 8 | echo $2 is unchanged 9 | rm $1 10 | else 11 | mv $1 $2 12 | fi 13 | else 14 | mv $1 $2 15 | fi 16 | -------------------------------------------------------------------------------- /NDTools-4/gdb/my.user.h: -------------------------------------------------------------------------------- 1 | struct user { 2 | long u_data[(USIZE *NBPC) / sizeof(long)]; 3 | }; 4 | 5 | #define u_tsize u_data[1200] 6 | #define u_dsize u_data[1201] 7 | #define u_ssize u_data[1202] 8 | 9 | #define u_ar0 u_data[1215] 10 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-vaxv.h: -------------------------------------------------------------------------------- 1 | /* Config file for Vax running system V. */ 2 | 3 | #include "xm-vax.h" 4 | 5 | #define USG 6 | 7 | #define bcopy(a,b,c) memcpy (b,a,c) 8 | #define bzero(a,b) memset (a,0,b) 9 | #define bcmp(a,b,c) memcmp (a,b,c) 10 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-vaxv.h: -------------------------------------------------------------------------------- 1 | /* Config file for Vax running system V. */ 2 | 3 | #include "xm-vax.h" 4 | 5 | #define USG 6 | 7 | #define bcopy(a,b,c) memcpy (b,a,c) 8 | #define bzero(a,b) memset (a,0,b) 9 | #define bcmp(a,b,c) memcmp (a,b,c) 10 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-genix.h: -------------------------------------------------------------------------------- 1 | /* Config file for ns32k running system V. */ 2 | 3 | #include "xm-ns32k.h" 4 | 5 | #define USG 6 | 7 | #define bcopy(a,b,c) memcpy (b,a,c) 8 | #define bzero(a,b) memset (a,0,b) 9 | #define bcmp(a,b,c) memcmp (a,b,c) 10 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-genix.h: -------------------------------------------------------------------------------- 1 | /* Config file for ns32k running system V. */ 2 | 3 | #include "xm-ns32k.h" 4 | 5 | #define USG 6 | 7 | #define bcopy(a,b,c) memcpy (b,a,c) 8 | #define bzero(a,b) memset (a,0,b) 9 | #define bcmp(a,b,c) memcmp (a,b,c) 10 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-iris.h: -------------------------------------------------------------------------------- 1 | #include "xm-mips.h" 2 | 3 | #define USG 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | 9 | #ifdef __GNUC__ 10 | #define alloca(n) __builtin_alloca(n) 11 | #endif 12 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-iris.h: -------------------------------------------------------------------------------- 1 | #include "xm-mips.h" 2 | 3 | #define USG 4 | 5 | #define bcopy(a,b,c) memcpy (b,a,c) 6 | #define bzero(a,b) memset (a,0,b) 7 | #define bcmp(a,b,c) memcmp (a,b,c) 8 | 9 | #ifdef __GNUC__ 10 | #define alloca(n) __builtin_alloca(n) 11 | #endif 12 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/machine/param.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: i860/param.h 3 | * 4 | * Assorted configuration constants for the ND kernel. 5 | */ 6 | #define COREMAP_SIZE 200 /* Number of map elements in the core map. */ 7 | 8 | #define NPROC 10 /* A max of 10 lightweight processes */ 9 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/gnuify: -------------------------------------------------------------------------------- 1 | s/f16/f8/g 2 | s/f17/f9/g 3 | s/f18/f10/g 4 | s/f19/f11/g 5 | s/f20/f12/g 6 | s/f21/f13/g 7 | s/f22/f14/g 8 | s/f23/f15/g 9 | s/f24/f16/g 10 | s/f25/f17/g 11 | s/f26/f18/g 12 | s/f27/f19/g 13 | s/f28/f20/g 14 | s/f29/f21/g 15 | s/f30/f22/g 16 | s/f31/f23/g 17 | 18 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-newsgas.h: -------------------------------------------------------------------------------- 1 | /* In Sony versions before 3.0, use the GNU Assembler, because the 2 | system's assembler has no way to assemble the difference of two 3 | labels for the displacement in a switch-dispatch instruction. */ 4 | 5 | #define USE_GAS 6 | 7 | #include "tm-news.h" 8 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-newsgas.h: -------------------------------------------------------------------------------- 1 | /* In Sony versions before 3.0, use the GNU Assembler, because the 2 | system's assembler has no way to assemble the difference of two 3 | labels for the displacement in a switch-dispatch instruction. */ 4 | 5 | #define USE_GAS 6 | 7 | #include "tm-news.h" 8 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/kern/Makefile: -------------------------------------------------------------------------------- 1 | SRCS= parallel.h 2 | 3 | DSTDIR=/usr/local/i860/include 4 | SUBDIR=kern 5 | INSTALL=install -c 6 | 7 | install: 8 | -mkdirs $(DSTDIR)/$(SUBDIR) 9 | for i in $(SRCS); \ 10 | do \ 11 | echo $$i; \ 12 | $(INSTALL) $$i $(DSTDIR)/$(SUBDIR); \ 13 | done 14 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/sys/systm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Structure of the system-entry table 3 | */ 4 | extern struct sysent 5 | { 6 | short sy_narg; /* total number of arguments */ 7 | short sy_parallel; /* can execute in parallel */ 8 | int (*sy_call)(); /* handler */ 9 | } sysent[]; 10 | 11 | 12 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/stab.h: -------------------------------------------------------------------------------- 1 | #ifndef __GNU_STAB__ 2 | 3 | /* Indicate the GNU stab.h is in use. */ 4 | 5 | #define __GNU_STAB__ 6 | 7 | #define __define_stab(NAME, CODE, STRING) NAME=CODE, 8 | 9 | enum __stab_debug_code 10 | { 11 | #include "stab.def" 12 | }; 13 | 14 | #undef __define_stab 15 | 16 | #endif /* __GNU_STAB_ */ 17 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/vm/Makefile: -------------------------------------------------------------------------------- 1 | SRCS= vm_page.h vm_prot.h vm_param.h vm_kern.h 2 | 3 | DSTDIR=/usr/local/i860/include 4 | SUBDIR=vm 5 | INSTALL=install -c 6 | 7 | install: 8 | -mkdirs $(DSTDIR)/$(SUBDIR) 9 | for i in $(SRCS); \ 10 | do \ 11 | echo $$i; \ 12 | $(INSTALL) $$i $(DSTDIR)/$(SUBDIR); \ 13 | done 14 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/libc/strlen.c: -------------------------------------------------------------------------------- 1 | #if defined(LIBC_SCCS) && !defined(lint) 2 | static char sccsid[] = "@(#)strlen.c 5.2 (Berkeley) 3/9/86"; 3 | #endif LIBC_SCCS and not lint 4 | 5 | /* 6 | * Returns the number of 7 | * non-NULL bytes in string argument. 8 | */ 9 | 10 | strlen(s) 11 | register char *s; 12 | { 13 | register n; 14 | 15 | n = 0; 16 | while (*s++) 17 | n++; 18 | return(n); 19 | } 20 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/ND/btptes.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Pages used at startup to configure the kernel VM system. 3 | */ 4 | /* Assign a non-zero value, forcing these to reside in the data seg, all aligned. */ 5 | #if 0 6 | long kpde[1024] = {1}; 7 | long iopte[1024] = {1}; 8 | long vram_pte[1024] = {1}; 9 | long dram_lo_pte[1024] = {1}; 10 | long dram_hi_pte[1024] = {1}; 11 | #endif 12 | char bad[2*4096] = {1}; 13 | 14 | 15 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/kdb/strcmp.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1982 by Michael J. Paquette 3 | * 4 | * Project: The Retargetable C compiler 5 | * Package: libc library 6 | */ 7 | 8 | /* 9 | * Compare strings: s1>s2: >0 s1==s2: 0 s1s2: >0 s1==s2: 0 s1s2: >0 s1==s2: 0 s1= 0 && *s1 == *s2++) 15 | if (*s1++ == '\0') 16 | return(0); 17 | return(n<0 ? 0 : *s1 - *--s2); 18 | } 19 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/sys/map.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generic kernel resource map structure. 3 | */ 4 | struct map /* Must have same size as struct mapent. */ 5 | { 6 | struct mapent *m_limit; 7 | char *m_name; /* For out of resources warning */ 8 | }; 9 | 10 | struct mapent 11 | { 12 | unsigned m_size; 13 | unsigned m_addr; 14 | }; 15 | 16 | void rminit(struct map *, unsigned, char *); 17 | unsigned rmalloc( struct map *, unsigned); 18 | void rmfree(struct map *, unsigned, unsigned); 19 | 20 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-sun4os3.h: -------------------------------------------------------------------------------- 1 | #include "tm-sparc.h" 2 | 3 | /* Define the Sun-asm flag, which is necessary for Sun 4 with os version 3. */ 4 | #undef TARGET_DEFAULT 5 | #define TARGET_DEFAULT 7 6 | 7 | #undef FUNCTION_PROFILER 8 | #define FUNCTION_PROFILER(FILE, LABELNO) \ 9 | fprintf (FILE, "\tsethi %%hi(LP%d),%%o0\n\tcall .mcount\n\tor %%lo(LP%d),%%o0,%%o0\n", \ 10 | (LABELNO), (LABELNO)) 11 | 12 | /* LINK_SPEC is needed only for Sunos 4. */ 13 | 14 | #undef LINK_SPEC 15 | 16 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_extendsfdf2.s: -------------------------------------------------------------------------------- 1 | .file "_extendsfdf2.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___extendsfdf2: 8 | // .bf 9 | fld.l 0(sp),f20 10 | // .ef 11 | bri r1 12 | fmov.sd f20,f8 13 | .align 4 14 | .data 15 | .L5: 16 | 17 | //_a 0(sp) local 18 | 19 | .text 20 | .data 21 | //_target_flags _target_flags import 22 | .globl ___extendsfdf2 23 | 24 | .text 25 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/common/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # MIG Package Makefile 3 | # 4 | 5 | CFILES = argstream.c markpack.c 6 | 7 | OTHER_SOURCES = ps.defs 8 | 9 | include ../config-cpu 10 | include ../Makefile.common 11 | 12 | MIGGENERATED = psUser.c psServer.c ps.h 13 | 14 | all: $(MIGGENERATED) 15 | 16 | $(MIGGENERATED): ps.defs 17 | mig $(MIGFLAGS) $(INCLUDES) ps.defs 18 | 19 | install: all 20 | 21 | installh: 22 | 23 | install_local: 24 | 25 | clean: 26 | -rm -rf $(MIGGENERATED) make.log 27 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-sun4os3.h: -------------------------------------------------------------------------------- 1 | #include "tm-sparc.h" 2 | 3 | /* Define the Sun-asm flag, which is necessary for Sun 4 with os version 3. */ 4 | #undef TARGET_DEFAULT 5 | #define TARGET_DEFAULT 7 6 | 7 | #undef FUNCTION_PROFILER 8 | #define FUNCTION_PROFILER(FILE, LABELNO) \ 9 | fprintf (FILE, "\tsethi %%hi(LP%d),%%o0\n\tcall .mcount\n\tor %%lo(LP%d),%%o0,%%o0\n", \ 10 | (LABELNO), (LABELNO)) 11 | 12 | /* LINK_SPEC is needed only for Sunos 4. */ 13 | 14 | #undef LINK_SPEC 15 | 16 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_varargs.s: -------------------------------------------------------------------------------- 1 | .file "_varargs.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___builtin_saveregs: 8 | adds -16,sp,sp 9 | // .bf 10 | // .ef 11 | st.l r1,12(sp) 12 | ld.l 12(sp),r1 13 | br _abort 14 | adds 16,sp,sp 15 | .align 4 16 | .data 17 | .L4: 18 | 19 | .text 20 | .data 21 | //_target_flags _target_flags import 22 | .globl ___builtin_saveregs 23 | 24 | .text 25 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/libc/strcat.c: -------------------------------------------------------------------------------- 1 | #if defined(LIBC_SCCS) && !defined(lint) 2 | static char sccsid[] = "@(#)strcat.c 5.2 (Berkeley) 3/9/86"; 3 | #endif LIBC_SCCS and not lint 4 | 5 | /* 6 | * Concatenate s2 on the end of s1. S1's space must be large enough. 7 | * Return s1. 8 | */ 9 | 10 | char * 11 | strcat(s1, s2) 12 | register char *s1, *s2; 13 | { 14 | register char *os1; 15 | 16 | os1 = s1; 17 | while (*s1++) 18 | ; 19 | --s1; 20 | while (*s1++ = *s2++) 21 | ; 22 | return(os1); 23 | } 24 | -------------------------------------------------------------------------------- /NDTools-4/gdb/kdb-start.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | #include "param.h" 3 | 4 | static char *args[] = {"kdb", "kdb-symbols", 0}; 5 | 6 | static char *environment[] = {0}; 7 | 8 | char **environ; 9 | 10 | start () 11 | { 12 | #ifdef NAMES_HAVE_UNDERSCORE 13 | INIT_STACK (_kdb_stack_beg, _kdb_stack_end); 14 | #else /* not NAMES_HAVE_UNDERSCORE */ 15 | INIT_STACK (kdb_stack_beg, kdb_stack_end); 16 | #endif /* not NAMES_HAVE_UNDERSCORE */ 17 | 18 | environ = environment; 19 | 20 | main (2, args, environment); 21 | } 22 | -------------------------------------------------------------------------------- /NDTools-4/include/Makefile: -------------------------------------------------------------------------------- 1 | # Note that OTHER_SRCES do NOT get installed into /usr/include 2 | OTHER_SRCS = notes a.out.h symseg.h sys/exec.h 3 | FILES = ldsyms.h reloc.h 4 | INCDIR = /usr/include 5 | 6 | install: ${DSTROOT}${INCDIR} ${FILES} 7 | install -m 444 ${IFLAGS} ${FILES} ${DSTROOT}${INCDIR} 8 | 9 | local: LCLROOT ${LCLROOT}${INCDIR} ${FILES} 10 | install -m 444 ${IFLAGS} ${FILES} ${LCLROOT}${INCDIR} 11 | 12 | ${LCLROOT}${INCDIR} ${DSTROOT}${INCDIR}:; mkdirs $@ 13 | 14 | depend: 15 | 16 | clean: 17 | 18 | all: 19 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # PSDriver root makefile 3 | # 4 | # Specify SUBDIRS in the order that they should be built. 5 | SUBDIRS = common client bitmap devpattern device server 6 | 7 | default: all 8 | 9 | all: 10 | for i in $(SUBDIRS); do ( cd $$i && $(MAKE) $(MAKEOPTS) $@ ); done 11 | 12 | install: 13 | for i in $(SUBDIRS); do ( cd $$i && $(MAKE) $(MAKEOPTS) $@ ); done 14 | 15 | install_local: 16 | 17 | installh: 18 | 19 | clean: 20 | for i in $(SUBDIRS); do ( cd $$i && $(MAKE) $(MAKEOPTS) clean ); done 21 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_mulsi3.s: -------------------------------------------------------------------------------- 1 | .file "_mulsi3.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___mulsi3: 8 | // .bf 9 | // .ef 10 | ixfr r16,f18 11 | ixfr r17,f16 12 | fmlow.dd f18,f16,f18 13 | bri r1 14 | fxfr f18,r16 15 | .align 4 16 | .data 17 | .L5: 18 | 19 | //_a r16 local 20 | //_b r17 local 21 | 22 | .text 23 | .data 24 | //_target_flags _target_flags import 25 | .globl ___mulsi3 26 | 27 | .text 28 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_umulsi3.s: -------------------------------------------------------------------------------- 1 | .file "_umulsi3.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___umulsi3: 8 | // .bf 9 | // .ef 10 | ixfr r16,f18 11 | ixfr r17,f16 12 | fmlow.dd f18,f16,f18 13 | bri r1 14 | fxfr f18,r16 15 | .align 4 16 | .data 17 | .L5: 18 | 19 | //_a r16 local 20 | //_b r17 local 21 | 22 | .text 23 | .data 24 | //_target_flags _target_flags import 25 | .globl ___umulsi3 26 | 27 | .text 28 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/typeclass.h: -------------------------------------------------------------------------------- 1 | /* Values returned by __builtin_classify_type. */ 2 | 3 | enum type_class 4 | { 5 | no_type_class = -1, 6 | void_type_class, integer_type_class, char_type_class, 7 | enumeral_type_class, boolean_type_class, 8 | pointer_type_class, reference_type_class, offset_type_class, 9 | real_type_class, complex_type_class, 10 | function_type_class, method_type_class, 11 | record_type_class, union_type_class, 12 | array_type_class, string_type_class, set_type_class, file_type_class, 13 | lang_type_class 14 | }; 15 | -------------------------------------------------------------------------------- /NDTools-4/gdb/getpagesize.h: -------------------------------------------------------------------------------- 1 | #ifdef BSD 2 | #ifndef BSD4_1 3 | #define HAVE_GETPAGESIZE 4 | #endif 5 | #endif 6 | 7 | #ifndef HAVE_GETPAGESIZE 8 | 9 | #include 10 | 11 | #ifdef EXEC_PAGESIZE 12 | #define getpagesize() EXEC_PAGESIZE 13 | #else 14 | #ifdef NBPG 15 | #define getpagesize() NBPG * CLSIZE 16 | #ifndef CLSIZE 17 | #define CLSIZE 1 18 | #endif /* no CLSIZE */ 19 | #else /* no NBPG */ 20 | #define getpagesize() NBPC 21 | #endif /* no NBPG */ 22 | #endif /* no EXEC_PAGESIZE */ 23 | 24 | #endif /* not HAVE_GETPAGESIZE */ 25 | 26 | -------------------------------------------------------------------------------- /NDTools-4/unixsyms/Makefile: -------------------------------------------------------------------------------- 1 | LOCALDSTDIR=/Net/k9/dps/nd_proj/bin 2 | DSTDIR=/usr/local/bin 3 | 4 | PROGS=unixsyms 5 | CFLAGS = -g -I../include 6 | 7 | all: $(PROGS) 8 | 9 | install: $(PROGS) 10 | -mkdirs $(DSTROOT)$(DSTDIR) 11 | for i in $(PROGS); do ( install -m 755 $$i $(DSTROOT)$(DSTDIR) ); done 12 | 13 | install_local: $(PROGS) 14 | -mkdirs $(DSTROOT)$(LOCALDSTDIR) 15 | for i in $(PROGS); do ( install -m 755 $$i $(DSTROOT)$(LOCALDSTDIR) ); done 16 | 17 | clean: 18 | rm -f $(PROGS) *.o 19 | 20 | unixsyms: unixsyms.o 21 | cc -o unixsyms unixsyms.o 22 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/common/psUser.h: -------------------------------------------------------------------------------- 1 | 2 | /***************************************************************************** 3 | 4 | psUser.h 5 | definition to be included in psUser.c 6 | 7 | CONFIDENTIAL 8 | Copyright 1990 NeXT Computer, Inc. as an unpublished work. 9 | All Rights Reserved. 10 | 11 | 03Sep90 Peter Graffagnino 12 | 13 | Modifications: 14 | 15 | ******************************************************************************/ 16 | 17 | /* Hack in our own msg send routine */ 18 | #define msg_send ps_msg_send 19 | -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/ND_patches.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This include file contains code to work around problems and inconsistencies 3 | * with other include files shipped as part of the standard release. 4 | */ 5 | #if ! defined(__ND_PATCHES__) 6 | #define __ND_PATCHES__ 7 | 8 | #if defined(WARP1_BOGUS_INCLUDE_FILE_WORKAROUND) 9 | #import 10 | #undef MACH_ASSERT 11 | #undef MACH_LDEBUG 12 | #define MACH_ASSERT 0 /* These were erroneously defined as 1 */ 13 | #define MACH_LDEBUG 0 14 | #endif /* WARP1_BOGUS_INCLUDE_FILE_WORKAROUND */ 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/stddef.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1988 NeXT, Inc. - 9/8/88 CCH */ 2 | 3 | #ifndef _STDDEF_H 4 | #define _STDDEF_H 5 | 6 | #ifdef __STRICT_BSD__ 7 | #error This file should not be in a strictly BSD program 8 | #endif 9 | 10 | #undef NULL 11 | #define NULL ((void *)0) 12 | 13 | typedef long ptrdiff_t; 14 | #ifndef _SIZE_T 15 | #define _SIZE_T 16 | typedef unsigned long size_t; 17 | #endif 18 | typedef unsigned short wchar_t; 19 | 20 | #define offsetof(type,identifier) ((size_t)&((type *)0)->identifier) 21 | 22 | extern int errno; 23 | 24 | #endif /* _STDDEF_H */ 25 | -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/Load_Commands.seg: -------------------------------------------------------------------------------- 1 | # 2 | # Script used for initializing the loadable kernel server to load 3 | # the NextDimension driver 4 | # 5 | 6 | CALL ND_init 0 7 | 8 | PORT_DEATH ND_port_death 9 | 10 | # Associate ports with proc/arg 11 | 12 | HMAP NextDimension ND_msg 0 13 | 14 | # 15 | # Publish the ports through the net name server. 16 | # 17 | ADVERTISE NextDimension 18 | # Server contains interrupt handler code, and so must be wired down 19 | WIRE 20 | 21 | # Start this server up when PostScript asks for it. 22 | #START 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/include/server.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | 3 | server.h 4 | Header file for NextDimension server 5 | 6 | CONFIDENTIAL 7 | Copyright 1990 NeXT Computer, Inc. as an unpublished work. 8 | All Rights Reserved. 9 | 10 | 15Aug90 Ted Cohn 11 | 12 | Modifications: 13 | 14 | ******************************************************************************/ 15 | 16 | extern Pattern *blackpattern, *whitepattern; 17 | #define ND_ROWBYTES 4608 /* Row bytes to start of next line */ 18 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/machine/Makefile: -------------------------------------------------------------------------------- 1 | SRCS= exception.h pcb.h psl.h scb.h vm_param.h \ 2 | cpu.h param.h proc.h reg.h trap.h vm_types.h 3 | 4 | DSTDIR=/usr/local/i860/include 5 | SUBDIR=i860 6 | DSTLINK=machine 7 | INSTALL=install -c 8 | 9 | install: $(DSTDIR)/$(SUBDIR) $(DSTDIR)/$(DSTLINK) 10 | for i in $(SRCS); \ 11 | do \ 12 | echo $$i; \ 13 | $(INSTALL) $$i $(DSTDIR)/$(SUBDIR); \ 14 | done 15 | 16 | $(DSTDIR)/$(DSTLINK): $(DSTDIR)/$(SUBDIR) 17 | -ln -s $(DSTDIR)/$(SUBDIR) $(DSTDIR)/$(DSTLINK) 18 | 19 | $(DSTDIR)/$(SUBDIR): 20 | -mkdirs $(DSTDIR)/$(SUBDIR) 21 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_truncdfsf2.s: -------------------------------------------------------------------------------- 1 | .file "_truncdfsf2.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___truncdfsf2: 8 | // .bf 9 | fmov.ds f8,f19 10 | // .ef 11 | adds -16,sp,sp 12 | fst.l f19,12(sp) 13 | ld.l 12(sp),r16 14 | adds 16,sp,sp 15 | bri r1 16 | nop 17 | .align 4 18 | .data 19 | //_intify -4(sp) local 20 | .L5: 21 | 22 | //_a f8 local 23 | 24 | .text 25 | .data 26 | //_target_flags _target_flags import 27 | .globl ___truncdfsf2 28 | 29 | .text 30 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/libc/strncpy.c: -------------------------------------------------------------------------------- 1 | #if defined(LIBC_SCCS) && !defined(lint) 2 | static char sccsid[] = "@(#)strncpy.c 5.2 (Berkeley) 3/9/86"; 3 | #endif LIBC_SCCS and not lint 4 | 5 | /* 6 | * Copy s2 to s1, truncating or null-padding to always copy n bytes 7 | * return s1 8 | */ 9 | 10 | char * 11 | strncpy(s1, s2, n) 12 | register char *s1, *s2; 13 | { 14 | register i; 15 | register char *os1; 16 | 17 | os1 = s1; 18 | for (i = 0; i < n; i++) 19 | if ((*s1++ = *s2++) == '\0') { 20 | while (++i < n) 21 | *s1++ = '\0'; 22 | return(os1); 23 | } 24 | return(os1); 25 | } 26 | -------------------------------------------------------------------------------- /NDTools-4/gdb/alloca.s: -------------------------------------------------------------------------------- 1 | .file "alloca.s" 2 | .text 3 | .align 4 4 | // 5 | // char *alloca(size) 6 | // 7 | // Allocate size bytes in the calling function's stack frame (will 8 | // be automatically cleaned up when that function exits). The area 9 | // (and the stack pointer) will be mod 16 aligned on return. 10 | // 11 | // WARNING: the calling function must not access local variables 12 | // off the stack pointer after this call - it must use the frame 13 | // pointer instead. 14 | // 15 | .globl _alloca 16 | _alloca: 17 | subs sp,r16,r16 18 | andnot 15,r16,r16 19 | bri r1 20 | mov r16,sp 21 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_negsf2.s: -------------------------------------------------------------------------------- 1 | .file "_negsf2.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___negsf2: 8 | adds -16,sp,sp 9 | // .bf 10 | // .ef 11 | fld.l 16(sp),f18 12 | fsub.ss f0,f18,f19 13 | fst.l f19,12(sp) 14 | ld.l 12(sp),r16 15 | adds 16,sp,sp 16 | bri r1 17 | nop 18 | .align 4 19 | .data 20 | //_intify -4(sp) local 21 | .L5: 22 | 23 | //_a 0(sp) local 24 | 25 | .text 26 | .data 27 | //_target_flags _target_flags import 28 | .globl ___negsf2 29 | 30 | .text 31 | -------------------------------------------------------------------------------- /NDTools-4/gdb/init.c: -------------------------------------------------------------------------------- 1 | /* Do not modify this file. It is created automatically by "munch". */ 2 | void initialize_all_files () { 3 | _initialize_blockframe (); 4 | _initialize_breakpoint (); 5 | _initialize_stack (); 6 | _initialize_source (); 7 | _initialize_values (); 8 | _initialize_valprint (); 9 | _initialize_printcmd (); 10 | _initialize_symtab (); 11 | _initialize_symmisc (); 12 | _initialize_coff (); 13 | _initialize_infcmd (); 14 | _initialize_infrun (); 15 | _initialize_command (); 16 | _initialize_core (); 17 | _initialize_inflow (); 18 | } 19 | -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/ND_types.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __ND_TYPES__ 3 | #define __ND_TYPES__ 4 | 5 | #include 6 | 7 | #define ND_BAD_PORT 120 8 | #define ND_PORT_BUSY 121 9 | #define ND_NO_BOARD 122 10 | 11 | typedef char String256[256]; 12 | typedef char ROMData[1024]; 13 | /* 14 | * Defs for paging system. These describe lists of pages to move between DRAM and 15 | * the backing store. 16 | */ 17 | typedef struct 18 | { 19 | vm_address_t vaddr; 20 | vm_address_t paddr; 21 | vm_size_t size; 22 | } vm_movepage_t; 23 | 24 | typedef vm_movepage_t *vm_movepages_t; 25 | 26 | #endif __ND_TYPES__ 27 | 28 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_cmpdf2.s: -------------------------------------------------------------------------------- 1 | .file "_cmpdf2.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___cmpdf2: 8 | // .bf 9 | pfgt.dd f8,f10,f0 10 | bnc .L4 11 | bri r1 12 | or 1,r0,r16 13 | .L4: 14 | pfgt.dd f10,f8,f0 15 | bnc .L7 16 | bri r1 17 | adds -1,r0,r16 18 | .L7: 19 | // .ef 20 | bri r1 21 | mov r0,r16 22 | .align 4 23 | .data 24 | .L12: 25 | 26 | //_a f8 local 27 | //_b f10 local 28 | 29 | .text 30 | .data 31 | //_target_flags _target_flags import 32 | .globl ___cmpdf2 33 | 34 | .text 35 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_floatsidf.s: -------------------------------------------------------------------------------- 1 | .file "_floatsidf.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___floatsidf: 8 | orh ha%.L12,r0,r30 9 | fld.d l%.L12(r30),f8 10 | // .bf 11 | xorh 32768,r16,r27 12 | ixfr r27,f18 13 | fmov.ss f9,f19 14 | // .ef 15 | bri r1 16 | fsub.dd f18,f8,f8 17 | .align 4 18 | .data 19 | .L5: 20 | .L12: .byte 0,0,0,128 21 | .byte 0,0,48,67 22 | 23 | //_a r16 local 24 | 25 | .text 26 | .data 27 | //_target_flags _target_flags import 28 | .globl ___floatsidf 29 | 30 | .text 31 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/libc/strncat.c: -------------------------------------------------------------------------------- 1 | #if defined(LIBC_SCCS) && !defined(lint) 2 | static char sccsid[] = "@(#)strncat.c 5.2 (Berkeley) 3/9/86"; 3 | #endif LIBC_SCCS and not lint 4 | 5 | /* 6 | * Concatenate s2 on the end of s1. S1's space must be large enough. 7 | * At most n characters are moved. 8 | * Return s1. 9 | */ 10 | 11 | char * 12 | strncat(s1, s2, n) 13 | register char *s1, *s2; 14 | register n; 15 | { 16 | register char *os1; 17 | 18 | os1 = s1; 19 | while (*s1++) 20 | ; 21 | --s1; 22 | while (*s1++ = *s2++) 23 | if (--n < 0) { 24 | *--s1 = '\0'; 25 | break; 26 | } 27 | return(os1); 28 | } 29 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/romcode/NDrom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Main definitions file for the NextDimension boot ROM 3 | */ 4 | 5 | /* 6 | * Structure to keep track of RAM banks. 7 | */ 8 | struct DRAM_Bank 9 | { 10 | unsigned long addr; 11 | unsigned long size; 12 | }; 13 | 14 | #define N_DRAM_BANKS 4 /* Four 16 Mbyte banks of DRAM */ 15 | 16 | 17 | /* 18 | * Global memory structure for the ND boot ROM. 19 | */ 20 | 21 | struct ROMGlobals 22 | { 23 | struct DRAM_Bank DRAM_Banks[N_DRAM_BANKS]; 24 | }; 25 | 26 | /* 27 | * The ROMGlobals pointer, in global register r15 28 | */ 29 | register struct ROMGlobals * ROMGlobals asm("r15"); 30 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_divsf3.s: -------------------------------------------------------------------------------- 1 | .file "_divsf3.s" 2 | // 3 | // SINGLE_PRECISION DIVIDE 4 | // 5 | // The dividend is in f8. 6 | // The divisor is in f9. 7 | // The result is left in f8 8 | // 9 | .text 10 | .align 4 11 | .globl ___divsf3 12 | ___divsf3: 13 | fmov.ss f8,f19 14 | orh 16384,r0,r28 // Get 2.0 into f17 15 | ixfr r28,f17 16 | 17 | frcp.ss f9,f16 // Newton-Raphson approximate the reciprocal 18 | fmul.ss f9,f16,f8 19 | fsub.ss f17,f8,f8 20 | fmul.ss f16,f8,f16 21 | fmul.ss f9,f16,f8 22 | fsub.ss f17,f8,f8 23 | fmul.ss f19,f16,f17 24 | bri r1 25 | fmul.ss f8,f17,f8 // Mult dividend by reciprocal 26 | 27 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_addsf3.s: -------------------------------------------------------------------------------- 1 | .file "_addsf3.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___addsf3: 8 | adds -16,sp,sp 9 | // .bf 10 | fld.l 20(sp),f19 11 | // .ef 12 | fld.l 16(sp),f18 13 | fadd.ss f18,f19,f19 14 | fst.l f19,12(sp) 15 | ld.l 12(sp),r16 16 | adds 16,sp,sp 17 | bri r1 18 | nop 19 | .align 4 20 | .data 21 | //_intify -4(sp) local 22 | .L5: 23 | 24 | //_a 0(sp) local 25 | //_b 4(sp) local 26 | 27 | .text 28 | .data 29 | //_target_flags _target_flags import 30 | .globl ___addsf3 31 | 32 | .text 33 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_mulsf3.s: -------------------------------------------------------------------------------- 1 | .file "_mulsf3.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___mulsf3: 8 | adds -16,sp,sp 9 | // .bf 10 | fld.l 20(sp),f19 11 | // .ef 12 | fld.l 16(sp),f18 13 | fmul.ss f19,f18,f19 14 | fst.l f19,12(sp) 15 | ld.l 12(sp),r16 16 | adds 16,sp,sp 17 | bri r1 18 | nop 19 | .align 4 20 | .data 21 | //_intify -4(sp) local 22 | .L5: 23 | 24 | //_a 0(sp) local 25 | //_b 4(sp) local 26 | 27 | .text 28 | .data 29 | //_target_flags _target_flags import 30 | .globl ___mulsf3 31 | 32 | .text 33 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_subsf3.s: -------------------------------------------------------------------------------- 1 | .file "_subsf3.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___subsf3: 8 | adds -16,sp,sp 9 | // .bf 10 | fld.l 16(sp),f19 11 | // .ef 12 | fld.l 20(sp),f18 13 | fsub.ss f19,f18,f19 14 | fst.l f19,12(sp) 15 | ld.l 12(sp),r16 16 | adds 16,sp,sp 17 | bri r1 18 | nop 19 | .align 4 20 | .data 21 | //_intify -4(sp) local 22 | .L5: 23 | 24 | //_a 0(sp) local 25 | //_b 4(sp) local 26 | 27 | .text 28 | .data 29 | //_target_flags _target_flags import 30 | .globl ___subsf3 31 | 32 | .text 33 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/input.h: -------------------------------------------------------------------------------- 1 | /* Source file current line is coming from. */ 2 | extern char *input_filename; 3 | 4 | /* Top-level source file. */ 5 | extern char *main_input_filename; 6 | 7 | /* Line number in current source file. */ 8 | extern int lineno; 9 | 10 | struct file_stack 11 | { 12 | char *name; 13 | struct file_stack *next; 14 | int line; 15 | }; 16 | 17 | /* Stack of currently pending input files. 18 | The line member is not accurate for the innermost file on the stack. */ 19 | extern struct file_stack *input_file_stack; 20 | 21 | /* Incremented on each change to input_file_stack. */ 22 | extern int input_file_stack_tick; 23 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/server/video.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | #define VIDEO_DMA_PACKET_SIZE 64 5 | 6 | 7 | #define NTSC_WIDTH 640 8 | #define NTSC_HEIGHT 480 9 | #define NTSC_PACKETS (NTSC_WIDTH/VIDEO_DMA_PACKET_SIZE) 10 | #define NTSC_FIRST_LINE 38 11 | #define NTSC_LAST_LINE (NTSC_HEIGHT + NTSC_FIRST_LINE) 12 | 13 | 14 | 15 | /* eventually, we want to make this large enough to support NTSC 16 | or PAL 17 | */ 18 | #define VIDEO_WIDTH NTSC_WIDTH /* must be multiple of 64 */ 19 | #define VIDEO_HEIGHT NTSC_HEIGHT 20 | #define VIDEO_MASK_ROWBYTES (VIDEO_WIDTH/8) 21 | #define VIDEO_MASKSIZE (VIDEO_MASK_ROWBYTES * VIDEO_HEIGHT) 22 | 23 | 24 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/README: -------------------------------------------------------------------------------- 1 | This directory contains the version 1.36 test release of the GNU C compiler. 2 | All bugs reported for previous test releases have been fixed. 3 | Some bugs surely remain. 4 | 5 | See the file gcc.texinfo for installation and porting information. 6 | The file INSTALL contains a copy of the installation information. 7 | 8 | The GNU C compiler is free software. See the file COPYING for copying 9 | permission. 10 | 11 | The files print-self.c and print-self1.c are not part of GCC. 12 | They are programs that print themselves on standard output. 13 | They were written by Dario Dariol and Giovanni Cozzi, and are 14 | included for your hacking pleasure. 15 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/ND/param.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "i860/proc.h" 4 | 5 | struct map *coremap; 6 | 7 | struct proc proc[NPROC]; 8 | struct proc *P; /* The current process */ 9 | 10 | /* Pager control variables */ 11 | unsigned long FreePageCnt = 0; 12 | unsigned long MinFreePages = 64; 13 | 14 | /* Assorted globals */ 15 | int runrun; /* The rescheduling flag. True if a higher priority */ 16 | /* process is waiting. */ 17 | int runin; /* True if scheduler is waiting to run. */ 18 | int curpri; /* Priority of currently executing process */ 19 | unsigned long _slot_id_; /* (NextBus slot << 28), used in macros */ 20 | -------------------------------------------------------------------------------- /NextDimension-21/MachDriver/gamma.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #define DEFAULT_GAMMA 2.0 6 | 7 | main(argc, argv) 8 | int argc; 9 | char **argv; 10 | { 11 | int index; 12 | double Gamma = DEFAULT_GAMMA; 13 | 14 | if ( argc > 1 ) 15 | Gamma = atof( argv[1] ); 16 | 17 | printf( "unsigned char ND_GammaTable[] =\n{\n\t" ); 18 | for ( index = 0; index < 256; ++index ) 19 | { 20 | printf( "%d,", 21 | (unsigned int)floor((pow(((double)index/255.0),(1.0/Gamma))*255.0)+ 0.5) ); 22 | if ( (index & 7) == 7 ) 23 | printf( "\n\t" ); 24 | else 25 | printf( "\t" ); 26 | } 27 | printf( "};\n" ); 28 | } 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_cmpsf2.s: -------------------------------------------------------------------------------- 1 | .file "_cmpsf2.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___cmpsf2: 8 | // .bf 9 | fld.l 4(sp),f19 10 | fld.l 0(sp),f18 11 | pfgt.ss f18,f19,f0 12 | bnc .L4 13 | bri r1 14 | or 1,r0,r16 15 | .L4: 16 | fld.l 4(sp),f19 17 | fld.l 0(sp),f18 18 | pfgt.ss f19,f18,f0 19 | bnc .L7 20 | bri r1 21 | adds -1,r0,r16 22 | .L7: 23 | // .ef 24 | bri r1 25 | mov r0,r16 26 | .align 4 27 | .data 28 | .L12: 29 | 30 | //_a 0(sp) local 31 | //_b 4(sp) local 32 | 33 | .text 34 | .data 35 | //_target_flags _target_flags import 36 | .globl ___cmpsf2 37 | 38 | .text 39 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/kdb/structs.h: -------------------------------------------------------------------------------- 1 | /* the following structures are used for symbolic disassembly */ 2 | 3 | /* structures for holding information about external and static symbols */ 4 | 5 | /* extern-static hash table structure */ 6 | typedef struct node essymrec; 7 | typedef struct node *pessymrec; 8 | struct node { 9 | char *name; 10 | long symval; 11 | struct node *next; 12 | }; 13 | 14 | /* extern-static union-array list structure */ 15 | typedef struct ua uarec; 16 | typedef struct ua *puarec; 17 | struct ua { 18 | char *name; 19 | long symval; 20 | char type; 21 | int range; 22 | struct ua *next; 23 | }; 24 | 25 | struct nlist { 26 | long n_value; 27 | char n_name[1]; 28 | } *ssp; 29 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/config-i860: -------------------------------------------------------------------------------- 1 | 2 | CPUTYPE = i860 3 | LIB860 = ../../NDkernel 4 | BINDOBJ = ../../cmds/bind.o 5 | INC860 = ../../include.i860 6 | TOOLDIR=/usr/local 7 | NDLIB860 = $(TOOLDIR)/i860/lib 8 | CC = $(TOOLDIR)/bin/cc860 -I$(INC860) -DCURSOR_i860 9 | LD =$(TOOLDIR)/bin/ld860 10 | LD_FINAL_FLAGS = -p -T f8000000 -e pstart 11 | AS = as860 12 | RANLIB = ranlib860 13 | LIBS = $(LIB860)/libsa.a $(NDLIB860)/gcc-runtime860.a 14 | CRT0 = $(LIB860)/crt0.o 15 | MIGFLAGS = 16 | #POST_LD_COMMAND = unixsyms server-$(CPUTYPE) 17 | POST_LD_COMMAND = unixsyms server-$(CPUTYPE); \ 18 | strip server-$(CPUTYPE); \ 19 | cc -o server $(BINDOBJ) -segcreate __I860 __i860 server-$(CPUTYPE) \ 20 | ../../libND/libND.a -lNeXT_s -lsys_s 21 | -------------------------------------------------------------------------------- /NDTools-4/gdb/environ.h: -------------------------------------------------------------------------------- 1 | 2 | /* We manipulate environments represented as these structures. */ 3 | 4 | struct environ 5 | { 6 | /* Number of usable slots allocated in VECTOR. 7 | VECTOR always has one slot not counted here, 8 | to hold the terminating zero. */ 9 | int allocated; 10 | /* A vector of slots, ALLOCATED + 1 of them. 11 | The first few slots contain strings "VAR=VALUE" 12 | and the next one contains zero. 13 | Then come some unused slots. */ 14 | char **vector; 15 | }; 16 | 17 | struct environ *make_environ (); 18 | void free_environ (); 19 | void init_environ (); 20 | char *get_in_environ (); 21 | void set_in_environ (); 22 | void unset_in_environ (); 23 | char **environ_vector (); 24 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_fixunsdfsi.s: -------------------------------------------------------------------------------- 1 | .file "_fixunsdfsi.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___fixunsdfsi: 8 | // .bf 9 | ld.c fsr,r28 10 | andnot 12,r28,r27 11 | orh ha%.L10,r0,r30 12 | fld.d l%.L10(r30),f16 13 | or 4,r27,r27 14 | st.c r27,fsr 15 | // .ef 16 | fsub.dd f8,f16,f18 17 | fix.dd f18,f18 18 | st.c r28,fsr 19 | fxfr f18,r16 20 | bri r1 21 | xorh 32768,r16,r16 22 | .align 4 23 | .data 24 | .L5: 25 | .L10: .byte 0,0,0,0 26 | .byte 0,0,224,65 27 | 28 | //_a f8 local 29 | 30 | .text 31 | .data 32 | //_target_flags _target_flags import 33 | .globl ___fixunsdfsi 34 | 35 | .text 36 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/include/package_specs.h: -------------------------------------------------------------------------------- 1 | #define BINTREE 2 | #define BITMAP 3 | #define CUSTOMOPS 4 | #define DEVICE 5 | #define DEVCREATE 6 | #define DEVICETYPES 7 | #define DEVIMAGE 8 | #define DEVMARK 9 | #define DEVPATTERN 10 | #define ENVIRONMENT 11 | #define EXCEPT 12 | #define FILESYSTEM 13 | #define FILETYPES 14 | #define FOREGROUND 15 | #define FP 16 | #define POSTSCRIPT 17 | #define PSLIB 18 | #define PUBLICTYPES 19 | #define STREAM 20 | #define UNIXSTREAM 21 | -------------------------------------------------------------------------------- /NextDimension-21/libND/ND_kernserver.c: -------------------------------------------------------------------------------- 1 | #include "ND/NDlib.h" 2 | #include "ND/ND_conio.h" 3 | #include 4 | #include 5 | #include 6 | 7 | /* Minimal MiG compatible reply message */ 8 | typedef struct { 9 | msg_header_t Head; 10 | msg_type_t RetCodeType; 11 | kern_return_t RetCode; 12 | } Reply; 13 | 14 | /* 15 | * _NDKern_server: 16 | * Default kernel server stub, used when the user doesn't provide one. 17 | * Just consume the message and don't bother with anything else. 18 | */ 19 | boolean_t 20 | _NDKern_server( msg_header_t *InHeadP, msg_header_t *OutHeadP ) 21 | { 22 | register Reply *OutP = (Reply *) OutHeadP; 23 | 24 | OutP->RetCode = MIG_NO_REPLY; 25 | return TRUE; 26 | } 27 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_eprintf.s: -------------------------------------------------------------------------------- 1 | .file "_eprintf.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___eprintf: 8 | adds -16,sp,sp 9 | st.l r1,12(sp) 10 | // .bf 11 | // .ef 12 | mov r16,r19 13 | ld.l 12(sp),r1 14 | adds 16,sp,sp 15 | orh h%__iob+32,r0,r16 16 | mov r18,r21 17 | mov r17,r20 18 | mov r20,r18 19 | mov r19,r17 20 | mov r21,r19 21 | br _fprintf 22 | or l%__iob+32,r16,r16 23 | .align 4 24 | .data 25 | .L4: 26 | 27 | //_string r19 local 28 | //_line r20 local 29 | //_filename r21 local 30 | 31 | .text 32 | .data 33 | //_target_flags _target_flags import 34 | //__iob __iob import 35 | .globl ___eprintf 36 | 37 | .text 38 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/config-cpu: -------------------------------------------------------------------------------- 1 | 2 | CPUTYPE = i860 3 | LIB860 = ../../NDkernel 4 | BINDOBJ = ../../cmds/bind.o 5 | INC860 = ../../include.i860 6 | TOOLDIR=/Net/k9/dps/nd_proj/ 7 | NDLIB860 = $(TOOLDIR)/i860/lib 8 | CC = $(TOOLDIR)/bin/cc860 -I$(INC860) -DCURSOR_i860 9 | LD =$(TOOLDIR)/bin/ld860 10 | LD_FINAL_FLAGS = -p -T f8000000 -e pstart -x 11 | AS = as860 12 | RANLIB = ranlib860 13 | LIBS = $(LIB860)/libsa.a $(NDLIB860)/gcc-runtime860.a 14 | CRT0 = $(LIB860)/crt0.o 15 | MIGFLAGS = 16 | #POST_LD_COMMAND = unixsyms server-$(CPUTYPE) 17 | POST_LD_COMMAND = unixsyms server-$(CPUTYPE); \ 18 | cp server-$(CPUTYPE) /tmp/foo; \ 19 | strip /tmp/foo; \ 20 | cc -o server $(BINDOBJ) -segcreate __I860 __i860 /tmp/foo \ 21 | ../../libND/libND.a -lNeXT_s -lsys_s 22 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_divdf3.s: -------------------------------------------------------------------------------- 1 | .file "_divdf3.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___divdf3: 8 | // .bf 9 | fmov.dd f8,f12 10 | frcp.dd f10,f16 11 | fmul.dd f10,f16,f8 12 | orh 16384,r0,r28 13 | ixfr r28,f19 14 | // .ef 15 | fmov.ss f0,f18 16 | fsub.dd f18,f8,f8 17 | fmul.dd f16,f8,f16 18 | fmul.dd f10,f16,f8 19 | fsub.dd f18,f8,f8 20 | fmul.dd f16,f8,f16 21 | fmul.dd f10,f16,f8 22 | fsub.dd f18,f8,f8 23 | fmul.dd f12,f16,f16 24 | bri r1 25 | fmul.dd f8,f16,f8 26 | .align 4 27 | .data 28 | .L5: 29 | 30 | //_a f8 local 31 | //_b f10 local 32 | 33 | .text 34 | .data 35 | //_target_flags _target_flags import 36 | .globl ___divdf3 37 | 38 | .text 39 | -------------------------------------------------------------------------------- /NDTools-4/as/atof-m68k-assist.s: -------------------------------------------------------------------------------- 1 | .globl _packed_decimal_float_to_single 2 | _packed_decimal_float_to_single: 3 | movl sp@(4),a0 | the packed decimal pointer 4 | movl sp@(8),a1 | float storage pointer 5 | .word 0xf210,0x4c00 | fmovep a0@,fp0 6 | fmoves fp0,a1@ 7 | rts 8 | 9 | 10 | .globl _packed_decimal_float_to_double 11 | _packed_decimal_float_to_double: 12 | movl sp@(4),a0 | the packed decimal pointer 13 | movl sp@(8),a1 | float storage pointer 14 | .word 0xf210,0x4c00 | fmovep a0@,fp0 15 | fmoved fp0,a1@ 16 | rts 17 | 18 | 19 | .globl _packed_decimal_float_to_extended 20 | _packed_decimal_float_to_extended: 21 | movl sp@(4),a0 | the packed decimal pointer 22 | movl sp@(8),a1 | float storage pointer 23 | .word 0xf210,0x4c00 | fmovep a0@,fp0 24 | fmovex fp0,a1@ 25 | rts 26 | 27 | 28 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/sys/thread_modes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mach Operating System 3 | * Copyright (c) 1987 Carnegie-Mellon University 4 | * All rights reserved. The CMU software License Agreement specifies 5 | * the terms and conditions for use and redistribution. 6 | */ 7 | /* 8 | ********************************************************************** 9 | * HISTORY 10 | * 3-Apr-87 David Black (dlb) at Carnegie-Mellon University 11 | * Created by extracting thread mode defines from thread.h. 12 | * 13 | ********************************************************************** 14 | */ 15 | 16 | /* 17 | * Maximum number of thread execution modes. 18 | */ 19 | 20 | #define THREAD_MAXMODES 2 21 | 22 | /* 23 | * Thread execution modes. 24 | */ 25 | 26 | #define THREAD_USERMODE 0 27 | #define THREAD_SYSTEMMODE 1 28 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/libc/Makefile: -------------------------------------------------------------------------------- 1 | XXX= -ga -X370 -X425 -X9 -X230 -Z422 2 | DEFS= #-DFLOATING_PT 3 | COPTS= 4 | INCLUDE=-I../../include.i860 5 | CFLAGS= -O $(COPTS) $(DEFS) $(INCLUDE) 6 | LDFLAGS=-p -T 0xfff00000 -d 0xfff80000 7 | CC=cc860 8 | GCC=ccom860 9 | LD=ld860 10 | AS=as860 11 | MV=mv 12 | OBJDIR=../obj 13 | 14 | OBJS= strcat.o strcmp.o strcpy.o strlen.o strncat.o strncmp.o strncpy.o 15 | 16 | default: $(OBJS) 17 | 18 | .s.o: 19 | $(CC) $(CFLAGS) -DASSEMBLER -c $*.s 20 | -$(LD) -x -r $@ -o xxx.o 21 | rm -f $@ 22 | ${MV} xxx.o $@ 23 | rm -f $(OBJDIR)/$*.o 24 | ln $*.o $(OBJDIR)/$*.o 25 | 26 | 27 | .c.o: 28 | $(CC) $(CFLAGS) -c $*.c 29 | -$(LD) -x -r $@ -o xxx.o 30 | rm -f $@ 31 | ${MV} xxx.o $@ 32 | rm -f $(OBJDIR)/$*.o 33 | ln $*.o $(OBJDIR)/$*.o 34 | 35 | clean: 36 | rm -f a.out $(OBJS) $(EOBJS) 37 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/assert.h: -------------------------------------------------------------------------------- 1 | /* Allow this file to be included multiple times 2 | with different settings of NDEBUG. */ 3 | #undef assert 4 | #undef __assert 5 | 6 | #ifdef NDEBUG 7 | #define assert(ignore) 8 | #else 9 | 10 | #define assert(expression) \ 11 | ((expression) ? 0 : __assert (#expression, __FILE__, __LINE__)) 12 | 13 | void __eprintf (); /* Defined in gnulib */ 14 | 15 | #ifdef __STDC__ 16 | 17 | #define __assert(expression, file, line) \ 18 | (__eprintf ("Failed assertion " expression \ 19 | " at line %d of `" file "'.\n", line), \ 20 | abort ()) 21 | 22 | #else /* no __STDC__; i.e. -traditional. */ 23 | 24 | #define __assert(expression, file, line) \ 25 | (__eprintf ("Failed assertion at line %d of `%s'.\n", line, file), \ 26 | abort ()) 27 | 28 | #endif /* no __STDC__; i.e. -traditional. */ 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/ND/stubs.c: -------------------------------------------------------------------------------- 1 | #ident "@(#)stubs.c 1.00" 2 | /* 3 | * INTEL CORPORATION PROPRIETARY INFORMATION 4 | * 5 | * This software is supplied under the terms of a license 6 | * agreement or nondisclosure agreement with Intel Corpo- 7 | * ration and may not be copied or disclosed except in 8 | * accordance with the terms of that agreement. 9 | */ 10 | 11 | int ki_enable; 12 | #if 0 13 | backall(){} 14 | current_thread(){ puts("current_thread "); } 15 | splall(){} 16 | panic(){ puts("panic "); } 17 | #endif 18 | getmemc(){ puts("getmemc "); } 19 | page_mask(){ puts("page_mask "); } 20 | pfind(){ puts("pfind "); } 21 | pmap_extract(){ puts("pmap_extract "); } 22 | putmemc(){ puts("putmemc "); } 23 | reset(){ puts("reset "); } 24 | thread_read_times(){ puts("thread_read_times "); } 25 | vm_map_print(){ puts("vm_map_print "); } 26 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/cpp.cps: -------------------------------------------------------------------------------- 1 | \initial {C} 2 | \entry {cascaded macros}{26} 3 | \entry {commands}{3} 4 | \entry {concatenation}{16} 5 | \entry {conditionals}{27} 6 | \initial {H} 7 | \entry {header file}{3} 8 | \initial {L} 9 | \entry {line control}{33} 10 | \initial {M} 11 | \entry {macro body uses macro}{26} 12 | \initial {N} 13 | \entry {null command}{34} 14 | \initial {O} 15 | \entry {options}{35} 16 | \entry {output format}{34} 17 | \initial {P} 18 | \entry {predefined macros}{11} 19 | \entry {preprocessor commands}{3} 20 | \initial {R} 21 | \entry {redefining macros}{18} 22 | \entry {repeated inclusion}{6} 23 | \initial {S} 24 | \entry {self-reference}{23} 25 | \entry {semicolons (after macro calls)}{20} 26 | \entry {side effects (in macro arguments)}{22} 27 | \entry {stringification}{14} 28 | \initial {U} 29 | \entry {undefining macros}{17} 30 | \entry {unsafe macros}{22} 31 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/bitmap/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Bitmap Package Makefile 3 | # 4 | 5 | HFILES = bm34.h bm38.h 6 | 7 | CFILES = bm.c bmlocal.c bmpattern.c bm34.c bm34comp.c bm34conv.c \ 8 | bm38.c bm38comp.c bm38conv.c mp12.c mp12comp.c mp12conv.c \ 9 | mp12copyline.c mp12funcline.c mp12hlrect.c mp12soverrect.c \ 10 | mp12copyrect.c 11 | 12 | SFILES = bm38copy.860.s bm38conv2to32.860.s bm38hl.860.s bm38sover.860.s \ 13 | bm38dissolve.860.s 14 | 15 | OTHER_SWITCHES = -DwdProcs=fmProcs -DwdMarkProcs=fmMarkProcs 16 | 17 | include ../config-cpu 18 | 19 | include ../Makefile.common 20 | 21 | NAME = bitmap-$(CPUTYPE).o 22 | 23 | all: $(NAME) 24 | 25 | install: all 26 | 27 | install_local: 28 | 29 | installh: 30 | 31 | clean: 32 | -rm -rf $(NAME) obj-$(CPUTYPE) make.log depend 33 | 34 | $(NAME): $(OFILEDIR) $(OFILES) 35 | $(LD) -r -o $(NAME) $(OFILES) 36 | 37 | -include depend 38 | -------------------------------------------------------------------------------- /NextDimension-21/cmds/bind860.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This is a simple hack to link 860 objects for our standalone environment 4 | # and bind them with a host launcher. 5 | # 6 | BIN=/Net/k9/dps/nd_proj/bin 7 | LIB=/Net/k9/dps/nd_proj/i860/lib 8 | CC=$BIN/cc860 9 | LD=$BIN/ld860 10 | MUNGE=$BIN/unixsyms 11 | BINDOBJ=$LIB/bind860.o 12 | CRT0=$LIB/crt0.o 13 | LIB1=$LIB/libsa.a 14 | LIB2=$LIB/gcc-runtime860 15 | 16 | outfile="a.out" 17 | args="" 18 | 19 | while [ $# != 0 ]; do 20 | case $1 in 21 | -o) 22 | shift 23 | outfile=$1 ;; 24 | -debug) 25 | LIB1=$LIB/libsa_debug.a ;; 26 | *) 27 | args="$args $1" ;; 28 | esac 29 | shift 30 | done 31 | 32 | $LD -p -T f8000000 -o /tmp/bind860.$$ -e pstart $CRT0 $args $LIB1 $LIB2 33 | $MUNGE /tmp/bind860.$$ 34 | strip /tmp/bind860.$$ 35 | cc -o $outfile $BINDOBJ -segcreate __I860 __i860 /tmp/bind860.$$ -lNeXT_s -lsys_s 36 | /bin/rm -f /tmp/bind860.$$ 37 | 38 | 39 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/stdarg.h: -------------------------------------------------------------------------------- 1 | #ifndef _STDARG_H 2 | #define _STDARG_H 3 | 4 | typedef char *va_list; 5 | 6 | /* Amount of space required in an argument list for an arg of type TYPE. 7 | TYPE may alternatively be an expression whose type is used. */ 8 | 9 | #define __va_rounded_size(TYPE) \ 10 | (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int)) 11 | 12 | #ifndef __sparc__ 13 | #define va_start(AP, LASTARG) \ 14 | (AP = ((char *) &(LASTARG) + __va_rounded_size (LASTARG))) 15 | #else 16 | #define va_start(AP, LASTARG) \ 17 | (__builtin_saveregs (), \ 18 | AP = ((char *) &(LASTARG) + __va_rounded_size (LASTARG))) 19 | #endif 20 | 21 | void va_end (va_list); /* Defined in gnulib */ 22 | #define va_end(AP) 23 | 24 | #define va_arg(AP, TYPE) \ 25 | (AP += __va_rounded_size (TYPE), \ 26 | *((TYPE *) (AP - __va_rounded_size (TYPE)))) 27 | 28 | #endif /* _STDARG_H */ 29 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/romcode/Makefile: -------------------------------------------------------------------------------- 1 | DSTROOT= 2 | LOCDESTDIR=$(DSTROOT)/Net/k9/dps/nd_proj/bin 3 | DESTDIR=$(DSTROOT)/usr/local/bin 4 | CFILES=romimage.c 5 | OBJS=romimage.o 6 | COPTS= 7 | CFLAGS= $(COPTS) -O -I../../include.i860 8 | LIBS= 9 | 10 | 860DIR=/usr/local/bin 11 | CC860=$(860DIR)/cc860 12 | LD860=$(860DIR)/ld860 13 | INSTALL=install -c -m 755 -s 14 | 15 | OBJS= locore.o flush.o i860_init.o main.o 16 | SRCS= locore.s flush.s i860_init.c main.c 17 | 18 | all: rom 19 | 20 | .s.o: 21 | $(CC860) $(CFLAGS) -DASSEMBLER -c $*.s 22 | 23 | .c.o: 24 | $(CC860) $(CFLAGS) -c $*.c 25 | 26 | rom: $(OBJS) 27 | $(LD860) -o rom -x -p -T FFFE0000 -e Reset $(OBJS) 28 | size rom 29 | 30 | 31 | clean: 32 | rm -f ${OBJS} rom 33 | 34 | install: 35 | @echo "Nothing to install here..." 36 | 37 | install_local: 38 | @echo "Nothing to install here..." 39 | 40 | installh: 41 | @echo "Nothing to installh here..." 42 | 43 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/kern/parallel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mach Operating System 3 | * Copyright (c) 1987 Carnegie-Mellon University 4 | * All rights reserved. The CMU software License Agreement specifies 5 | * the terms and conditions for use and redistribution. 6 | */ 7 | 8 | /* 9 | * HISTORY 10 | * 9-Oct-87 Robert Baron (rvb) at Carnegie-Mellon University 11 | * Define unix_reset for longjmp/setjmp reset. 12 | * 13 | * 21-Sep-87 Robert Baron (rvb) at Carnegie-Mellon University 14 | * Created. 15 | * 16 | */ 17 | 18 | #include "cpus.h" 19 | 20 | #if NCPUS > 1 21 | 22 | #define unix_master() _unix_master() 23 | #define unix_release() _unix_release() 24 | #define unix_reset() _unix_reset() 25 | void _unix_master(), _unix_release(), _unix_reset(); 26 | 27 | #else /* NCPUS > 1 */ 28 | 29 | #define unix_master() 30 | #define unix_release() 31 | #define unix_reset() 32 | 33 | #endif /* NCPUS > 1 */ 34 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/machine/exception.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mach Operating System 3 | * Copyright (c) 1987 Carnegie-Mellon University 4 | * All rights reserved. The CMU software License Agreement specifies 5 | * the terms and conditions for use and redistribution. 6 | */ 7 | 8 | /* 9 | ********************************************************************** 10 | * HISTORY 11 | * 2-Nov-87 David Golub (dbg) at Carnegie-Mellon University 12 | * Created. 13 | * 14 | ********************************************************************** 15 | */ 16 | 17 | /* 18 | * Codes and subcodes for i860 exceptions. 19 | */ 20 | 21 | /* 22 | * EXC_BAD_INSTRUCTION 23 | */ 24 | 25 | #define EXC_i860_PRIV 1 26 | #define EXC_i860_IAT 2 27 | 28 | /* 29 | * EXC_ARITHMETIC 30 | */ 31 | 32 | /* 33 | * EXC_SOFTWARE 34 | */ 35 | 36 | /* 37 | * EXC_BAD_ACCESS 38 | */ 39 | 40 | /* 41 | * EXC_BREAKPOINT 42 | */ 43 | -------------------------------------------------------------------------------- /NDTools-4/runtime860/_builtin_new.s: -------------------------------------------------------------------------------- 1 | .file "_builtin_new.c" 2 | // ccom -O -X22 -X74 -X80 -X83 -X247 -X254 -X266 -X278 -X325 -X350 -X383 -X422 3 | // -X424 -X501 -X523 -X524 -X525 4 | 5 | .text 6 | .align 4 7 | ___builtin_new: 8 | adds -16,sp,sp 9 | st.l r1,12(sp) 10 | // .bf 11 | call _malloc 12 | st.l r4,8(sp) 13 | mov r16,r4 14 | btne 0,r16,.L4 15 | orh ha%___new_handler,r0,r30 16 | ld.l l%___new_handler(r30),r30 17 | calli r30 18 | nop 19 | mov r4,r16 20 | ld.l 8(sp),r4 21 | ld.l 12(sp),r1 22 | adds 16,sp,sp 23 | bri r1 24 | nop 25 | .L4: 26 | mov r4,r16 27 | // .ef 28 | ld.l 8(sp),r4 29 | ld.l 12(sp),r1 30 | adds 16,sp,sp 31 | bri r1 32 | nop 33 | .align 4 34 | .data 35 | //_p r4 local 36 | .L7: 37 | 38 | //_sz r16 local 39 | 40 | .text 41 | .data 42 | //_target_flags _target_flags import 43 | //___new_handler ___new_handler import 44 | .globl ___builtin_new 45 | 46 | .text 47 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/setjmp.h: -------------------------------------------------------------------------------- 1 | #ifndef _SETJMP_H 2 | #define _SETJMP_H 3 | 4 | #define JB_R4 0 5 | #define JB_R5 1 6 | #define JB_R6 2 7 | #define JB_R7 3 8 | #define JB_R8 4 9 | #define JB_R9 5 10 | #define JB_R10 6 11 | #define JB_R11 7 12 | #define JB_R12 8 13 | #define JB_R13 9 14 | #define JB_R14 10 15 | #define JB_R15 11 16 | #define JB_FP 12 17 | #define JB_SP 13 18 | #define JB_R1 14 19 | #define JB_IPL 15 /* Interrupt Mask for splx(), in kernel mode */ 20 | #define JB_F2 16 21 | #define JB_F3 17 22 | #define JB_F4 18 23 | #define JB_F5 19 24 | #define JB_F6 20 25 | #define JB_F7 21 26 | 27 | #define JB_NREGS (JB_F7 + 1) 28 | 29 | #if !defined(LOCORE) && !defined(ASSEMBLER) 30 | typedef int jmp_buf[JB_NREGS]; 31 | 32 | #ifndef __STRICT_BSD__ 33 | extern int setjmp(jmp_buf env); 34 | extern void longjmp(jmp_buf env, int val); 35 | #endif /* __STRICT_BSD__ */ 36 | #endif 37 | 38 | #endif /* _SETJMP_H */ 39 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/machine/pcb.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984 1988 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */ 5 | /* The copyright notice above does not evidence any */ 6 | /* actual or intended publication of such source code. */ 7 | 8 | /* 9 | * MACH addendum 10 | * 11 | * 11-Jul-88 John Dugas, Scott Nacey Prime Computer Inc. 12 | * Added pcb structure 13 | */ 14 | 15 | #ident "@(#)head.sys:tss.h 1.4" 16 | 17 | #ifndef _PCB_ 18 | #define _PCB_ 19 | 20 | #include "sys/types.h" 21 | 22 | /* 23 | * i860 PCB definition 24 | */ 25 | 26 | struct pcb { 27 | struct pt_entry *pcb_direct; /* page directory pointer */ 28 | label_t pcb_context; /* save context for kernel */ 29 | int pcb_cmap2; 30 | int *pcb_sswap; 31 | int pcb_sigc[5]; 32 | }; 33 | 34 | /* 35 | * pcb_synch is not needed on the i860 36 | */ 37 | 38 | #define pcb_synch(x) 39 | #endif 40 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/ND/swab_pte.c: -------------------------------------------------------------------------------- 1 | /* 2 | * swab_pte: 3 | * 4 | * This function is called with a pointer to a first or second level 5 | * page table holding 1024 entries. If the level flag is 1, then 6 | * each non-zero entry in the table is a 2nd level table pointer. 7 | * Recurse through that table, then swap the pointer and update the 8 | * 1st level table. 9 | * 10 | */ 11 | swab_pte( table, level ) 12 | unsigned long *table; 13 | int level; 14 | { 15 | int i; 16 | unsigned long pte0, pte1; 17 | 18 | for ( i = 0; i < 1024; i += 2 ) 19 | { 20 | pte0 = table[i]; 21 | pte1 = table[i + 1]; 22 | 23 | if ( level == 1 ) 24 | { 25 | if ( pte0 != 0L ) 26 | swab_pte( (unsigned long *)(pte0 & ~0xFFF), 2 ); 27 | if ( pte1 != 0L ) 28 | swab_pte( (unsigned long *)(pte1 & ~0xFFF), 2 ); 29 | } 30 | table[i] = pte1; 31 | table[i + 1] = pte0; 32 | } 33 | flush(); 34 | } 35 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/make-cccp.com: -------------------------------------------------------------------------------- 1 | $! 2 | $! Build the GNU "C" pre-processor on VMS 3 | $! 4 | $ 5 | $! 6 | $! C compiler 7 | $! 8 | $ CC := gcc 9 | $! 10 | $! Compiler options 11 | $! 12 | $ CFLAGS = "/debug/inc=([],[.config])" 13 | $! 14 | $! Link options 15 | $! 16 | $ LDFLAGS := /nomap 17 | $! 18 | $! Link libraries 19 | $! 20 | $ LIBS := gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr 21 | $ if "''p1'" .eqs. "LINK" then goto Link 22 | $ 'CC 'CFLAGS cccp.c 23 | $ t1:='f$search("CEXP.C")' 24 | $ if "''t1'" .eqs. "" then goto 10$ 25 | $ t1:='f$file_attributes("CEXP.Y","RDT")' 26 | $ t1:='f$cvtime(t1)' 27 | $ t2:='f$file_attributes("CEXP.C","RDT")' 28 | $ t2:='f$cvtime(t2)' 29 | $ if t1 .les. t2 then goto 20$ 30 | $ 10$: 31 | $ bison cexp.y 32 | $ rename cexp_tab.c cexp.c 33 | $ 20$: 34 | $! 35 | $ 'CC 'CFLAGS cexp.c 36 | $ 'CC 'CFLAGS version.c 37 | $ Link: 38 | $ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,'LIBS' 39 | $! 40 | $! Done 41 | $! 42 | $ exit 43 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/trapprecision.c: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright (c) 1988 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | Edit History: 17 | Jim Sandman: Wed Nov 9 15:22:57 1988 18 | End Edit History. 19 | */ 20 | 21 | #include PACKAGE_SPECS 22 | #include PUBLICTYPES 23 | 24 | 25 | public boolean DevMinimizeTrapPrecision() {return false;} 26 | 27 | 28 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/pas/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for the p-code assembler. The Makefile 2 | # controls the construction of the lex and yacc based 3 | # parser and scanner as well as the usual compilation stuff. 4 | CFLAGS= -g 5 | 6 | YACC= yacc 7 | LEX= lex 8 | 9 | OBJS= gram.o scan.o main.o util.o pass1.o pass2.o output.o list.o 10 | 11 | LIBS= -ll 12 | 13 | TARGET= pas 14 | 15 | default: $(TARGET) 16 | 17 | install: 18 | 19 | installh: 20 | 21 | 22 | $(TARGET): $(OBJS) 23 | $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS) 24 | 25 | 26 | gram.o: gram.y 27 | $(YACC) -d gram.y 28 | -mv y.tab.c gram.tab.c 29 | -mv y.tab.h gram.tab.h 30 | $(CC) $(CFLAGS) -c gram.tab.c 31 | mv gram.tab.o gram.o 32 | rm -f gram.tab.c 33 | 34 | 35 | scan.o: scan.l gram.tab.h 36 | $(LEX) scan.l 37 | $(CC) $(CFLAGS) -c lex.yy.c 38 | mv lex.yy.o scan.o 39 | rm -f lex.yy.c 40 | 41 | clean: 42 | rm -f *.o gram.tab.c gram.tab.h lex.yy.c gram.output $(TARGET) 43 | 44 | -------------------------------------------------------------------------------- /NDTools-4/otool/Makedep: -------------------------------------------------------------------------------- 1 | otool.o : otool.c /usr/include/stdio.h /usr/include/stddef.h \ 2 | /usr/include/stdarg.h /usr/include/sys/file.h /usr/include/sys/fcntl.h \ 3 | /usr/include/sys/types.h /usr/include/sys/stat.h ../include/a.out.h \ 4 | ../include/i860.h ../include/ldsyms.h /usr/include/objc/objc-runtime.h \ 5 | /usr/include/objc/objc.h /usr/include/objc/objc-class.h \ 6 | /usr/include/objc/hashtable.h /usr/include/streams/streams.h \ 7 | /usr/include/sys/port.h /usr/include/sys/features.h \ 8 | /usr/include/objc/error.h /usr/include/setjmp.h /usr/include/sys/loader.h \ 9 | ../include/sys/machine.h /usr/include/vm/vm_param.h \ 10 | /usr/include/machine/vm_param.h /usr/include/machine/vm_types.h \ 11 | /usr/include/sys/boolean.h /usr/include/machine/boolean.h \ 12 | /usr/include/vm/vm_prot.h ../include/machine/thread_status.h \ 13 | /usr/include/next/reg.h /usr/include/ar.h /usr/include/ranlib.h \ 14 | ../include/symseg.h ../as/i860-opcode.h 15 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config-gcc.com: -------------------------------------------------------------------------------- 1 | $ ! 2 | $ ! Set up to compile GCC on VMS 3 | $ ! 4 | $ echo = "write sys$output" 5 | $ ! 6 | $ if f$search("config.h") .nes. "" then delete config.h.* 7 | $ copy [.config]xm-vms.h []config.h 8 | $ echo "Linked `config.h' to `[.config]xm-vms.h'. 9 | $ ! 10 | $ if f$search("tm.h") .nes. "" then delete tm.h.* 11 | $ copy [.config]tm-vms.h []tm.h 12 | $ echo "Linked `tm.h' to `[.config]tm-vms.h'. 13 | $ ! 14 | $ if f$search("md.") .nes. "" then delete md..* 15 | $ copy [.config]vax.md []md. 16 | $ echo "Linked `md' to `[.config]vax.md'. 17 | $ ! 18 | $ if f$search("aux-output.c") .nes. "" then delete aux-output.c.* 19 | $ copy [.config]out-vax.c []aux-output.c 20 | $ echo "Linked `aux-output.c' to `[.config]out-vax.c'. 21 | $ ! 22 | $ if f$search("config.status") .nes. "" then delete config.status.* 23 | $ open/write file config.status 24 | $ write file "Links are now set up for use with a vax running VMS." 25 | $ close file 26 | $ type config.status 27 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/pas/ptokens.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Definition file for video ROM pcode opcodes. 3 | */ 4 | #ifndef _PTOKENS_H_ 5 | #define _PTOKENS_H_ 1 6 | 7 | /* 8 | * Token defs for use in the lexical analyzer, 9 | * one per keyword or primitive construct. 10 | */ 11 | #define LOAD 1 12 | #define STORE 2 13 | #define STOREV 3 14 | #define ENDSTOREV 4 15 | #define ADD 5 16 | #define SUB 6 17 | #define AND 7 18 | #define OR 8 19 | #define XOR 9 20 | #define ASR 10 21 | #define ASL 20 22 | #define MOVE 11 23 | #define TEST 12 24 | #define BR 13 25 | #define BPOS 14 26 | #define BNEG 15 27 | #define BZERO 16 28 | #define BNPOS 17 29 | #define BNNEG 18 30 | #define BNZERO 19 31 | #define END 0 32 | 33 | /* Operand tokens. */ 34 | #define REG 21 35 | #define STRING 22 36 | #define IMMED 23 /* The # character */ 37 | #define NUMBER 24 /* Base 10 number */ 38 | #define HEXNUM 25 39 | #define OCTNUM 26 40 | #define COLON 27 41 | 42 | #endif /* _PTOKENS_H_ */ 43 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/devprim.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 1983, '84, '85, '86, '87, '88 Adobe Systems Incorporated. 3 | All rights reserved. 4 | 5 | NOTICE: All information contained herein is the property of Adobe Systems 6 | Incorporated. Many of the intellectual and technical concepts contained 7 | herein are proprietary to Adobe, are protected as trade secrets, and are made 8 | available only to Adobe licensees for their internal use. Any reproduction 9 | or dissemination of this software is strictly forbidden unless prior written 10 | permission is obtained from Adobe. 11 | 12 | PostScript is a registered trademark of Adobe Systems Incorporated. 13 | Display PostScript is a trademark of Adobe Systems Incorporated. 14 | 15 | */ 16 | 17 | #ifndef DEVPRIM_H 18 | #define DEVPRIM_H 19 | 20 | #include PUBLICTYPES 21 | 22 | extern PVoidProc SetFlushClipProc (/* PVoidProc p; */); 23 | 24 | extern boolean EnclosesRect(/* DevPrim *dp; DevBounds *r; */); 25 | 26 | #endif DEVPRIM_H 27 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/machine/vm_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mach Operating System 3 | * Copyright (c) 1987 Carnegie-Mellon University 4 | * All rights reserved. The CMU software License Agreement specifies 5 | * the terms and conditions for use and redistribution. 6 | */ 7 | /* 8 | * File: vm_types.h 9 | * Author: Avadis Tevanian, Jr. 10 | * 11 | * Copyright (C) 1985, Avadis Tevanian, Jr. 12 | * 13 | * Header file for VM data types. i860 version. 14 | * 15 | * HISTORY 16 | * 23-Apr-87 Michael Young (mwyoung) at Carnegie-Mellon University 17 | * Changed things to "unsigned int" to appease the user community :-). 18 | * 19 | * 13-Jun-85 Avadis Tevanian (avie) at Carnegie-Mellon University 20 | * Created. 21 | */ 22 | 23 | #ifndef _VM_TYPES_MACHINE_ 24 | #define _VM_TYPES_MACHINE_ 1 25 | 26 | #ifdef ASSEMBLER 27 | #else /* ASSEMBLER */ 28 | typedef unsigned int vm_offset_t; 29 | typedef unsigned int vm_size_t; 30 | #endif /* ASSEMBLER */ 31 | 32 | #endif /* _VM_TYPES_MACHINE_ */ 33 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/kdb/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | #XXX=-ga -X425 -Z422 -X370 -X9 -X230 4 | DEFS=-DKERNEL -UMACH -DCMU 5 | COPTS= 6 | INCLUDE=-I. -I../../include.i860 7 | CFLAGS= -O $(COPTS) $(DEFS) $(INCLUDE) 8 | CC=cc860 9 | LD=ld860 10 | AS=as860 11 | MV=mv 12 | OBJDIR=../obj 13 | 14 | KDBOBJS= kdb.o access.o bits.o command.o expr.o \ 15 | format.o input.o kdb_main.o message.o output.o \ 16 | pcs.o print.o runpcs.o setup.o stack.o sym.o \ 17 | tbls.o utls.o 18 | 19 | default: $(KDBOBJS) 20 | 21 | a.out: $(OBJS) $(KDBOBJS) $(EOBJS) 22 | $(LD) $(LDFLAGS) -e pstart $(OBJS) $(KDBOBJS) $(EOBJS) 23 | nusyms a.out 24 | 25 | .s.o: 26 | $(CC) -c $*.s 27 | -$(LD) -x -r $@ -o xxx.o 28 | rm -f $@ 29 | ${MV} xxx.o $@ 30 | rm -f $(OBJDIR)/$*.o 31 | ln $*.o $(OBJDIR)/$*.o 32 | 33 | 34 | .c.o: io_space.h 35 | $(CC) $(CFLAGS) -c $*.c 36 | -$(LD) -x -r $@ -o xxx.o 37 | rm -f $@ 38 | ${MV} xxx.o $@ 39 | rm -f $(OBJDIR)/$*.o 40 | ln $*.o $(OBJDIR)/$*.o 41 | 42 | clean: 43 | rm -f a.out $(OBJS) $(EOBJS) $(KDBOBJS) 44 | 45 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/nulldev.h: -------------------------------------------------------------------------------- 1 | /* Interface to the PostScript nulldev implementation 2 | 3 | Copyright (c) 1983, '84, '85, '86, '87, '88 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | */ 17 | 18 | #ifndef NULLDEV_H 19 | #define NULLDEV_H 20 | 21 | #include DEVICE 22 | 23 | extern DevProcs *nullProcs; 24 | 25 | extern PDevice MakeNullDevice (/* PDevice parent; */); 26 | extern procedure IniNullDevImpl(); 27 | 28 | #endif NULLDEV_H 29 | -------------------------------------------------------------------------------- /NDTools-4/gdb/wait.h: -------------------------------------------------------------------------------- 1 | 2 | /* Define how to access the structure that the wait system call stores. 3 | On many systems, there is a structure defined for this. 4 | But on vanilla-ish USG systems there is not. */ 5 | 6 | #ifndef HAVE_WAIT_STRUCT 7 | #define WAITTYPE int 8 | #define WIFSTOPPED(w) (((w)&0377) == 0177) 9 | #define WIFSIGNALED(w) (((w)&0377) != 0177 && ((w)&~0377) == 0) 10 | #define WIFEXITED(w) (((w)&0377) == 0) 11 | #define WRETCODE(w) ((w) >> 8) 12 | #define WSTOPSIG(w) ((w) >> 8) 13 | #define WCOREDUMP(w) (((w)&0200) != 0) 14 | #define WTERMSIG(w) ((w) & 0177) 15 | #define WSETEXIT(w, status) ((w) = (status)) 16 | #define WSETSTOP(w,sig) ((w) = (0177 | ((sig) << 8))) 17 | #else 18 | #include 19 | #define WAITTYPE union wait 20 | #define WRETCODE(w) (w).w_retcode 21 | #define WSTOPSIG(w) (w).w_stopsig 22 | #define WCOREDUMP(w) (w).w_coredump 23 | #define WTERMSIG(w) (w).w_termsig 24 | #define WSETEXIT(w, status) ((w).w_status = (status)) 25 | #define WSETSTOP(w,sig) \ 26 | ((w).w_stopsig = (sig), (w).w_coredump = 0, (w).w_termsig = 0177) 27 | #endif 28 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/devpattern/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Devpattern Package Makefile 3 | # 4 | 5 | HFILES = imagepriv.h patternpriv.h 6 | 7 | CFILES = colorpattern.c constclrpat.c constgraypat.c graypattern.c\ 8 | grypat4of4.c im110.c ims11d11.c ims11d12.c ims11d1x.c\ 9 | ims12d12notfr.c ims1xd11.c ims1xd12.c imsupport.c imsxxd11.c\ 10 | imsxxd12.c monopattern.c patternimpl.c 11 | 12 | # NOTE: The *main.c files here are included by some CFILES above 13 | OTHER_SOURCES = im106.c im116.c im111.c im112.c im113.c im114.c ims11d14.c\ 14 | ims11d18.c ims1xd14.c ims1xd18.c ims1xd1x.c imsxxd1x.c\ 15 | imsxxd14.c imsxxd18.c imsxxd3x.c ims11d1xmain.c\ 16 | ims1xd1xmain.c imsxxd1xmain.c maskpattern.c directory 17 | 18 | include ../config-cpu 19 | include ../Makefile.common 20 | 21 | NAME = devpattern-$(CPUTYPE).a 22 | 23 | all: $(NAME) 24 | 25 | install: all 26 | 27 | installh: 28 | 29 | clean: 30 | -rm -rf obj-$(CPUTYPE) make.log depend $(NAME) 31 | 32 | $(NAME): $(OFILEDIR) $(OFILES) 33 | ar r $(NAME) $(OFILES) 34 | $(RANLIB) $(NAME) 35 | 36 | -include depend 37 | 38 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/pas/pas.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Internal data structures used by the pcode assembler. 3 | */ 4 | #include 5 | struct vect 6 | { 7 | int32 data; 8 | int32 addr; 9 | }; 10 | 11 | /* Structure of a vector leaf node, crafted to match a generic leaf node */ 12 | struct vn 13 | { 14 | int type; 15 | int count; 16 | struct vect *vp; 17 | }; 18 | 19 | /* Structure of a generic leaf node */ 20 | struct ln 21 | { 22 | int type; 23 | unsigned value; 24 | char *string; 25 | }; 26 | 27 | /* structure of the generic tree node. */ 28 | struct tn 29 | { 30 | int opcode; 31 | struct ln *l1; 32 | struct ln *l2; 33 | struct ln *l3; 34 | int pc; 35 | int line_no; 36 | char *file_name; 37 | struct tn *next; 38 | struct tn *prev; 39 | }; 40 | 41 | /* Structure of the internal symbol table used for label lookup. */ 42 | struct sym 43 | { 44 | char *name; 45 | int flavor; 46 | int value; 47 | struct sym *next; 48 | }; 49 | #define SYM_PC 0 /* Only supported flavor right now */ 50 | 51 | /* Defs for output processing flags */ 52 | #define OUT_LIST 0x0001 53 | 54 | -------------------------------------------------------------------------------- /NDTools-4/as/m-generic.h: -------------------------------------------------------------------------------- 1 | /* m-generic.h Generic machine-specific header file. 2 | (if that makes sense. . .) */ 3 | 4 | /* Copyright (C) 1987 Free Software Foundation, Inc. 5 | 6 | This file is part of Gas, the GNU Assembler. 7 | 8 | The GNU assembler is distributed in the hope that it will be 9 | useful, but WITHOUT ANY WARRANTY. No author or distributor 10 | accepts responsibility to anyone for the consequences of using it 11 | or for whether it serves any particular purpose or works at all, 12 | unless he says so in writing. Refer to the GNU Assembler General 13 | Public License for full details. 14 | 15 | Everyone is granted permission to copy, modify and redistribute 16 | the GNU Assembler, but only under the conditions described in the 17 | GNU Assembler General Public License. A copy of this license is 18 | supposed to have been given to you along with the GNU Assembler 19 | so you can know your rights and responsibilities. It should be 20 | in a file named COPYING. Among other things, the copyright 21 | notice and this notice must be preserved on all copies. */ 22 | 23 | #define M_GENERIC 1 24 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-hp9k3bsd.h: -------------------------------------------------------------------------------- 1 | #include "tm-m68k.h" 2 | 3 | /* See tm-m68k.h. 7 means 68020 with 68881. */ 4 | 5 | #define TARGET_DEFAULT 7 6 | 7 | /* Define __HAVE_FPU__ in preprocessor, unless -msoft-float is specified. 8 | This will control the use of inline 68881 insns in certain macros. */ 9 | 10 | #define CPP_SPEC "%{!msoft-float:-D__HAVE_FPU__}" 11 | 12 | /* Names to predefine in the preprocessor for this target machine. */ 13 | 14 | #define CPP_PREDEFINES "-Dmc68000 -Dmc68020 -Dhp300 -Dhp9000 -Dunix" 15 | 16 | /* Every structure or union's size must be a multiple of 2 bytes. */ 17 | 18 | #define STRUCTURE_SIZE_BOUNDARY 16 19 | 20 | /* This is BSD, so it wants DBX format. */ 21 | 22 | #define DBX_DEBUGGING_INFO 23 | 24 | /* Do not break .stabs pseudos into continuations. */ 25 | 26 | #define DBX_CONTIN_LENGTH 0 27 | 28 | /* This is the char to use for continuation (in case we need to turn 29 | continuation back on). */ 30 | 31 | #define DBX_CONTIN_CHAR '?' 32 | 33 | /* Don't use the `xsfoo;' construct in DBX output; this system 34 | doesn't support it. */ 35 | 36 | #define DBX_NO_XREFS 37 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-hp9k3bsd.h: -------------------------------------------------------------------------------- 1 | #include "tm-m68k.h" 2 | 3 | /* See tm-m68k.h. 7 means 68020 with 68881. */ 4 | 5 | #define TARGET_DEFAULT 7 6 | 7 | /* Define __HAVE_FPU__ in preprocessor, unless -msoft-float is specified. 8 | This will control the use of inline 68881 insns in certain macros. */ 9 | 10 | #define CPP_SPEC "%{!msoft-float:-D__HAVE_FPU__}" 11 | 12 | /* Names to predefine in the preprocessor for this target machine. */ 13 | 14 | #define CPP_PREDEFINES "-Dmc68000 -Dmc68020 -Dhp300 -Dhp9000 -Dunix" 15 | 16 | /* Every structure or union's size must be a multiple of 2 bytes. */ 17 | 18 | #define STRUCTURE_SIZE_BOUNDARY 16 19 | 20 | /* This is BSD, so it wants DBX format. */ 21 | 22 | #define DBX_DEBUGGING_INFO 23 | 24 | /* Do not break .stabs pseudos into continuations. */ 25 | 26 | #define DBX_CONTIN_LENGTH 0 27 | 28 | /* This is the char to use for continuation (in case we need to turn 29 | continuation back on). */ 30 | 31 | #define DBX_CONTIN_CHAR '?' 32 | 33 | /* Don't use the `xsfoo;' construct in DBX output; this system 34 | doesn't support it. */ 35 | 36 | #define DBX_NO_XREFS 37 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/client/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Client Makefile 3 | # 4 | 5 | CPUTYPE = 040 6 | 7 | LIBS = -lND -lkernload 8 | 9 | HFILES = nd.h remote.h 10 | 11 | CFILES = nd.c remote.c 12 | 13 | OTHER_OFILES = psUser.o argstream.o markpack.o 14 | 15 | include ../Makefile.common 16 | 17 | NAME = reloc 18 | 19 | INSTALLDIR = $(DSTROOT)/usr/lib/NextStep/Displays/NextDimension 20 | 21 | all: $(NAME) 22 | 23 | o40: 24 | $(MAKE) $(MAKEOPTS) "CFLAGS=$(CFLAGS) -O -DSERVER_040" all 25 | 26 | install: all 27 | mkdirs $(INSTALLDIR) 28 | $(INSTALL) $(NAME) $(INSTALLDIR) 29 | 30 | installh: 31 | 32 | install_local: 33 | 34 | clean: 35 | rm -rf $(NAME) obj-$(CPUTYPE) depend make.log 36 | 37 | psUser.o: $(COMMON)/psUser.c 38 | $(CC) $(CFLAGS) -c $(COMMON)/psUser.c -o $(OFILEDIR)/$*.o 39 | 40 | argstream.o: $(COMMON)/argstream.c 41 | $(CC) $(CFLAGS) -c $(COMMON)/argstream.c -o $(OFILEDIR)/$*.o 42 | 43 | markpack.o: $(COMMON)/markpack.c 44 | $(CC) $(CFLAGS) -c $(COMMON)/markpack.c -o $(OFILEDIR)/$*.o 45 | 46 | $(NAME): $(OFILEDIR) $(OFILES) 47 | ld -r -i_Start:_NDStart $(OFILES) $(LIBDIR) $(LIBS) -o $(NAME) 48 | 49 | -include depend 50 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/Makefile.common: -------------------------------------------------------------------------------- 1 | # 2 | # Common makefile for PSDriver subproject of NextDimension 3 | # Change the CPUTYPE variable to change processor type. 4 | # 5 | 6 | ROOT=.. 7 | 8 | COMMON = ../common 9 | 10 | OFILEDIR = obj-$(CPUTYPE) 11 | 12 | VPATH = $(OFILEDIR) 13 | 14 | LIBDIR = -L../../libND 15 | 16 | INCLUDES = -I../.. -I../include -I../common -I/usr/local/include/ps \ 17 | -I../bitmap -I../device 18 | 19 | OFILES = $(CFILES:.c=.o) $(SFILES:.s=.o) $(OTHER_OFILES) 20 | 21 | SOURCEFILES = Makefile $(CFILES) $(SFILES) $(HFILES) $(OTHER_SOURCES) 22 | 23 | INSTALL = install -c 24 | 25 | MAKEOPTS = $(MFLAGS) "DSTROOT=$(DSTROOT)" 26 | 27 | SWITCHES = -DISP=isp_mc68020 -DOS=os_mach -DPACKAGE_SPECS=\"package_specs.h\"\ 28 | -DCURSOR_i860 29 | 30 | CFLAGS = -g -O $(SWITCHES) $(OTHER_SWITCHES) $(INCLUDES) \ 31 | $(OTHER_INCLUDES) 32 | 33 | .c.o: 34 | $(CC) $(CFLAGS) -c $*.c -o $(OFILEDIR)/$*.o 35 | 36 | .s.o: 37 | $(AS) $(AFLAGS) $*.s -o $(OFILEDIR)/$*.o 38 | 39 | default: all 40 | 41 | EXIT_RULE = (touch M.d; md -f -o depend -d `ls *.d`; rm -f *.d) 42 | 43 | .EXIT: 44 | $(EXIT_RULE) 45 | 46 | $(OFILEDIR): 47 | mkdirs $@ 48 | 49 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/client/nd.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | 3 | nd.h 4 | Header file for NextDimension Device Driver 5 | 6 | CONFIDENTIAL 7 | Copyright 1990 NeXT Computer, Inc. as an unpublished work. 8 | All Rights Reserved. 9 | 10 | Created 27Feb89 Ted Cohn 11 | 12 | Modifications: 13 | 14 | ******************************************************************************/ 15 | 16 | #define ND_ROMID 1024 /* Unique ROM id for product */ 17 | #define ND_WIDTH 1120 /* Pixels wide (visible pixels) */ 18 | #define ND_HEIGHT 832 /* Pixels high (visible scanlines)*/ 19 | #define ND_ROWBYTES 4608 /* Row bytes to start of next line */ 20 | 21 | /* Private state information cached in the NXSDevice priv field. */ 22 | 23 | typedef struct _ND_PrivInfo_ { 24 | vm_address_t fb_addr; /* Virtual addr of frame buffer base */ 25 | vm_size_t fb_size; /* Size of mapped frame buffer in bytes */ 26 | port_t server_port; /* Port to server code. */ 27 | port_t kernel_port; /* Port to i860 server code. */ 28 | port_t reply_port; /* Port i860 replies to us on. */ 29 | } ND_PrivInfo; 30 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Device Package Makefile 3 | # 4 | 5 | include ../config-cpu 6 | 7 | HFILES = devcommon.h devmark.h devprim.h framedev.h framemaskdev.h \ 8 | genericdev.h hostdict.h maskcache.h nextprebuilt.h nulldev.h \ 9 | prebuiltformat.h 10 | 11 | CFILES = blackmask.c blackrun.c blacktrap.c clippedmask.c constantmask.c\ 12 | constantrun.c constanttrap.c devbounds.c devcommon.c devinit.c\ 13 | devprim.c framedev.c framemaskdev.c genericdev.c graymask.c grayrun.c\ 14 | graytrap.c halftone.c mark.c markimage.c nulldev.c qintersect.c\ 15 | whitemask.c whiterun.c whitetrap.c 16 | 17 | OTHER_SOURCES = hostdict.c maskcache.c nextprebuilt.c tfrfcn.c trapprecision.c 18 | 19 | SFILES = trap32.860.s run32.860.s mask32.860.s 20 | 21 | include ../Makefile.common 22 | 23 | NAME = device-$(CPUTYPE).a 24 | 25 | OTHER_SWITCHES = -DSAMPLEDEVICE=1 -DMASKCOMPRESSION=0 -DNEXTDIMENSION 26 | 27 | all: $(NAME) 28 | 29 | install: all 30 | 31 | installh: 32 | 33 | clean: 34 | -rm -rf obj-$(CPUTYPE) make.log depend $(NAME) 35 | 36 | $(NAME): $(OFILEDIR) $(OFILES) 37 | ar r $(NAME) $(OFILES) 38 | $(RANLIB) $(NAME) 39 | 40 | -include depend 41 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/.gdbinit: -------------------------------------------------------------------------------- 1 | define pr 2 | set debug_rtx ($) 3 | end 4 | 5 | document pr 6 | Print the full structure of the rtx that is $. 7 | Works only when an inferior is executing. 8 | end 9 | 10 | define pt 11 | set debug_dump_tree ($) 12 | end 13 | 14 | document pt 15 | Print the full structure of the tree that is $. 16 | Works only when an inferior is executing. 17 | end 18 | 19 | define ptc 20 | output (enum tree_code) $.common.code 21 | echo \n 22 | end 23 | 24 | document ptc 25 | Print the tree-code of the tree node that is $. 26 | end 27 | 28 | define pdn 29 | output $.decl.name->identifier.pointer 30 | echo \n 31 | end 32 | 33 | document pdn 34 | Print the name of the decl-node that is $. 35 | end 36 | 37 | define prc 38 | output (enum rtx_code) $.code 39 | echo \ ( 40 | output $.mode 41 | echo )\n 42 | end 43 | 44 | document prc 45 | Print the rtx-code and machine mode of the rtx that is $. 46 | end 47 | 48 | define pi 49 | print $.fld[0].rtx@7 50 | end 51 | 52 | document pi 53 | Print the fields of an instruction that is $. 54 | end 55 | 56 | # Don't let abort actually run, as it will make 57 | # stdio stop working and therefore the `pr' command below as well. 58 | b abort 59 | -------------------------------------------------------------------------------- /NDTools-4/as/m-sun3.h: -------------------------------------------------------------------------------- 1 | /* m-sun3.h This header file contains the #defines specific 2 | to SUN computer SUN 3 series computers. (The only kind 3 | we have around here, unfortunatly.) */ 4 | /* Copyright (C) 1987 Free Software Foundation, Inc. 5 | 6 | This file is part of Gas, the GNU Assembler. 7 | 8 | The GNU assembler is distributed in the hope that it will be 9 | useful, but WITHOUT ANY WARRANTY. No author or distributor 10 | accepts responsibility to anyone for the consequences of using it 11 | or for whether it serves any particular purpose or works at all, 12 | unless he says so in writing. Refer to the GNU Assembler General 13 | Public License for full details. 14 | 15 | Everyone is granted permission to copy, modify and redistribute 16 | the GNU Assembler, but only under the conditions described in the 17 | GNU Assembler General Public License. A copy of this license is 18 | supposed to have been given to you along with the GNU Assembler 19 | so you can know your rights and responsibilities. It should be 20 | in a file named COPYING. Among other things, the copyright 21 | notice and this notice must be preserved on all copies. */ 22 | 23 | 24 | 25 | 26 | 27 | #define M_SUN 1 28 | -------------------------------------------------------------------------------- /NDTools-4/as/m68k.h: -------------------------------------------------------------------------------- 1 | /* m-sun3.h This header file contains the #defines specific 2 | to SUN computer SUN 3 series computers. (The only kind 3 | we have around here, unfortunatly.) */ 4 | /* Copyright (C) 1987 Free Software Foundation, Inc. 5 | 6 | This file is part of Gas, the GNU Assembler. 7 | 8 | The GNU assembler is distributed in the hope that it will be 9 | useful, but WITHOUT ANY WARRANTY. No author or distributor 10 | accepts responsibility to anyone for the consequences of using it 11 | or for whether it serves any particular purpose or works at all, 12 | unless he says so in writing. Refer to the GNU Assembler General 13 | Public License for full details. 14 | 15 | Everyone is granted permission to copy, modify and redistribute 16 | the GNU Assembler, but only under the conditions described in the 17 | GNU Assembler General Public License. A copy of this license is 18 | supposed to have been given to you along with the GNU Assembler 19 | so you can know your rights and responsibilities. It should be 20 | in a file named COPYING. Among other things, the copyright 21 | notice and this notice must be preserved on all copies. */ 22 | 23 | 24 | 25 | 26 | 27 | #define M_NeXT 1 28 | -------------------------------------------------------------------------------- /NDTools-4/as/m-hpux.h: -------------------------------------------------------------------------------- 1 | /* m-hpux.h This header file contains the #defines specific 2 | to HPUX changes sent me by cph@zurich.ai.mit.edu */ 3 | 4 | /* Copyright (C) 1988 Free Software Foundation, Inc. 5 | 6 | This file is part of Gas, the GNU Assembler. 7 | 8 | The GNU assembler is distributed in the hope that it will be 9 | useful, but WITHOUT ANY WARRANTY. No author or distributor 10 | accepts responsibility to anyone for the consequences of using it 11 | or for whether it serves any particular purpose or works at all, 12 | unless he says so in writing. Refer to the GNU Assembler General 13 | Public License for full details. 14 | 15 | Everyone is granted permission to copy, modify and redistribute 16 | the GNU Assembler, but only under the conditions described in the 17 | GNU Assembler General Public License. A copy of this license is 18 | supposed to have been given to you along with the GNU Assembler 19 | so you can know your rights and responsibilities. It should be 20 | in a file named COPYING. Among other things, the copyright 21 | notice and this notice must be preserved on all copies. */ 22 | 23 | setbuffer(stream,buf,size) 24 | FILE *stream; 25 | char *buf; 26 | { 27 | setvbuf(stream, buf, _IOFBF, size); 28 | } 29 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/bitmap/bm12funcline.h: -------------------------------------------------------------------------------- 1 | #define HMASK 0xaaaaaaaa /* 10101010101010101010101010101010 */ 2 | 3 | #define WRITE(wf,s,dp) do { uint d; \ 4 | d = *dp; wf(s,d); *dp = d; \ 5 | } while(0) 6 | 7 | #define WRITEMASK(wf,s,dp,mask) do { uint d,od,msk; \ 8 | od = d = *dp; wf(s,d); \ 9 | msk = mask; \ 10 | *dp = (d&msk) | (od&~msk); \ 11 | } while(0) 12 | 13 | #define DoWF0(s,d) do { uint m; \ 14 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 15 | d &= s; \ 16 | if(m) { d ^= m>>1; d ^= m&d; } \ 17 | } while(0) 18 | 19 | #define DoWF1(s,d) do { uint b,m; \ 20 | b = ~(s^d); \ 21 | d |= s; \ 22 | if(m = (b&(b+b))&(s^(s+s))&HMASK) d = (d^(m>>1))|m; \ 23 | } while(0) 24 | 25 | #define DoWF2(s,d) do { uint m; \ 26 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 27 | d &= ~s; \ 28 | if(m) { d ^= m>>1; d ^= m&d; } \ 29 | } while(0) 30 | 31 | #define DoWF3(s,d) do { uint m; \ 32 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 33 | d |= s; \ 34 | if(m) { d ^= m>>1; d ^= m&~d; } \ 35 | } while(0) 36 | 37 | #define DoWF4(s,d) do { uint m; \ 38 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 39 | d &= s; \ 40 | if(m) { d &= ~(m>>1); m &= d; d ^= m|(m>>1); } \ 41 | } while(0) 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/bitmap/mp12funcline.h: -------------------------------------------------------------------------------- 1 | #define HMASK 0xaaaaaaaa /* 10101010101010101010101010101010 */ 2 | 3 | #define WRITE(wf,s,dp) do { uint d; \ 4 | d = *dp; wf(s,d); *dp = d; \ 5 | } while(0) 6 | 7 | #define WRITEMASK(wf,s,dp,mask) do { uint d,od,msk; \ 8 | od = d = *dp; wf(s,d); \ 9 | msk = mask; \ 10 | *dp = (d&msk) | (od&~msk); \ 11 | } while(0) 12 | 13 | #define DoWF0(s,d) do { uint m; \ 14 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 15 | d &= s; \ 16 | if(m) { d ^= m>>1; d ^= m&d; } \ 17 | } while(0) 18 | 19 | #define DoWF1(s,d) do { uint b,m; \ 20 | b = ~(s^d); \ 21 | d |= s; \ 22 | if(m = (b&(b+b))&(s^(s+s))&HMASK) d = (d^(m>>1))|m; \ 23 | } while(0) 24 | 25 | #define DoWF2(s,d) do { uint m; \ 26 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 27 | d &= ~s; \ 28 | if(m) { d ^= m>>1; d ^= m&d; } \ 29 | } while(0) 30 | 31 | #define DoWF3(s,d) do { uint m; \ 32 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 33 | d |= s; \ 34 | if(m) { d ^= m>>1; d ^= m&~d; } \ 35 | } while(0) 36 | 37 | #define DoWF4(s,d) do { uint m; \ 38 | m = (s^(s+s))&(d^(d+d))&HMASK; \ 39 | d &= s; \ 40 | if(m) { d &= ~(m>>1); m &= d; d ^= m|(m>>1); } \ 41 | } while(0) 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /NDTools-4/gdb/createtags: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Here we check to see if we are compiling in a directory that contains 4 | # symlinks to the source files instead of the actual files. If this is so, 5 | # we setup the TAGS entries to point to the actual source directory. 6 | # 7 | filelist="" 8 | if test -h main.c ; then 9 | prefix=`ls -l main.c | awk '{print $11}' | sed 's;main.c$;;'` 10 | echo path 1 11 | else 12 | prefix="" 13 | fi 14 | for i in $@ ; do 15 | filelist="$prefix$i $filelist" 16 | done 17 | # 18 | # Here we simply make sure that the actual machine dependent files being used 19 | # (if any) are ahead of all of the other machine dependent files in the list. 20 | # This means that M-. will (almost) always give you exactly the routine 21 | # you want. 22 | # 23 | if test -f param.h ; then 24 | if `grep '^#define[ ]*COFF_FORMAT' param.h > /dev/null 2>&1`; then 25 | frmatfile=${prefix}coffread.c 26 | else 27 | frmatfile=${prefix}dbxread.c 28 | fi 29 | hfile=$prefix`ls -l param.h | awk '{print $11}'` 30 | dfile=$prefix`ls -l dep.c | awk '{print $11}'` 31 | ofile=$prefix`ls -l opcode.h | awk '{print $11}'` 32 | pfile=$prefix`ls -l pinsn.c | awk '{print $11}'` 33 | etags $hfile $dfile $ofile $pfile $frmatfile $filelist 34 | else 35 | etags $filelist 36 | fi 37 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/bitmap/bm38.h: -------------------------------------------------------------------------------- 1 | /* bm38.h --- class interface file */ 2 | 3 | #define AMASK 0x000000FF 4 | #define RGBMASK 0xFFFFFF00 5 | #define RBMASK 0xFF00FF00 6 | #define GAMASK 0x00FF00FF 7 | 8 | #define RGB_WHITE 0xFFFFFF00 9 | #define RGB_LTGRAY 0xAAAAAA00 10 | 11 | #define SRCBITMAP 0 12 | #define SRCCONSTANT 1 13 | 14 | typedef struct { 15 | int op; 16 | int width; /* In pixels */ 17 | int height; /* In scanlines */ 18 | int srcType; /* Type of source: SRCCONSTANT or SRCBITMAP */ 19 | int *srcPtr; /* Pointer to source bits */ 20 | int srcInc; /* Source Pixel to pixel address increment */ 21 | int srcRowBytes; /* Optimized source rowBytes */ 22 | int srcValue; /* Virtual source constant */ 23 | int srcOnscreen; /* boolean */ 24 | int *dstPtr; /* Pointer to destination bits */ 25 | int dstInc; /* Dst Pixel to pixel address increment */ 26 | int dstRowBytes; /* Optimized destination RowBytes */ 27 | int dstOnscreen; /* boolean */ 28 | int delta; /* Dissolve delta */ 29 | unsigned int mask; /* General mask */ 30 | unsigned int rmask; /* Mask against read data */ 31 | unsigned int ltor; /* Left to Right? */ 32 | unsigned int ttob; /* Top to Bottom? */ 33 | } RectOp; 34 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/bitmap/bm34.h: -------------------------------------------------------------------------------- 1 | /* bm34.h --- class interface file */ 2 | 3 | #define AMASK 0x000F 4 | #define RGBMASK 0xFFF0 5 | #define RBMASK 0xF0F0 6 | #define GAMASK 0x0F0F 7 | 8 | #define RGB_WHITE 0xFFF0 9 | #define RGB_LTGRAY 0xAAA0 10 | 11 | #define SRCBITMAP 0 12 | #define SRCCONSTANT 1 13 | 14 | typedef unsigned short pixel_t; 15 | 16 | typedef struct { 17 | int op; 18 | int width; /* In pixels */ 19 | int height; /* In scanlines */ 20 | int srcType; /* Type of source: SRCCONSTANT or SRCBITMAP */ 21 | pixel_t *srcPtr; /* Pointer to source bits */ 22 | int srcInc; /* Source Pixel to pixel address increment */ 23 | int srcRowBytes; /* Optimized source rowBytes */ 24 | int srcValue; /* Virtual source constant */ 25 | int srcOnscreen; /* boolean */ 26 | pixel_t *dstPtr; /* Pointer to destination bits */ 27 | int dstInc; /* Dst Pixel to pixel address increment */ 28 | int dstRowBytes; /* Optimized destination RowBytes */ 29 | int dstOnscreen; /* boolean */ 30 | int delta; /* Dissolve delta */ 31 | unsigned int mask; /* General mask */ 32 | unsigned int rmask; /* Mask against read data */ 33 | unsigned int ltor; /* Left to Right? */ 34 | unsigned int ttob; /* Top to Bottom? */ 35 | } RectOp; 36 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/tm-compaq.h: -------------------------------------------------------------------------------- 1 | /* Definitions for Compaq as target machine. NOT TESTED! 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | #include "tm-i386.h" 22 | 23 | /* Use the ATT assembler syntax. */ 24 | 25 | #include "tm-att386.h" 26 | 27 | /* By default, target has a 80387. */ 28 | 29 | #define TARGET_DEFAULT 1 30 | 31 | #define ASM_SPEC "" 32 | 33 | /* Names to predefine in the preprocessor for this target machine. */ 34 | 35 | #define CPP_PREDEFINES "-Di386 -Di80386 -Dunix" 36 | 37 | 38 | #include "tm-i386.h" 39 | #include "tm-att386.h" 40 | -------------------------------------------------------------------------------- /NDTools-4/gdb/cthread_option: -------------------------------------------------------------------------------- 1 | /* 2 | * The following construct will normalize the values 3 | * of the options to 1 for the one in use, 0 for the others. 4 | * If none of the options is defined, it will cause a compile-time error. 5 | */ 6 | 7 | #if defined(MTHREAD) 8 | # if defined(COROUTINE) || defined(MTASK) 9 | compile_time_check() { 10 | undefined(UNIQUE_IMPLEMENTATION_OPTION); 11 | } 12 | # else 13 | # undef MTHREAD 14 | # undef COROUTINE 15 | # undef MTASK 16 | # define MTHREAD 1 17 | # define COROUTINE 0 18 | # define MTASK 0 19 | # endif 20 | #else 21 | #if defined(COROUTINE) 22 | # if defined(MTASK) 23 | compile_time_check() { 24 | undefined(UNIQUE_IMPLEMENTATION_OPTION); 25 | } 26 | # else 27 | # undef MTHREAD 28 | # undef COROUTINE 29 | # undef MTASK 30 | # define MTHREAD 0 31 | # define COROUTINE 1 32 | # define MTASK 0 33 | # endif 34 | #else 35 | #if defined(MTASK) 36 | # undef MTHREAD 37 | # undef COROUTINE 38 | # undef MTASK 39 | # define MTHREAD 0 40 | # define COROUTINE 0 41 | # define MTASK 1 42 | #else 43 | compile_time_check() { 44 | undefined(IMPLEMENTATION_OPTION); 45 | } 46 | #endif 47 | #endif 48 | #endif 49 | 50 | /* 51 | * The following options should be defined 52 | * as 1 to enable, 0 to disable. 53 | */ 54 | #define IPC_WAIT 1 55 | #define SCHED_HINT 0 56 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/server/copy38.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | copy38.c 3 | 4 | Copyright (c) 1988 NeXT Incorporated. 5 | All rights reserved. 6 | 7 | *****************************************************************************/ 8 | 9 | 10 | #define uint unsigned int 11 | #define uchar unsigned char 12 | 13 | /* srcbase is byte-aligned, dstbase is long-aligned 14 | */ 15 | 16 | Copy38(int width, int height, uchar *srcbase, uint *dstbase, 17 | int sbw, int dbw, int alpha) 18 | { 19 | uchar *sp; 20 | uint *dp; 21 | int w; 22 | 23 | if (alpha) 24 | do { 25 | sp = srcbase; 26 | dp = dstbase; 27 | w = width; 28 | do { 29 | *dp++ = ((*sp)<<24) | (*(sp+1)<<16) | 30 | (*(sp+2)<<8) | (*(sp+3)); 31 | sp += 4; 32 | } while (--w != 0); 33 | srcbase += sbw; 34 | dstbase = (uint *)((uchar *)dstbase + dbw); 35 | } while (--height != 0); 36 | else 37 | do { 38 | sp = srcbase; 39 | dp = dstbase; 40 | w = width; 41 | do { 42 | *dp++ = ((*sp)<<24) | (*(sp+1)<<16) | 43 | (*(sp+2)<<8) | 0xFF; 44 | sp += 3; 45 | } while (--w != 0); 46 | srcbase += sbw; 47 | dstbase = (uint *)((uchar *)dstbase + dbw); 48 | } while (--height != 0); 49 | } 50 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/tm-compaq.h: -------------------------------------------------------------------------------- 1 | /* Definitions for Compaq as target machine. NOT TESTED! 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | #include "tm-i386.h" 22 | 23 | /* Use the ATT assembler syntax. */ 24 | 25 | #include "tm-att386.h" 26 | 27 | /* By default, target has a 80387. */ 28 | 29 | #define TARGET_DEFAULT 1 30 | 31 | #define ASM_SPEC "" 32 | 33 | /* Names to predefine in the preprocessor for this target machine. */ 34 | 35 | #define CPP_PREDEFINES "-Di386 -Di80386 -Dunix" 36 | 37 | 38 | #include "tm-i386.h" 39 | #include "tm-att386.h" 40 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/c-parse.h: -------------------------------------------------------------------------------- 1 | /* Define constants for communication with parse.y. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | 22 | enum rid 23 | { 24 | RID_UNUSED, 25 | RID_INT, 26 | RID_CHAR, 27 | RID_FLOAT, 28 | RID_DOUBLE, 29 | RID_VOID, 30 | RID_UNUSED1, 31 | 32 | RID_UNSIGNED, 33 | RID_SHORT, 34 | RID_LONG, 35 | RID_AUTO, 36 | RID_STATIC, 37 | RID_EXTERN, 38 | RID_REGISTER, 39 | RID_TYPEDEF, 40 | RID_SIGNED, 41 | RID_CONST, 42 | RID_VOLATILE, 43 | RID_INLINE, 44 | RID_NOALIAS, 45 | 46 | RID_MAX, 47 | }; 48 | 49 | #define RID_FIRST_MODIFIER RID_UNSIGNED 50 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/limits.h: -------------------------------------------------------------------------------- 1 | /* Number of bits in a `char'. */ 2 | #define CHAR_BIT 8 3 | 4 | /* No multibyte characters supported yet. */ 5 | #define MB_LEN_MAX 1 6 | 7 | /* Minimum and maximum values a `signed char' can hold. */ 8 | #define SCHAR_MIN -128 9 | #define SCHAR_MAX 127 10 | 11 | /* Maximum value an `unsigned char' can hold. (Minimum is 0). */ 12 | #define UCHAR_MAX 255U 13 | 14 | /* Minimum and maximum values a `char' can hold. */ 15 | #ifdef __CHAR_UNSIGNED__ 16 | #define CHAR_MIN 0 17 | #define CHAR_MAX 255U 18 | #else 19 | #define CHAR_MIN -128 20 | #define CHAR_MAX 127 21 | #endif 22 | 23 | /* Minimum and maximum values a `signed short int' can hold. */ 24 | #define SHRT_MIN -32768 25 | #define SHRT_MAX 32767 26 | 27 | /* Maximum value an `unsigned short int' can hold. (Minimum is 0). */ 28 | #define USHRT_MAX 65535U 29 | 30 | /* Minimum and maximum values a `signed int' can hold. */ 31 | #define INT_MIN -2147483648 32 | #define INT_MAX 2147483647 33 | 34 | /* Maximum value an `unsigned int' can hold. (Minimum is 0). */ 35 | #define UINT_MAX 4294967295U 36 | 37 | /* Minimum and maximum values a `signed long int' can hold. 38 | (Same as `int'). */ 39 | #define LONG_MIN (-LONG_MAX-1) 40 | #define LONG_MAX 2147483647 41 | 42 | /* Maximum value an `unsigned long int' can hold. (Minimum is 0). */ 43 | #define ULONG_MAX 4294967295U 44 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/Makefile: -------------------------------------------------------------------------------- 1 | SUBDIRS=sys machine vm kern 2 | SRCS= cpus.h setjmp.h cs_kdb.h mach_load.h stat_time.h simple_clock.h 3 | COPTS= 4 | LOCALDSTDIR=$(DSTROOT)/Net/k9/dps/nd_proj/i860/include 5 | DSTDIR=$(DSTROOT)/usr/local/i860/include 6 | LINKPATH=../../include/ND 7 | INSTALL=install -c 8 | 9 | default all clean installh: ND i860 10 | 11 | ND: 12 | -ln -s ../ND ND 13 | 14 | i860: 15 | -ln -s machine i860 16 | 17 | $(DSTDIR)/ND: 18 | -mkdirs $(DSTDIR) 19 | -( cd $(DSTDIR) ; ln -s $(LINKPATH) ND ) 20 | 21 | $(LOCALDSTDIR)/ND: 22 | -mkdirs $(LOCALDSTDIR) 23 | -( cd $(LOCALDSTDIR) ; ln -s $(LINKPATH) ND ) 24 | 25 | $(DSTDIR)/i860: 26 | -mkdirs $(DSTDIR)/machine 27 | -( cd $(DSTDIR) ; ln -s machine ND ) 28 | 29 | $(LOCALDSTDIR)/i860: 30 | -mkdirs $(LOCALDSTDIR)/machine 31 | -( cd $(LOCALDSTDIR) ; ln -s machine ND ) 32 | 33 | install: $(DSTDIR)/ND $(DSTDIR)/i860 34 | for i in $(SUBDIRS); \ 35 | do \ 36 | ( cd $$i ; make install "DSTDIR=$(DSTDIR)" ); \ 37 | done 38 | for i in $(SRCS); \ 39 | do \ 40 | echo $$i; \ 41 | $(INSTALL) $$i $(DSTDIR); \ 42 | done 43 | 44 | install_local: $(LOCALDSTDIR)/ND $(LOCALDSTDIR)/i860 45 | for i in $(SUBDIRS); \ 46 | do \ 47 | ( cd $$i ; make install "DSTDIR=$(LOCALDSTDIR)" ); \ 48 | done 49 | for i in $(SRCS); \ 50 | do \ 51 | echo $$i; \ 52 | $(INSTALL) $$i $(LOCALDSTDIR); \ 53 | done 54 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/pas/pass1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Pass 1 for the assembler. 3 | */ 4 | #include 5 | #include 6 | #include "pas.h" 7 | #include "gram.tab.h" 8 | 9 | /* 10 | * pass1(): 11 | * 12 | * Really the second pass, since the lexer and parser conducted the 13 | * first pass. Anyway, buzz through the forest and assign PCs to 14 | * each real instruction. Collect the labels into the 'symbol table'. 15 | */ 16 | pass1() 17 | { 18 | extern struct tn *Forest; 19 | struct tn *fp = Forest; 20 | int pc = 0; 21 | char buffer[256]; 22 | 23 | if ( fp == (struct tn *) NULL ) 24 | return; 25 | 26 | do 27 | { 28 | switch( fp->opcode ) 29 | { 30 | case LABEL_T: 31 | fp->pc = pc; 32 | if ( install( fp->l1->string, pc, SYM_PC ) ) 33 | { 34 | sprintf( buffer, "label \"%s\" redefined", 35 | fp->l1->string ); 36 | misc_warning(buffer, 37 | fp->file_name,fp->line_no); 38 | } 39 | break; 40 | 41 | case WORD: 42 | fp->pc = pc++; 43 | break; 44 | 45 | case STOREV: 46 | fp->pc = pc++; 47 | pc += (((struct vn *)fp->l1)->count) * 2; 48 | break; 49 | 50 | default: 51 | fp->pc = pc; 52 | if ( (fp->opcode) & OPCODE_IMMED_BIT ) 53 | pc += 2; 54 | else 55 | ++pc; 56 | break; 57 | } 58 | fp = fp->next; 59 | } 60 | while( fp != Forest ); 61 | } 62 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-ns32k.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Vax. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/nextprebuilt.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | 3 | nextprebuilt.h 4 | Integrated + nextified prebuilt code 5 | 6 | CONFIDENTIAL 7 | Copyright (c) 1988 NeXT, Inc. as an unpublished work. 8 | All Rights Reserved. 9 | 10 | Created 24May90 by Peter + Terry from *prebuil*.h 11 | 12 | Modified: 13 | 14 | ******************************************************************************/ 15 | 16 | #ifndef NEXTPREBUILT_H 17 | #define NEXTPREBUILT_H 18 | 19 | #import "hostdict.h" 20 | #import "prebuiltformat.h" 21 | 22 | #define uchar unsigned char 23 | #define ushort unsigned short 24 | 25 | typedef struct { 26 | int base; 27 | int length; 28 | ushort *startpos; 29 | uchar *code; 30 | } PrebuiltEncoding; 31 | 32 | typedef struct { 33 | PrebuiltFile *file; 34 | PrebuiltWidth *widths; 35 | PrebuiltMatrix *matrices; 36 | PrebuiltVertWidths *vertWidths; 37 | PrebuiltEncoding *encoding; 38 | Stm stm; 39 | } NextPrebuiltFont; 40 | 41 | /* Use prebuilt if the desired size is strictly greater than the smallest 42 | * available prebuilt size, but no smaller than MINIMUMSIZE, strictly less than 43 | * 1.25 times the largest available prebuilt size, but no larger 44 | * than MAXIMUMSIZE 45 | */ 46 | #define MINIMUMSIZE 5.0 47 | #define MAXIMUMSIZE 24.0 48 | 49 | #endif NEXTPREBUILT_H 50 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-ns32k.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Vax. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/devinit.c: -------------------------------------------------------------------------------- 1 | /* Initialize the PostScript device implementation 2 | 3 | Copyright (c) 1983, '84, '85, '86, '87, '88, '89, '90 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | 14May90 Jack args to InitMaskCache maximize bmFree->header.length w/o overflow 17 | 18 | */ 19 | 20 | #include PACKAGE_SPECS 21 | 22 | #include "nulldev.h" 23 | #include "devcommon.h" 24 | #include "genericdev.h" 25 | #include "framedev.h" 26 | #include "framemaskdev.h" 27 | 28 | public DevHalftone *defaultHalftone; 29 | 30 | public procedure NDDeviceInit() 31 | { 32 | InitPatternImpl((integer)8000, (integer)40000, (integer)8000, 33 | (integer)40000); 34 | 35 | IniDevCommon(); 36 | IniGenDevImpl(); 37 | IniFmDevImpl(); 38 | IniMaskDevImpl(); 39 | IniNullDevImpl(); 40 | } /* end of PSDeviceInit */ 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/va-spur.h: -------------------------------------------------------------------------------- 1 | /* varargs.h for SPUR */ 2 | 3 | /* NB. This is NOT the definition needed for the new ANSI proposed 4 | standard */ 5 | 6 | 7 | struct __va_struct { char regs[20]; }; 8 | 9 | #define va_alist __va_regs, __va_stack 10 | 11 | #define va_dcl struct __va_struct __va_regs; int __va_stack; 12 | 13 | typedef struct { 14 | int pnt; 15 | char *regs; 16 | char *stack; 17 | } va_list; 18 | 19 | #define va_start(pvar) \ 20 | ((pvar).pnt = 0, (pvar).regs = __va_regs.regs, \ 21 | (pvar).stack = (char *) &__va_stack) 22 | #define va_end(pvar) 23 | 24 | #define va_arg(pvar,type) \ 25 | ({ type __va_result; \ 26 | if ((pvar).pnt >= 20) { \ 27 | __va_result = *( (type *) ((pvar).stack + (pvar).pnt - 20)); \ 28 | (pvar).pnt += (sizeof(type) + 7) & ~7; \ 29 | } \ 30 | else if ((pvar).pnt + sizeof(type) > 20) { \ 31 | __va_result = * (type *) (pvar).stack; \ 32 | (pvar).pnt = 20 + ( (sizeof(type) + 7) & ~7); \ 33 | } \ 34 | else if (sizeof(type) == 8) { \ 35 | union {double d; int i[2];} __u; \ 36 | __u.i[0] = *(int *) ((pvar).regs + (pvar).pnt); \ 37 | __u.i[1] = *(int *) ((pvar).regs + (pvar).pnt + 4); \ 38 | __va_result = * (type *) &__u; \ 39 | (pvar).pnt += 8; \ 40 | } \ 41 | else { \ 42 | __va_result = * (type *) ((pvar).regs + (pvar).pnt); \ 43 | (pvar).pnt += (sizeof(type) + 3) & ~3; \ 44 | } \ 45 | __va_result; }) 46 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-mips.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for MIPS Rx000 family 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-mips.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for MIPS Rx000 family 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | -------------------------------------------------------------------------------- /NDTools-4/as/append.c: -------------------------------------------------------------------------------- 1 | /* append.c - - */ 2 | 3 | /* Copyright (C) 1987 Free Software Foundation, Inc. 4 | 5 | This file is part of Gas, the GNU Assembler. 6 | 7 | The GNU assembler is distributed in the hope that it will be 8 | useful, but WITHOUT ANY WARRANTY. No author or distributor 9 | accepts responsibility to anyone for the consequences of using it 10 | or for whether it serves any particular purpose or works at all, 11 | unless he says so in writing. Refer to the GNU Assembler General 12 | Public License for full details. 13 | 14 | Everyone is granted permission to copy, modify and redistribute 15 | the GNU Assembler, but only under the conditions described in the 16 | GNU Assembler General Public License. A copy of this license is 17 | supposed to have been given to you along with the GNU Assembler 18 | so you can know your rights and responsibilities. It should be 19 | in a file named COPYING. Among other things, the copyright 20 | notice and this notice must be preserved on all copies. */ 21 | 22 | /* JF: This is silly. Why not stuff this in some other file? */ 23 | #ifdef USG 24 | #define bcopy(from,to,n) memcpy(to,from,n) 25 | #endif 26 | 27 | void 28 | append (charPP, fromP, length) 29 | char **charPP; 30 | char *fromP; 31 | unsigned long length; 32 | { 33 | if (length) { /* Don't trust bcopy() of 0 chars. */ 34 | bcopy (fromP, * charPP,(int) length); 35 | *charPP += length; 36 | } 37 | } 38 | 39 | /* end: append.c */ 40 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-m88k.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Motorola 88000 family. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-m88k.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Motorola 88000 family. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-spur.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Berkeley SPUR processor. 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-spur.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Berkeley SPUR processor. 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | -------------------------------------------------------------------------------- /NDTools-4/as/operands: -------------------------------------------------------------------------------- 1 | Kinds of operands: 2 | # Number used by optimizer. It is ignored. 3 | 1 rs1 register, bits 11-15 of insn. 4 | 2 rs2 register, bits 21-25 of insn. 5 | d rd register, bits 16-20 of insn. 6 | e frs1 floating point register, bits 11-15 of insn. 7 | f frs2 floating point register, bits 21-25 of insn. 8 | g frsd floating point register, bits 16-20 of insn. 9 | 10 | i 16 bit byte address low half, default of RELOC_LOW0 11 | I 16 bit High portion of address, RELOC_HIGH. 12 | j 16 bit short address, RELOC_LOW1 13 | k 16 bit word/int address low half, RELOC_LOW2 14 | l 16 bit 8-byte address (double) low half, RELOC_LOW3 15 | m 16 bit 16-byte address (quad) low half, RELOC_LOW4 16 | 17 | n 16 bit byte aligned low half, split fields, RELOC_SPLIT0 18 | o 16 bit short aligned low half, split fields, RELOC_SPLIT1 19 | p 16 bit int/word aligned low half, split fields, RELOC_SPLIT2 20 | 21 | J 16 bit High portion of address requiring adjustment, RELOC_HIGHADJ 22 | K 26 bit branch displacement 23 | L 16 bit pc relative branch, split field format RELOC_SPLIT0 24 | B 5 bit immediate, for bte and btne insn, RS1 field. 25 | C Control Register, one of fir, psr, epsr, dirbase, db, or fsr encoded 26 | in rs2. 27 | S Special ops 28 | 29 | Literals used and matched in operand list: 30 | () Used around indirect register ld and st operations. 31 | , Arg separator. 32 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-i386.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Intel 80386 running Sequent Symmetry 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* Arguments to use with `exit'. */ 32 | #define SUCCESS_EXIT_CODE 0 33 | #define FATAL_EXIT_CODE 33 34 | 35 | /* target machine dependencies. 36 | tm.h is a symbolic link to the actual target specific file. */ 37 | 38 | #include "tm.h" 39 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-i386.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Intel 80386 running Sequent Symmetry 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* Arguments to use with `exit'. */ 32 | #define SUCCESS_EXIT_CODE 0 33 | #define FATAL_EXIT_CODE 33 34 | 35 | /* target machine dependencies. 36 | tm.h is a symbolic link to the actual target specific file. */ 37 | 38 | #include "tm.h" 39 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/ND/vm_pager.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "i860/proc.h" 3 | #include "i860/vm_types.h" 4 | #include "vm/vm_param.h" 5 | #include "vm/vm_kern.h" 6 | #include "ND/NDmsg.h" 7 | #include "ND/NDreg.h" 8 | #include "ND/ND_types.h" 9 | #include 10 | #include 11 | 12 | #define ServicePort (MSG_QUEUES->service_port) 13 | #define ReplyPort (MSG_QUEUES->service_replyport) 14 | 15 | extern kern_return_t pmap_translation_valid( unsigned long, vm_address_t, vm_prot_t ); 16 | extern pt_entry_t *pmap_pte(unsigned long, vm_offset_t); 17 | 18 | /* 19 | * Virtual Memory flush: 20 | * 21 | * Flush all dirty pages in a range of addresses. 22 | */ 23 | kern_return_t 24 | vm_flush( task_t task, 25 | vm_address_t vaddr, 26 | vm_size_t size ) 27 | { 28 | pmap_clean(current_pmap(), trunc_page(vaddr), round_page(vaddr+size)); 29 | 30 | return KERN_SUCCESS; 31 | } 32 | 33 | /* 34 | * Virtual Memory page out: 35 | * 36 | * Flush all dirty pages in a range of addresses. 37 | * Release the physical memory behind the pages, 38 | * marking their state as paged out. 39 | */ 40 | kern_return_t 41 | vm_page_out( task_t task, 42 | vm_address_t vaddr, 43 | vm_size_t size ) 44 | { 45 | unsigned long pmap = current_pmap(); 46 | 47 | pmap_clean(pmap, trunc_page(vaddr), round_page(vaddr+size)); 48 | pmap_release_range(pmap, trunc_page(vaddr), round_page(vaddr+size)); 49 | 50 | return KERN_SUCCESS; 51 | } 52 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/client/remote.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | 3 | remote.h 4 | Header file for remote bitmaps 5 | 6 | CONFIDENTIAL 7 | Copyright 1990 NeXT Computer, Inc. as an unpublished work. 8 | All Rights Reserved. 9 | 10 | 01Aug90 Ted Cohn 11 | 12 | Modifications: 13 | 14 | ******************************************************************************/ 15 | 16 | #import 17 | #import "package_specs.h" 18 | #import "bitmap.h" 19 | #import "mp12.h" 20 | 21 | typedef struct _RemoteBitmap { 22 | Bitmap base; /* super class */ 23 | port_t port; /* server port of device that owns this bitmap */ 24 | int addr; /* address of remote bitmap */ 25 | } RemoteBitmap; 26 | 27 | typedef struct _RemoteBMClass { 28 | BMClass base; 29 | Bitmap *(*newRemote)(int type, int special, port_t port, Bounds *b); 30 | Bitmap *(*remoteFromData)(int type, port_t port, Bounds *b, 31 | unsigned int *bits, unsigned int *abits, int byteSize, int rowBytes); 32 | } RemoteBMClass; 33 | 34 | #define bm_newRemote(type,special,port,bounds)\ 35 | (*_remoteBM.newRemote)(type,special,port,bounds) 36 | 37 | #define bm_remoteFromData(type,port,bounds,bits,abits,size,rowBytes)\ 38 | (*_remoteBM.newRemote)(type,port,bounds,bits,abits,size,rowBytes) 39 | 40 | extern RemoteBMClass _remoteBM; 41 | 42 | #define remoteBM ((BMClass *)&_remoteBM) 43 | 44 | extern int nd_synchronous; 45 | -------------------------------------------------------------------------------- /NextDimension-21/diag/ndslot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * HISTORY 3 | * 27-May-89 Avadis Tevanian, Jr. (avie) at NeXT, Inc. 4 | * Created. 5 | */ 6 | 7 | #ifndef _SLOT_H_ 8 | #define _SLOT_H_ 9 | 10 | #define SLOTSIZE 0x10000000 /* each physical slot is 11 | really two of these */ 12 | #define SSLOTSIZE 0x01000000 13 | #define SSLOTBASE 0xF0000000 14 | 15 | #define SLOTCOUNT 4 16 | 17 | #define SLOTIOCGADDR _IOR('s', 0, int) /* get address of slot space */ 18 | #define SLOTIOCGADDR_CI _IOR('s', 1, int) /* address of slot space, cache off */ 19 | #define SLOTIOCDISABLE _IO('s', 3) /* disable translation */ 20 | #define SLOTIOCSTOFWD _IO('s', 4) /* Enable NBIC store/forward */ 21 | #define SLOTIOCNOSTOFWD _IO('s', 5) /* Disable NBIC store/forward */ 22 | 23 | /* 24 | * The following two ioctls take a packed pair of 8 bit address/mask fields 25 | * to be loaded into TT1, and return the user process address holding the 26 | * mapped address ranges. 27 | */ 28 | #define SLOTIOCMAPGADDR _IOWR('s', 6, int) /* map and get addr */ 29 | #define SLOTIOCMAPGADDR_CI _IOWR('s', 7, int) /* map and get addr, cache off */ 30 | 31 | /* 32 | * Form a packed address/mask value from a pair of 32 bit address/mask values. 33 | */ 34 | #define FORM_MAPGADDR(addr,mask) ((((addr)>>16)&0xFF00)|(((mask)>>24)&0xFF)) 35 | #ifdef KERNEL 36 | #define UNPACK_ADDR(val) ((((val)>>8)&0xFF)<<24) 37 | #define UNPACK_MASK(val) ((val)&0xFF) 38 | #endif /* KERNEL */ 39 | #endif /* _SLOT_H_ */ 40 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/vm/vm_prot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mach Operating System 3 | * Copyright (c) 1987 Carnegie-Mellon University 4 | * All rights reserved. The CMU software License Agreement specifies 5 | * the terms and conditions for use and redistribution. 6 | */ 7 | /* 8 | * File: vm/vm_prot.h 9 | * Author: Avadis Tevanian, Jr., Michael Wayne Young 10 | * 11 | * Copyright (C) 1985, Avadis Tevanian, Jr., Michael Wayne Young 12 | * 13 | * Virtual memory protection definitions. 14 | * 15 | * HISTORY 16 | * 6-Jun-85 Avadis Tevanian (avie) at Carnegie-Mellon University 17 | * Created. 18 | */ 19 | 20 | #ifndef _VM_PROT_ 21 | #define _VM_PROT_ 22 | 23 | /* 24 | * Types defined: 25 | * 26 | * vm_prot_t VM protection values. 27 | */ 28 | 29 | typedef int vm_prot_t; 30 | 31 | /* 32 | * Protection values, defined as bits within the vm_prot_t type 33 | */ 34 | 35 | #define VM_PROT_NONE ((vm_prot_t) 0x00) 36 | 37 | #define VM_PROT_READ ((vm_prot_t) 0x01) /* read permission */ 38 | #define VM_PROT_WRITE ((vm_prot_t) 0x02) /* write permission */ 39 | #define VM_PROT_EXECUTE ((vm_prot_t) 0x04) /* execute permission */ 40 | 41 | /* 42 | * The default protection for newly-created virtual memory 43 | */ 44 | 45 | #define VM_PROT_DEFAULT (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE) 46 | 47 | /* 48 | * The maximum privileges possible, for parameter checking. 49 | */ 50 | 51 | #define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE) 52 | 53 | #endif /* _VM_PROT_ */ 54 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/vm/vm_kern.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mach Operating System 3 | * Copyright (c) 1987 Carnegie-Mellon University 4 | * All rights reserved. The CMU software License Agreement specifies 5 | * the terms and conditions for use and redistribution. 6 | */ 7 | /* 8 | * File: vm/vm_kern.h 9 | * Author: Avadis Tevanian, Jr., Michael Wayne Young 10 | * 11 | * Copyright (C) 1985, Avadis Tevanian, Jr., Michael Wayne Young 12 | * 13 | * Kernel memory management definitions. 14 | * 15 | * HISTORY 16 | * $Log: vm_kern.h,v $ 17 | * Revision 2.3 88/09/25 22:17:22 rpd 18 | * Changes includes to the new style. 19 | * Updated vm_move declaration. 20 | * [88/09/20 16:15:48 rpd] 21 | * 22 | * 17-Aug-87 David Golub (dbg) at Carnegie-Mellon University 23 | * Added kmem_alloc_wait, kmem_free_wakeup, kernel_pageable_map. 24 | * 25 | * 15-May-87 Avadis Tevanian (avie) at Carnegie-Mellon University 26 | * Coalesced includes, flushed MACH_ACC. 27 | * 28 | * 11-Oct-86 Avadis Tevanian (avie) at Carnegie-Mellon University 29 | * Removed kmem_terminate and sh_map. Note: definitions of 30 | * mb_map, et. al. do not belong here. 31 | * 32 | * 14-Oct-85 Michael Wayne Young (mwyoung) at Carnegie-Mellon University 33 | * Created header file. 34 | */ 35 | 36 | #import 37 | #import 38 | #import 39 | 40 | void kmem_init(); 41 | vm_offset_t kmem_alloc(); 42 | void kmem_free(); 43 | 44 | typedef struct map *vm_map_t; 45 | 46 | vm_map_t kernel_map; 47 | -------------------------------------------------------------------------------- /NextDimension-21/include.i860/sys/boolean.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mach Operating System 3 | * Copyright (c) 1987 Carnegie-Mellon University 4 | * All rights reserved. The CMU software License Agreement specifies 5 | * the terms and conditions for use and redistribution. 6 | */ 7 | /* 8 | * File: sys/boolean.h 9 | * 10 | * Boolean data type. 11 | * 12 | * HISTORY 13 | * $Log: boolean.h,v $ 14 | * Revision 2.1 88/11/25 13:05:18 rvb 15 | * 2.1 16 | * 17 | * Revision 2.2 88/08/24 02:23:06 mwyoung 18 | * Adjusted include file references. 19 | * [88/08/17 02:09:46 mwyoung] 20 | * 21 | * 22 | * 18-Nov-87 Avadis Tevanian (avie) at Carnegie-Mellon University 23 | * Header file fixup, purge history. 24 | * 25 | */ 26 | 27 | #ifndef _BOOLEAN_ 28 | #define _BOOLEAN_ 29 | 30 | /* 31 | * Pick up "boolean_t" type definition 32 | */ 33 | 34 | #ifndef ASSEMBLER 35 | #include 36 | #endif /* ASSEMBLER */ 37 | 38 | #endif /* _BOOLEAN_ */ 39 | 40 | /* 41 | * Define TRUE and FALSE, only if they haven't been before, 42 | * and not if they're explicitly refused. Note that we're 43 | * outside the _BOOLEAN_ conditional, to avoid ordering 44 | * problems. 45 | */ 46 | 47 | #if (defined(KERNEL) || defined(EXPORT_BOOLEAN)) && !defined(NOBOOL) 48 | 49 | #ifndef TRUE 50 | #define TRUE ((boolean_t) 1) 51 | #endif /* TRUE */ 52 | 53 | #ifndef FALSE 54 | #define FALSE ((boolean_t) 0) 55 | #endif /* FALSE */ 56 | 57 | #endif /* (defined(KERNEL) || defined(EXPORT_BOOLEAN)) && !defined(NOBOOL) */ 58 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/ND/kern_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | * kern_main: 3 | * 4 | * The main for the ND kernel. This ultimately becomes process 0. 5 | * 6 | * On entry, the processor is running with interupts enabled, in supervisor mode, 7 | * on the kernel interrupt stack allocated in locore.s. The MMU has been 8 | * configured with a 1-1 virtual to physical mapping. 9 | * 10 | * Process 0 is constructed by hand on entry. 11 | * Following this, the message process and pager are spawned. 12 | */ 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include "i860/proc.h" 18 | 19 | extern struct proc proc[]; 20 | extern struct proc *P; /* Global ptr to current process */ 21 | 22 | extern void Messages(); 23 | extern void PageOutDaemon(); 24 | extern void main(); 25 | 26 | kern_main(sp) 27 | vm_offset_t sp; 28 | { 29 | proc[0].p_addr = sp; /* Current top of stack */ 30 | proc[0].p_stat = SRUN; /* Current state is runnable */ 31 | proc[0].p_flag = SLOAD|SSYS; /* VM configured, phys mem wired down. */ 32 | proc[0].p_pri = PSCHED; /* Set scheduler priority */ 33 | proc[0].p_dirbase = get_dirbase(); /* MMU context info for process */ 34 | P = &proc[0]; /* Current process is 0 */ 35 | 36 | 37 | SpawnProc( Messages, 0 ); /* Create a message process */ 38 | SpawnProc( PageOutDaemon, 0 ); /* Create a pageout process */ 39 | 40 | SpawnUserProc( main, 0 ); /* Start the user's main running. */ 41 | 42 | Scheduler(); /* Never returns */ 43 | } 44 | 45 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/devpattern/ims11d11.c: -------------------------------------------------------------------------------- 1 | /* PostScript generic image module 2 | 3 | Copyright (c) 1983, '84, '85, '86, '87, '88, '89 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | Original version: Doug Brotz: Sept. 13, 1983 17 | Edit History: 18 | Doug Brotz: Mon Aug 25 14:41:39 1986 19 | Chuck Geschke: Mon Aug 6 23:25:04 1984 20 | Ed Taft: Tue Jul 3 12:55:59 1984 21 | Ivor Durham: Sun Feb 7 14:02:56 1988 22 | Bill Paxton: Tue Mar 29 09:20:13 1988 23 | Paul Rovner: Monday, November 23, 1987 10:11:58 AM 24 | Jim Sandman: Wed May 31 16:51:53 1989 25 | Joe Pasqua: Tue Feb 28 11:26:06 1989 26 | End Edit History. 27 | */ 28 | 29 | #define SMASK SCANMASK 30 | #define SSHIFT SCANSHIFT 31 | #define SUNIT SCANUNIT 32 | #define LOG2BPP 0 33 | 34 | #define PROCNAME ImS11D11 35 | 36 | #define DECLAREVARS 37 | 38 | #define SETUPPARAMS(args) \ 39 | if (args->bitsPerPixel != 1) RAISE(ecLimitCheck, (char *)NIL); 40 | 41 | 42 | #include "ims11d1xmain.c" 43 | 44 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-i860.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Vax. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | 38 | /* If compiled with GNU C, use the built-in alloca */ 39 | #ifdef __GNUC__ 40 | #define alloca __builtin_alloca 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-vax.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Vax. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | 38 | /* If compiled with GNU C, use the built-in alloca */ 39 | #ifdef __GNUC__ 40 | #define alloca __builtin_alloca 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/devpattern/ims11d18.c: -------------------------------------------------------------------------------- 1 | /* PostScript generic image module 2 | 3 | Copyright (c) 1983, '84, '85, '86, '87, '88 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | Original version: Doug Brotz: Sept. 13, 1983 17 | Edit History: 18 | Doug Brotz: Mon Aug 25 14:41:39 1986 19 | Chuck Geschke: Mon Aug 6 23:25:04 1984 20 | Ed Taft: Tue Jul 3 12:55:59 1984 21 | Ivor Durham: Sun Feb 7 14:02:56 1988 22 | Bill Paxton: Tue Mar 29 09:20:13 1988 23 | Paul Rovner: Monday, November 23, 1987 10:11:58 AM 24 | Jim Sandman: Wed May 31 16:52:34 1989 25 | Joe Pasqua: Tue Feb 28 11:38:03 1989 26 | End Edit History. 27 | */ 28 | 29 | #define SMASK (SCANMASK >> 3) 30 | #define SSHIFT (SCANSHIFT - 3) 31 | #define SUNIT (SCANUNIT >> 3) 32 | #define LOG2BPP 3 33 | 34 | #define PROCNAME ImS11D18 35 | 36 | #define DECLAREVARS 37 | 38 | #define SETUPPARAMS(args) \ 39 | if (args->bitsPerPixel != 8) RAISE(ecLimitCheck, (char *)NIL); 40 | 41 | #include "ims11d1xmain.c" 42 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-i860.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Vax. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | 38 | /* If compiled with GNU C, use the built-in alloca */ 39 | #ifdef __GNUC__ 40 | #define alloca __builtin_alloca 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-vax.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Vax. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | 38 | /* If compiled with GNU C, use the built-in alloca */ 39 | #ifdef __GNUC__ 40 | #define alloca __builtin_alloca 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-convex.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Convex. 2 | Copyright (C) 1989 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | 38 | /* If compiled with GNU C, use the built-in alloca */ 39 | #ifdef __GNUC__ 40 | #define alloca __builtin_alloca 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/devpattern/ims11d12.c: -------------------------------------------------------------------------------- 1 | /* PostScript generic image module 2 | 3 | Copyright (c) 1983, '84, '85, '86, '87, '88, '89 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | Original version: Doug Brotz: Sept. 13, 1983 17 | Edit History: 18 | Doug Brotz: Mon Aug 25 14:41:39 1986 19 | Chuck Geschke: Mon Aug 6 23:25:04 1984 20 | Ed Taft: Tue Jul 3 12:55:59 1984 21 | Ivor Durham: Sun Feb 7 14:02:56 1988 22 | Bill Paxton: Tue Mar 29 09:20:13 1988 23 | Paul Rovner: Monday, November 23, 1987 10:11:58 AM 24 | Jim Sandman: Wed May 31 16:52:57 1989 25 | Joe Pasqua: Tue Feb 28 11:26:38 1989 26 | End Edit History. 27 | */ 28 | 29 | #define SMASK (SCANMASK >> 1) 30 | #define SSHIFT (SCANSHIFT - 1) 31 | #define SUNIT (SCANUNIT >> 1) 32 | #define LOG2BPP 1 33 | 34 | #define PROCNAME ImS11D12 35 | 36 | #define DECLAREVARS 37 | 38 | #define SETUPPARAMS(args) \ 39 | if (args->bitsPerPixel != 2) RAISE(ecLimitCheck, (char *)NIL); 40 | 41 | #include "ims11d1xmain.c" 42 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-convex.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Convex. 2 | Copyright (C) 1989 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* #defines that need visibility everywhere. */ 21 | #define FALSE 0 22 | #define TRUE 1 23 | 24 | /* target machine dependencies. 25 | tm.h is a symbolic link to the actual target specific file. */ 26 | #include "tm.h" 27 | 28 | /* This describes the machine the compiler is hosted on. */ 29 | #define HOST_BITS_PER_CHAR 8 30 | #define HOST_BITS_PER_SHORT 16 31 | #define HOST_BITS_PER_INT 32 32 | #define HOST_BITS_PER_LONG 32 33 | 34 | /* Arguments to use with `exit'. */ 35 | #define SUCCESS_EXIT_CODE 0 36 | #define FATAL_EXIT_CODE 33 37 | 38 | /* If compiled with GNU C, use the built-in alloca */ 39 | #ifdef __GNUC__ 40 | #define alloca __builtin_alloca 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-m68k.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Motorola 68000 family. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | 39 | /* If compiled with GNU C, use the built-in alloca */ 40 | #ifdef __GNUC__ 41 | #define alloca __builtin_alloca 42 | #endif 43 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-m68k.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Motorola 68000 family. 2 | Copyright (C) 1987 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* target machine dependencies. 32 | tm.h is a symbolic link to the actual target specific file. */ 33 | #include "tm.h" 34 | 35 | /* Arguments to use with `exit'. */ 36 | #define SUCCESS_EXIT_CODE 0 37 | #define FATAL_EXIT_CODE 33 38 | 39 | /* If compiled with GNU C, use the built-in alloca */ 40 | #ifdef __GNUC__ 41 | #define alloca __builtin_alloca 42 | #endif 43 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/hostdict.h: -------------------------------------------------------------------------------- 1 | /* 2 | hostdict.h 3 | 4 | Copyright (c) 1988 Adobe Systems Incorporated. 5 | All rights reserved. 6 | 7 | NOTICE: All information contained herein is the property of Adobe Systems 8 | Incorporated. Many of the intellectual and technical concepts contained 9 | herein are proprietary to Adobe, are protected as trade secrets, and are made 10 | available only to Adobe licensees for their internal use. Any reproduction 11 | or dissemination of this software is strictly forbidden unless prior written 12 | permission is obtained from Adobe. 13 | 14 | PostScript is a registered trademark of Adobe Systems Incorporated. 15 | Display PostScript is a trademark of Adobe Systems Incorporated. 16 | 17 | Original version: 18 | Edit History: 19 | Ivor Durham: Wed Sep 28 13:52:55 1988 20 | End Edit History. 21 | */ 22 | 23 | #ifndef HOSTDICT_H 24 | #define HOSTDICT_H 25 | 26 | typedef struct _t_HostDictEntry { 27 | char *key; 28 | char *value; 29 | long time; 30 | struct _t_HostDictEntry *next; 31 | } HostDictEntry; 32 | 33 | typedef struct _t_HostDict { 34 | int length; 35 | int items; 36 | int strings; 37 | int copy; 38 | void (*purge) (); 39 | HostDictEntry *entries[1]; 40 | } HostDict; 41 | 42 | HostDict *newHostDict(/* int, int, int, void (*)() */); 43 | void disposeHostDict(/* HostDict * */); 44 | 45 | void defHostDict(/* HostDict *, char *, char * */); 46 | char *getHostDict(/* HostDict *, char * */); 47 | 48 | void enumerateHostDict(/* HostDict *, void (*)() */); 49 | 50 | #endif HOSTDICT_H 51 | -------------------------------------------------------------------------------- /NextDimension-21/libND/NDGlobals.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NDglobals.h 3 | * 4 | * Global variables in shared memory between the i860 and host processors. 5 | * 6 | * The globals area includes the message queue structures defined in NDmsg.h, 7 | * and extends the structure. 8 | * 9 | * CAUTION: All elements in this structure must be a multiple of 32 bits in 10 | * size, and aligned on 32 bit boundries. This is a hardware imposed 11 | * limitation. 12 | */ 13 | #include "ND/NDmsg.h" 14 | 15 | /* 16 | * Defs for cursor system. 17 | */ 18 | 19 | #define CEQSIZE 32 20 | #define XRECT(r) *((int *)r) 21 | #define YRECT(r) *((int *)r+1) 22 | 23 | /* Damn well better be an int ! */ 24 | enum CEQWhat { CEQMove=1, CEQDisplay, CEQRemove, CEQSet, CEQBright }; 25 | 26 | typedef struct { 27 | int next; /* next queue element number */ 28 | enum CEQWhat what; /* type of event */ 29 | int frame; /* cursor frame (0 is regular, 1..3 is wait) */ 30 | int brightness; /* brightness level 0..63 */ 31 | int crsrX; 32 | int crsrY; 33 | } CEQElement; 34 | 35 | /* nd_cursorData is exported so the server can set the cursor image */ 36 | extern unsigned int nd_cursorData[]; 37 | 38 | typedef struct _NDGlobals_ 39 | { 40 | NDMsgQueues MsgQueues; 41 | int ceqHead; 42 | int ceqTail; 43 | int ceqSize; 44 | CEQElement ceq[CEQSIZE]; 45 | unsigned int cursorData[16]; 46 | unsigned int cursorMask[16]; 47 | } NDGlobals; 48 | 49 | #if defined(i860) 50 | #define ND_GLOBALS ((NDGlobals *)MSG_QUEUES) 51 | #else /* Mach side */ 52 | #define ND_GLOBALS(ND_var) ((NDGlobals *)MSG_QUEUES(ND_var)) 53 | #endif 54 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-pyr.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU compiler for Pyramid 90 Series. 2 | Copyright (C) 1989 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* xm-pyr.h -- based on xm-vax.h */ 21 | 22 | /* #defines that need visibility everywhere. */ 23 | #define FALSE 0 24 | #define TRUE 1 25 | 26 | /* target machine dependencies. 27 | tm.h is a symbolic link to the actual target specific file. */ 28 | #include "tm.h" 29 | 30 | /* This describes the machine the compiler is hosted on. */ 31 | #define HOST_BITS_PER_CHAR 8 32 | #define HOST_BITS_PER_SHORT 16 33 | #define HOST_BITS_PER_INT 32 34 | #define HOST_BITS_PER_LONG 32 35 | 36 | /* Arguments to use with `exit'. */ 37 | #define SUCCESS_EXIT_CODE 0 38 | #define FATAL_EXIT_CODE 33 39 | 40 | /* If compiled with GNU C, use the built-in alloca */ 41 | #ifdef __GNUC__ 42 | #define alloca __builtin_alloca 43 | #endif 44 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/device/defaultswitches.h: -------------------------------------------------------------------------------- 1 | /* Definitions for the PostScript device implementation. 2 | 3 | This module defines the default configuration options for the PostScript 4 | device implementation. 5 | 6 | Copyright (c) 1990 Adobe Systems Incorporated. 7 | All rights reserved. 8 | 9 | NOTICE: All information contained herein is the property of Adobe Systems 10 | Incorporated. Many of the intellectual and technical concepts contained 11 | herein are proprietary to Adobe, are protected as trade secrets, and are made 12 | available only to Adobe licensees for their internal use. Any reproduction 13 | or dissemination of this software is strictly forbidden unless prior written 14 | permission is obtained from Adobe. 15 | 16 | PostScript is a registered trademark of Adobe Systems Incorporated. 17 | Display PostScript is a trademark of Adobe Systems Incorporated. 18 | 19 | */ 20 | 21 | #ifndef DEFAULTSWITCHES_H 22 | #define DEFAULTSWITCHES_H 23 | 24 | #ifndef SAMPLEDEVICE 25 | #define SAMPLEDEVICE 0 26 | #endif 27 | 28 | #ifndef DISKDL 29 | #if SAMPLEDEVICE 30 | #define DISKDL 0 31 | #else 32 | #define DISKDL 0 33 | #endif 34 | #endif 35 | 36 | #ifndef DPSXA 37 | #if SAMPLEDEVICE 38 | #define DPSXA 0 39 | #else 40 | #define DPSXA 0 41 | #endif 42 | #endif 43 | 44 | #ifndef MASKCOMPRESSION 45 | #if SAMPLEDEVICE 46 | #define MASKCOMPRESSION 0 47 | #else 48 | #define MASKCOMPRESSION 1 49 | #endif 50 | #endif 51 | 52 | #ifndef MULTICHROME 53 | #if SAMPLEDEVICE 54 | #define MULTICHROME 1 55 | #else 56 | #define MULTICHROME 0 57 | #endif 58 | #endif 59 | 60 | #endif DEFAULTSWITCHES_H 61 | 62 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/devpattern/ims11d14.c: -------------------------------------------------------------------------------- 1 | /* PostScript generic image module 2 | 3 | Copyright (c) 1983, '84, '85, '86, '87, '88 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | Original version: Doug Brotz: Sept. 13, 1983 17 | Edit History: 18 | Doug Brotz: Mon Aug 25 14:41:39 1986 19 | Chuck Geschke: Mon Aug 6 23:25:04 1984 20 | Ed Taft: Tue Jul 3 12:55:59 1984 21 | Ivor Durham: Sun Feb 7 14:02:56 1988 22 | Bill Paxton: Tue Mar 29 09:20:13 1988 23 | Paul Rovner: Monday, November 23, 1987 10:11:58 AM 24 | Jim Sandman: Wed May 31 16:52:20 1989 25 | Joe Pasqua: Tue Feb 28 11:36:56 1989 26 | End Edit History. 27 | */ 28 | 29 | #define LOG2BPP 2 30 | #define BPP 4 31 | #define SMASK (SCANMASK >> LOG2BPP) 32 | #define SSHIFT (SCANSHIFT - LOG2BPP) 33 | #define SUNIT (SCANUNIT >> LOG2BPP) 34 | 35 | #define PROCNAME ImS11D14 36 | 37 | #define DECLAREVARS 38 | 39 | #define SETUPPARAMS(args) \ 40 | if (args->bitsPerPixel != BPP) RAISE(ecLimitCheck, (char *)NIL); 41 | 42 | 43 | #include "ims11d1xmain.c" 44 | 45 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-pyr.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU compiler for Pyramid 90 Series. 2 | Copyright (C) 1989 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* xm-pyr.h -- based on xm-vax.h */ 21 | 22 | /* #defines that need visibility everywhere. */ 23 | #define FALSE 0 24 | #define TRUE 1 25 | 26 | /* target machine dependencies. 27 | tm.h is a symbolic link to the actual target specific file. */ 28 | #include "tm.h" 29 | 30 | /* This describes the machine the compiler is hosted on. */ 31 | #define HOST_BITS_PER_CHAR 8 32 | #define HOST_BITS_PER_SHORT 16 33 | #define HOST_BITS_PER_INT 32 34 | #define HOST_BITS_PER_LONG 32 35 | 36 | /* Arguments to use with `exit'. */ 37 | #define SUCCESS_EXIT_CODE 0 38 | #define FATAL_EXIT_CODE 33 39 | 40 | /* If compiled with GNU C, use the built-in alloca */ 41 | #ifdef __GNUC__ 42 | #define alloca __builtin_alloca 43 | #endif 44 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/gvarargs.h: -------------------------------------------------------------------------------- 1 | #ifndef __GNUC__ 2 | /* Use the system's macros with the system's compiler. */ 3 | #include 4 | #else 5 | #ifdef __spur__ 6 | #include "va-spur.h" 7 | #else 8 | #ifdef __mips__ 9 | #include "va-mips.h" 10 | #else 11 | #ifdef __i860__ 12 | #include "va-i860.h" 13 | #else 14 | #ifdef __pyr__ 15 | #include "va-pyr.h" 16 | #else 17 | 18 | #ifdef __NeXT__ 19 | 20 | /* On Next, erase any vestiges of stdarg.h. */ 21 | 22 | #undef va_alist 23 | #undef va_dcl 24 | #undef va_list 25 | #undef va_start 26 | #undef va_end 27 | #undef __va_rounded_size 28 | #undef va_arg 29 | 30 | /* Record that varargs.h is defined; this turns off stdarg.h. */ 31 | 32 | #ifndef _VARARGS_H 33 | #define _VARARGS_H 34 | #endif 35 | #endif /* __NeXT__ */ 36 | 37 | /* These macros implement traditional (non-ANSI) varargs 38 | for GNU C. */ 39 | 40 | #define va_alist __builtin_va_alist 41 | #define va_dcl int __builtin_va_alist; 42 | #define va_list char * 43 | 44 | #ifdef __sparc__ 45 | #define va_start(AP) \ 46 | (__builtin_saveregs (), \ 47 | AP = ((void *) &__builtin_va_alist)) 48 | #else 49 | #define va_start(AP) AP=(char *) &__builtin_va_alist 50 | #endif 51 | #define va_end(AP) 52 | 53 | #define __va_rounded_size(TYPE) \ 54 | (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int)) 55 | 56 | #define va_arg(AP, TYPE) \ 57 | (AP += __va_rounded_size (TYPE), \ 58 | *((TYPE *) (AP - __va_rounded_size (TYPE)))) 59 | 60 | #endif /* not pyr */ 61 | #endif /* not i860 */ 62 | #endif /* not mips */ 63 | #endif /* not spur */ 64 | #endif /* __GNUC__ */ 65 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/pas/pass2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Pass 2 for the assembler. 3 | */ 4 | #include 5 | #include 6 | #include "pas.h" 7 | #include "gram.tab.h" 8 | 9 | /* 10 | * For each leaf of type TARGET_T, fill in the leaf's value field. 11 | */ 12 | pass2() 13 | { 14 | extern struct tn *Forest; 15 | struct tn *fp = Forest; 16 | struct sym *sp; 17 | extern struct sym *must_lookup(); 18 | 19 | if ( fp == (struct tn *) NULL ) 20 | return; 21 | 22 | do 23 | { 24 | if ( fp->l1 != (struct ln *) NULL && fp->l1->type == TARGET_T ) 25 | { 26 | sp = must_lookup( fp->l1->string, fp->line_no ); 27 | if ( sp != NULL ) 28 | fp->l1->value = sp->value; 29 | } 30 | if ( fp->l2 != (struct ln *) NULL && fp->l2->type == TARGET_T ) 31 | { 32 | sp = must_lookup( fp->l2->string, fp->line_no ); 33 | if ( sp != NULL ) 34 | fp->l2->value = sp->value; 35 | } 36 | if ( fp->l3 != (struct ln *) NULL && fp->l3->type == TARGET_T ) 37 | { 38 | sp = must_lookup( fp->l3->string, fp->line_no ); 39 | if ( sp != NULL ) 40 | fp->l3->value = sp->value; 41 | } 42 | fp = fp->next; 43 | } 44 | while( fp != Forest ); 45 | } 46 | struct sym * 47 | must_lookup( str, line ) 48 | char *str; 49 | int line; 50 | { 51 | char buff[256]; 52 | struct sym *sp; 53 | extern struct sym *lookup(); 54 | extern char *CurrentFile; 55 | 56 | if ( (sp = lookup( str )) != (struct sym *) NULL ) 57 | return( sp ); 58 | 59 | (void) sprintf( buff, "Unknown symbol \"%s\"", str ); 60 | misc_error( buff, CurrentFile, line ); 61 | return( (struct sym *) NULL ); 62 | } 63 | -------------------------------------------------------------------------------- /NextDimension-21/ROM/pas/scan.l: -------------------------------------------------------------------------------- 1 | %START COMMENT VECTLIST 2 | %{ 3 | #include "pas.h" 4 | #include "gram.tab.h" 5 | extern int CurrentNumber; 6 | extern struct vect *CurrentVect; 7 | extern char *CurrentFile; 8 | %} 9 | %% 10 | "//".*$ ; /* Comments */ 11 | [ \t] ; /* Whitespace consumer */ 12 | \n return( SEMIOP ); 13 | ";" return( SEMIOP ); 14 | ^"#" return( CPP_OP ); 15 | "#" return( (int)'#' ); 16 | "@" return( (int) '@' ); 17 | "," return( (int) ',' ); 18 | ":" return( (int) ':' ); 19 | load return( LOAD ); 20 | storev return( STORE_VECT ); 21 | store return( STORE ); 22 | end_storev return( ENDSTOREV ); 23 | add return( ADD ); 24 | sub return( SUB ); 25 | and return( AND ); 26 | or return( OR ); 27 | xor return( XOR ); 28 | asr return( ASR ); 29 | asl return( ASL ); 30 | move return( MOVE ); 31 | test return( TEST ); 32 | br return( BRI ); 33 | bpos return( BPOSI ); 34 | bneg return( BNEGI ); 35 | bzero return( BZEROI ); 36 | bnpos return( BNPOSI ); 37 | bnneg return( BNNEGI ); 38 | bnzero return( BNZEROI ); 39 | end return( ENDI ); 40 | ".word" return( WORD ); 41 | r[0-7] { CurrentNumber = yytext[1] - '0'; return( REGNO ); } 42 | 0x[0-9a-fA-F]+ { sscanf( &yytext[2], "%x", &CurrentNumber ); 43 | return( NUMBER ); } 44 | 0[0-7]+ { sscanf( yytext, "%o", &CurrentNumber ); 45 | return( NUMBER ); } 46 | [1-9][0-9]* { CurrentNumber = atoi( yytext ); return( NUMBER ); } 47 | 0 { CurrentNumber = 0; return( NUMBER ); } 48 | [a-zA-Z_$][a-zA-Z0-9_$]* return( STRING ); 49 | \"[^"\n]*\" return( QSTRING ); 50 | . return( (int) yytext[0] ); 51 | 52 | 53 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-sparc.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Sun Sparc. 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | Contributed by Michael Tiemann (tiemann@mcc.com). 4 | 5 | This file is part of GNU CC. 6 | 7 | GNU CC is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 1, or (at your option) 10 | any later version. 11 | 12 | GNU CC is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with GNU CC; see the file COPYING. If not, write to 19 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | 22 | /* #defines that need visibility everywhere. */ 23 | #define FALSE 0 24 | #define TRUE 1 25 | 26 | /* This describes the machine the compiler is hosted on. */ 27 | #define HOST_BITS_PER_CHAR 8 28 | #define HOST_BITS_PER_SHORT 16 29 | #define HOST_BITS_PER_INT 32 30 | #define HOST_BITS_PER_LONG 32 31 | 32 | /* Place any machine-dependent include files here, in case we 33 | are bootstrapping. */ 34 | #include "alloca.h" 35 | 36 | /* target machine dependencies. 37 | tm.h is a symbolic link to the actual target specific file. */ 38 | #include "tm.h" 39 | 40 | /* Arguments to use with `exit'. */ 41 | #define SUCCESS_EXIT_CODE 0 42 | #define FATAL_EXIT_CODE 33 43 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-sparc.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for Sun Sparc. 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | Contributed by Michael Tiemann (tiemann@mcc.com). 4 | 5 | This file is part of GNU CC. 6 | 7 | GNU CC is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 1, or (at your option) 10 | any later version. 11 | 12 | GNU CC is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with GNU CC; see the file COPYING. If not, write to 19 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | 22 | /* #defines that need visibility everywhere. */ 23 | #define FALSE 0 24 | #define TRUE 1 25 | 26 | /* This describes the machine the compiler is hosted on. */ 27 | #define HOST_BITS_PER_CHAR 8 28 | #define HOST_BITS_PER_SHORT 16 29 | #define HOST_BITS_PER_INT 32 30 | #define HOST_BITS_PER_LONG 32 31 | 32 | /* Place any machine-dependent include files here, in case we 33 | are bootstrapping. */ 34 | #include "alloca.h" 35 | 36 | /* target machine dependencies. 37 | tm.h is a symbolic link to the actual target specific file. */ 38 | #include "tm.h" 39 | 40 | /* Arguments to use with `exit'. */ 41 | #define SUCCESS_EXIT_CODE 0 42 | #define FATAL_EXIT_CODE 33 43 | -------------------------------------------------------------------------------- /NextDimension-21/NDkernel/ND/psl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * INTEL CORPORATION PROPRIETARY INFORMATION 3 | * 4 | * This software is supplied under the terms of a license 5 | * agreement or nondisclosure agreement with Intel Corpo- 6 | * ration and may not be copied or disclosed except in 7 | * accordance with the terms of that agreement. 8 | */ 9 | 10 | /* 11 | * i860 processor status register 12 | */ 13 | 14 | #define PSR_BR 0x00000001 /* break read */ 15 | #define PSR_BW 0x00000002 /* break write */ 16 | #define PSR_CC 0x00000004 /* condition code */ 17 | #define PSR_LCC 0x00000008 /* loop condition code */ 18 | 19 | #define PSR_IM 0x00000010 /* interrupt mode */ 20 | #define PSR_PIM 0x00000020 /* prev. interrupt mode */ 21 | #define PSR_U 0x00000040 /* user mode */ 22 | #define PSR_PU 0x00000080 /* prev. user mode */ 23 | 24 | #define PSR_IT 0x00000100 /* instruction trap */ 25 | #define PSR_IN 0x00000200 /* interrupt */ 26 | #define PSR_IAT 0x00000400 /* instruction access trap */ 27 | #define PSR_DAT 0x00000800 /* data access trap */ 28 | #define PSR_FT 0x00001000 /* floating-point trap */ 29 | 30 | #define PSR_DS 0x00002000 /* delayed switch */ 31 | #define PSR_DIM 0x00004000 /* dual instruction mode */ 32 | #define PSR_KNF 0x00008000 /* kill next float instr. */ 33 | 34 | #define PSR_USERSET (PSR_U) /* bits to set for ptrace */ 35 | #define PSR_USERCLR (PSR_IM+PSR_PIM) /* bits to clear for ptrace */ 36 | 37 | /* 38 | * i860 direct-ory pointer 39 | */ 40 | 41 | #define DIR_ATE 0x00000001 /* address translation enable */ 42 | #define DIR_ITI 0x00000020 /* tlb & i-cache invalidate */ 43 | -------------------------------------------------------------------------------- /NDTools-4/as/frags.h: -------------------------------------------------------------------------------- 1 | /* frags.h - Header file for the frag concept. */ 2 | 3 | /* Copyright (C) 1987 Free Software Foundation, Inc. 4 | 5 | This file is part of Gas, the GNU Assembler. 6 | 7 | The GNU assembler is distributed in the hope that it will be 8 | useful, but WITHOUT ANY WARRANTY. No author or distributor 9 | accepts responsibility to anyone for the consequences of using it 10 | or for whether it serves any particular purpose or works at all, 11 | unless he says so in writing. Refer to the GNU Assembler General 12 | Public License for full details. 13 | 14 | Everyone is granted permission to copy, modify and redistribute 15 | the GNU Assembler, but only under the conditions described in the 16 | GNU Assembler General Public License. A copy of this license is 17 | supposed to have been given to you along with the GNU Assembler 18 | so you can know your rights and responsibilities. It should be 19 | in a file named COPYING. Among other things, the copyright 20 | notice and this notice must be preserved on all copies. */ 21 | 22 | extern struct obstack frags; 23 | /* Frags ONLY live in this obstack. */ 24 | /* We use obstack_next_free() macro */ 25 | /* so please don't put any other objects */ 26 | /* on this stack! */ 27 | 28 | /* 29 | * A macro to speed up appending exactly 1 char 30 | * to current frag. 31 | */ 32 | /* JF changed < 1 to <= 1 to avoid a race conditon */ 33 | #define FRAG_APPEND_1_CHAR(datum) \ 34 | { \ 35 | if (obstack_room( &frags ) <= 1) {\ 36 | frag_wane (frag_now); \ 37 | frag_new (0); \ 38 | } \ 39 | obstack_1grow( &frags, datum ); \ 40 | } 41 | 42 | 43 | /* end: frags.h */ 44 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-umips.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for UMIPS operating system 2 | Copyright (C) 1989 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* 21 | * Notes for compiling gcc on umips (v3.0) 22 | * - change the -g in the CFLAGS to a -g3 or take it out all together. 23 | * - do not define DBX_DEBUGGING_INFO in tm.h, it doesn't exist (unless 24 | * you get one from a bsd system) 25 | */ 26 | #include "xm-mips.h" 27 | 28 | /* Arguments to use with `exit'. */ 29 | #define SUCCESS_EXIT_CODE 0 30 | #define FATAL_EXIT_CODE 33 31 | 32 | /* If compiled with GNU C, use the built-in alloca */ 33 | #ifdef __GNUC__ 34 | #define alloca __builtin_alloca 35 | #endif 36 | 37 | #define USG 38 | 39 | /* for the emacs version of alloca */ 40 | #define STACK_DIRECTION -1 41 | 42 | #define bcopy(a,b,c) memcpy((b),(a),(c)) 43 | #define bzero(a,b) memset((a),0,(b)) 44 | #define bcmp(a,b,c) memcmp((a),(b),(c)) 45 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config.std/xm-umips.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for UMIPS operating system 2 | Copyright (C) 1989 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* 21 | * Notes for compiling gcc on umips (v3.0) 22 | * - change the -g in the CFLAGS to a -g3 or take it out all together. 23 | * - do not define DBX_DEBUGGING_INFO in tm.h, it doesn't exist (unless 24 | * you get one from a bsd system) 25 | */ 26 | #include "xm-mips.h" 27 | 28 | /* Arguments to use with `exit'. */ 29 | #define SUCCESS_EXIT_CODE 0 30 | #define FATAL_EXIT_CODE 33 31 | 32 | /* If compiled with GNU C, use the built-in alloca */ 33 | #ifdef __GNUC__ 34 | #define alloca __builtin_alloca 35 | #endif 36 | 37 | #define USG 38 | 39 | /* for the emacs version of alloca */ 40 | #define STACK_DIRECTION -1 41 | 42 | #define bcopy(a,b,c) memcpy((b),(a),(c)) 43 | #define bzero(a,b) memset((a),0,(b)) 44 | #define bcmp(a,b,c) memcmp((a),(b),(c)) 45 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/bitmap/bm38hl.860.s: -------------------------------------------------------------------------------- 1 | .text 2 | nop // FIR - 4 pager check value 3 | gcc_compiled.: 4 | .text 5 | .align 4 6 | .globl _BMHighlight38 7 | _BMHighlight38: 8 | adds -16,sp,sp 9 | st.l fp,8(sp) 10 | st.l r1,12(sp) 11 | adds 8,sp,fp 12 | ld.l 8(r16),r19 13 | ld.l 44(r16),r18 14 | ld.l 36(r16),r17 15 | ld.l 4(r16),r23 16 | adds -1,r0,r21 // r21 = 0xffffff00 17 | ixfr r21,f21 // f21 = r21 = 0xffffff00 18 | or l%-1431655936,r0,r20 19 | orh h%-1431655936,r20,r20 20 | or 255,r20,r20 21 | ixfr r20,f20 // f20 = r20 = 0xaaaaaaff 22 | bte r19,r0,.L15 23 | shl 2,r18,r22 24 | adds -1,r0,r31 // Initialize 1-at-a-time bla decrement 25 | adds -4,r17,r17 // Compensate for fst.l++ 26 | .loop1: 27 | adds -1,r23,r18 // Compute count for 1-at-a-time bla 28 | bla r31,r18,.blawhite 29 | nop 30 | .blawhite: 31 | ld.l 4(r17),r16 32 | btne r16,r21,.other // if (d != 0xffffffff) doother 33 | .white: 34 | bla r31,r18,.blawhite 35 | fst.l f20,4(r17)++ // Write 0xaaaaaaff 36 | br .end1 37 | nop 38 | .blagray: 39 | ld.l 4(r17),r16 40 | btne r16,r20,.other // if (d != 0xaaaaaaff) doother 41 | .gray: 42 | bla r31,r18,.blagray 43 | fst.l f21,4(r17)++ // Write 0xffffffff 44 | br .end1 45 | nop 46 | .blaother: 47 | ld.l 4(r17),r16 48 | .other: 49 | or 255,r16,r16 // r16 = d |= 0xff 50 | bte r16,r21,.white // if (d == 0xffffffff) dowhite 51 | bte r16,r20,.gray // if (d != 0xaaaaaaff) dogray 52 | bla r31,r18,.blaother 53 | addu 4,r17,r17 54 | .end1: 55 | addu -1,r19,r19 56 | addu r22,r17,r17 // Increment dest ptr to next scanline 57 | btne r19,r0,.loop1 58 | .L15: 59 | ld.l 4(fp),r1 60 | ld.l 0(fp),fp 61 | bri r1 62 | addu 16,sp,sp 63 | -------------------------------------------------------------------------------- /NextDimension-21/PSDriver/devpattern/ims1xd18.c: -------------------------------------------------------------------------------- 1 | /* PostScript generic image module 2 | 3 | Copyright (c) 1983, '84, '85, '86, '87, '88, '89 Adobe Systems Incorporated. 4 | All rights reserved. 5 | 6 | NOTICE: All information contained herein is the property of Adobe Systems 7 | Incorporated. Many of the intellectual and technical concepts contained 8 | herein are proprietary to Adobe, are protected as trade secrets, and are made 9 | available only to Adobe licensees for their internal use. Any reproduction 10 | or dissemination of this software is strictly forbidden unless prior written 11 | permission is obtained from Adobe. 12 | 13 | PostScript is a registered trademark of Adobe Systems Incorporated. 14 | Display PostScript is a trademark of Adobe Systems Incorporated. 15 | 16 | Original version: Doug Brotz: Sept. 13, 1983 17 | Edit History: 18 | Doug Brotz: Mon Aug 25 14:41:39 1986 19 | Chuck Geschke: Mon Aug 6 23:25:04 1984 20 | Ed Taft: Tue Jul 3 12:55:59 1984 21 | Ivor Durham: Wed Mar 23 13:11:32 1988 22 | Bill Paxton: Tue Mar 29 09:25:41 1988 23 | Paul Rovner: Wednesday, January 27, 1988 4:28:47 PM 24 | Jim Sandman: Wed May 31 17:10:51 1989 25 | 26 | End Edit History. 27 | */ 28 | 29 | 30 | #define LOG2BPP 3 31 | #define BPP 8 32 | #define SMASK (SCANMASK >> LOG2BPP) 33 | #define SSHIFT (SCANSHIFT - LOG2BPP) 34 | #define PIXDELTA pixelDelta 35 | 36 | 37 | #define PROCNAME ImS1XD18 38 | 39 | #define DECLAREVARS \ 40 | integer pixelDelta; 41 | 42 | #define SETUPPARAMS(args) \ 43 | if (args->bitsPerPixel != BPP) RAISE(ecLimitCheck, (char *)NIL); \ 44 | pixelDelta = args->gray.delta; 45 | 46 | 47 | #include "ims1xd1xmain.c" 48 | 49 | 50 | -------------------------------------------------------------------------------- /NDTools-4/as/notes: -------------------------------------------------------------------------------- 1 | 2 | Changes for the 0.91 release (the -10 compiler release): 3 | 4 | * s.stone fixed a bug in `#APP', `#NO_APP' that affected read.c & strstr.c. 5 | 6 | + Fixed a bug in converting to Mach-O object files with the new sections 7 | for the objective-C runtime. The bug was if a local relocation item refered 8 | to a symbol plus an offset the incorrect section number could be assigned if 9 | the value of the symbol plus offset was in a different section than the value 10 | of the symbol. This is an un fixable bug in atom(1) but fixed in here by 11 | moving the assignment of the section number into the r_symbolnum field into 12 | the assembler and using just the symbol's value (not plus the offset) to pick 13 | the section number. The fix is in write.c in emit_relocation() (plus a call 14 | to a new function get_objc_section_bounds() before calling emit_relocation). 15 | + Fixed a bug where a file had no symbols and the result was a Mach-O file. 16 | What would happen was a 4 (the size of the string table) was written at offset 17 | 0 in the output file (overwriting the magic number). Also did some major 18 | clean up of atom.c and removed all the garbage that did not apply (about half 19 | of what was there). 20 | + Added the .reference pseudo op to read.c. This was added for the new 21 | objective-C runtime to use so that archive semantaic could be maintained but 22 | no globals (that 'C' could use) are created. 23 | + Fixed the exponent overflow handling in atof-m68k.c to not print a warning 24 | (ifdef NeXT) and to get the right answer (a bzero of the 'words' as added, 25 | and corrected the reversed sign for infinities). 26 | -------------------------------------------------------------------------------- /NDTools-4/gcc-1.36/config/xm-aix386.h: -------------------------------------------------------------------------------- 1 | /* Configuration for GNU C-compiler for IBM PS/2 running AIX/386. 2 | Copyright (C) 1988 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU CC. 5 | 6 | GNU CC is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 1, or (at your option) 9 | any later version. 10 | 11 | GNU CC is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with GNU CC; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | 21 | /* #defines that need visibility everywhere. */ 22 | #define FALSE 0 23 | #define TRUE 1 24 | 25 | /* This describes the machine the compiler is hosted on. */ 26 | #define HOST_BITS_PER_CHAR 8 27 | #define HOST_BITS_PER_SHORT 16 28 | #define HOST_BITS_PER_INT 32 29 | #define HOST_BITS_PER_LONG 32 30 | 31 | /* Arguments to use with `exit'. */ 32 | #define SUCCESS_EXIT_CODE 0 33 | #define FATAL_EXIT_CODE 33 34 | 35 | #define USG 36 | 37 | /* target machine dependencies. 38 | tm.h is a symbolic link to the actual target specific file. */ 39 | #include "tm.h" 40 | 41 | #define bcopy(a,b,c) memcpy (b,a,c) 42 | #define bzero(a,b) memset (a,0,b) 43 | #define bcmp(a,b,c) memcmp (a,b,c) 44 | 45 | #ifdef __GNUC__ 46 | #define alloca(n) __builtin_alloca(n) 47 | #endif 48 | --------------------------------------------------------------------------------