Initial revision

This commit is contained in:
em 1985-07-26 12:52:13 +00:00
parent bc759a2903
commit 83103c314b
3 changed files with 131 additions and 0 deletions

64
mach/ns/libsys/LIST Normal file
View file

@ -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

17
mach/ns/libsys/Makefile Normal file
View file

@ -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

50
mach/ns/libsys/head_em.s Normal file
View file

@ -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