Initial revision
authorem <none@none>
Fri, 26 Jul 1985 12:52:13 +0000 (12:52 +0000)
committerem <none@none>
Fri, 26 Jul 1985 12:52:13 +0000 (12:52 +0000)
mach/ns/libsys/LIST [new file with mode: 0644]
mach/ns/libsys/Makefile [new file with mode: 0644]
mach/ns/libsys/head_em.s [new file with mode: 0644]

diff --git a/mach/ns/libsys/LIST b/mach/ns/libsys/LIST
new file mode 100644 (file)
index 0000000..30eb4de
--- /dev/null
@@ -0,0 +1,64 @@
+LIST
+exit.o
+gtty.o
+signal.o
+stty.o
+tell.o
+time.o
+cleanup.o
+access.o
+acct.o
+alarm.o
+brk.o
+chdir.o
+chmod.o
+chown.o
+chroot.o
+close.o
+creat.o
+dup.o
+dup2.o
+execl.o
+execle.o
+execv.o
+execve.o
+_exit.o
+fork.o
+fstat.o
+ftime.o
+getegid.o
+geteuid.o
+getgid.o
+getpid.o
+getuid.o
+ioctl.o
+kill.o
+link.o
+lock.o
+lseek.o
+mknod.o
+mount.o
+mpxcall.o
+nice.o
+open.o
+pause.o
+pipe.o
+prof.o
+ptrace.o
+read.o
+sbrk.o
+setgid.o
+setuid.o
+setsig.o
+sigtrp.o
+stat.o
+stime.o
+sync.o
+times.o
+umask.o
+umount.o
+unlink.o
+utime.o
+wait.o
+write.o
+errno.o
diff --git a/mach/ns/libsys/Makefile b/mach/ns/libsys/Makefile
new file mode 100644 (file)
index 0000000..91f2cc3
--- /dev/null
@@ -0,0 +1,17 @@
+# $Header$
+install:
+       ../../install head_em.s head_em
+       ../../install tail_mon.a tail_mon
+
+compare:
+       -../../compare head_em.s head_em
+       -../../compare tail_mon.a tail_mon
+
+clean :
+
+opr :
+       make pr | opr
+
+pr:
+       @pr -h `pwd`/head_em.s head_em.s
+       @ar pv tail_mon.a | pr -h `pwd`/tail_mon.a
diff --git a/mach/ns/libsys/head_em.s b/mach/ns/libsys/head_em.s
new file mode 100644 (file)
index 0000000..ffcd6fe
--- /dev/null
@@ -0,0 +1,50 @@
+.define hol0,argv,.reghp,envp,begbss
+.define .ignmask, .trpreg
+.define .stop
+.define ERANGE,EILLINS,ECASE
+
+base   = 0x10000
+topmem = 0xFFFFFF
+
+ERANGE         = 1
+EILLINS        = 18
+ECASE  = 20
+
+       .base base
+       .text
+
+       movd begbss, r7
+       movd endbss, r6
+1:
+       movqd 0, 0(r7)
+       addqd 4, r7
+       cmpd r6,r7
+       bgt 1b
+
+       movd envp,tos
+       movd argv,tos
+       movd 1,tos
+       jsr @_m_a_i_n
+.stop:
+       movb 0x7f,tos
+       jsr @.putchar
+       bpt
+
+.bss
+begbss:
+.data
+hol0:
+       .long 0
+       .long 0
+argv:
+       .long 3f
+envp:
+       .long 0
+3:
+       .asciz 'PROGRAM'
+.reghp:
+       .long endbss
+.ignmask:
+       .short 0
+.trpreg:
+       .long 0