Added sparc_solaris stuff
This commit is contained in:
parent
980faf36f0
commit
9e7c8d2c9f
4
mach/sparc_solaris/libsys/.distr
Normal file
4
mach/sparc_solaris/libsys/.distr
Normal file
|
@ -0,0 +1,4 @@
|
|||
LIST
|
||||
libmon_s.a
|
||||
head_em.s
|
||||
SYS.h
|
142
mach/sparc_solaris/libsys/LIST
Normal file
142
mach/sparc_solaris/libsys/LIST
Normal file
|
@ -0,0 +1,142 @@
|
|||
libmon_s.a
|
||||
_execl.c
|
||||
cleanup.c
|
||||
execl.c
|
||||
execle.c
|
||||
execv.c
|
||||
exit.c
|
||||
tell.c
|
||||
signal.c
|
||||
_alarm.s
|
||||
_brk.s
|
||||
_close.s
|
||||
_creat.s
|
||||
_dup.s
|
||||
_dup2.s
|
||||
_execve.s
|
||||
_exit.s
|
||||
_fork.s
|
||||
_fstat.s
|
||||
_getpid.s
|
||||
_gtty.s
|
||||
_ioctl.s
|
||||
_kill.s
|
||||
_link.s
|
||||
_lseek.s
|
||||
_open.s
|
||||
_pause.s
|
||||
_pipe.s
|
||||
_read.s
|
||||
_signal.s
|
||||
_sig_catch.s
|
||||
_stty.s
|
||||
_times.s
|
||||
_unlink.s
|
||||
_wait.s
|
||||
_write.s
|
||||
access.s
|
||||
acct.s
|
||||
adjtime.s
|
||||
alarm.s
|
||||
brk.s
|
||||
chdir.s
|
||||
chmod.s
|
||||
chown.s
|
||||
chroot.s
|
||||
close.s
|
||||
creat.s
|
||||
dup.s
|
||||
dup2.s
|
||||
execve.s
|
||||
fchdir.s
|
||||
fchmod.s
|
||||
fchown.s
|
||||
fchroot.s
|
||||
fcntl.s
|
||||
fork.s
|
||||
fstat.s
|
||||
fsync.s
|
||||
ftruncate.s
|
||||
getdents.s
|
||||
getegid.s
|
||||
geteuid.s
|
||||
getgid.s
|
||||
getgroups.s
|
||||
getitimer.s
|
||||
getmsg.s
|
||||
getpgid.s
|
||||
getpgrp.s
|
||||
getpid.s
|
||||
getpmsg.s
|
||||
getppid.s
|
||||
getrlimit.s
|
||||
getsid.s
|
||||
gettimeofday.s
|
||||
getuid.s
|
||||
gtty.s
|
||||
ioctl.s
|
||||
kill.s
|
||||
lchown.s
|
||||
link.s
|
||||
lockf.s
|
||||
lseek.s
|
||||
lstat.s
|
||||
mincore.s
|
||||
mkdir.s
|
||||
mknod.s
|
||||
mmap.s
|
||||
mount.s
|
||||
mprotect.s
|
||||
munmap.s
|
||||
nice.s
|
||||
open.s
|
||||
pause.s
|
||||
pipe.s
|
||||
plock.s
|
||||
poll.s
|
||||
pread.s
|
||||
profil.s
|
||||
ptrace.s
|
||||
putmsg.s
|
||||
putpmsg.s
|
||||
pwrite.s
|
||||
read.s
|
||||
readlink.s
|
||||
readv.s
|
||||
rename.s
|
||||
rmdir.s
|
||||
setegid.s
|
||||
seteuid.s
|
||||
setgid.s
|
||||
setgroups.s
|
||||
setitimer.s
|
||||
setpgrp.s
|
||||
setrlimit.s
|
||||
setsid.s
|
||||
settimeofday.s
|
||||
setuid.s
|
||||
sighold.s
|
||||
sigignore.s
|
||||
sigpause.s
|
||||
sigrelse.s
|
||||
sigset.s
|
||||
stat.s
|
||||
stime.s
|
||||
stty.s
|
||||
symlink.s
|
||||
sync.s
|
||||
time.s
|
||||
times.s
|
||||
truncate.s
|
||||
ulimit.s
|
||||
umask.s
|
||||
umount.s
|
||||
uname.s
|
||||
unlink.s
|
||||
utime.s
|
||||
utimes.s
|
||||
vfork.s
|
||||
wait.s
|
||||
write.s
|
||||
writev.s
|
||||
cerror.s
|
119
mach/sparc_solaris/libsys/SYS.h
Normal file
119
mach/sparc_solaris/libsys/SYS.h
Normal file
|
@ -0,0 +1,119 @@
|
|||
/*
|
||||
SYS.h
|
||||
*/
|
||||
|
||||
#ifndef SYS_H
|
||||
#define SYS_H
|
||||
|
||||
#define SYS_call_0(x) \
|
||||
LABEL_(x); \
|
||||
BODY(x)
|
||||
|
||||
#define _SYS_call_0(x) \
|
||||
LABEL__(x); \
|
||||
BODY(x)
|
||||
|
||||
#define SYS_call_1(x) \
|
||||
LABEL_(x); \
|
||||
ENTRY1; \
|
||||
BODY(x)
|
||||
|
||||
#define _SYS_call_1(x) \
|
||||
LABEL__(x); \
|
||||
ENTRY1; \
|
||||
BODY(x)
|
||||
|
||||
#define SYS_call_2(x) \
|
||||
LABEL_(x); \
|
||||
ENTRY2; \
|
||||
BODY(x)
|
||||
|
||||
#define _SYS_call_2(x) \
|
||||
LABEL__(x); \
|
||||
ENTRY2; \
|
||||
BODY(x)
|
||||
|
||||
#define SYS_call_3(x) \
|
||||
LABEL_(x); \
|
||||
ENTRY3; \
|
||||
BODY(x)
|
||||
|
||||
#define _SYS_call_3(x) \
|
||||
LABEL__(x); \
|
||||
ENTRY3; \
|
||||
BODY(x)
|
||||
|
||||
#define SYS_call_4(x) \
|
||||
LABEL_(x); \
|
||||
ENTRY4; \
|
||||
BODY(x)
|
||||
|
||||
#define _SYS_call_4(x) \
|
||||
LABEL__(x); \
|
||||
ENTRY4; \
|
||||
BODY(x)
|
||||
|
||||
#define SYS_call_5(x) \
|
||||
LABEL_(x); \
|
||||
ENTRY5; \
|
||||
BODY(x)
|
||||
|
||||
#define _SYS_call_5(x) \
|
||||
LABEL__(x); \
|
||||
ENTRY5; \
|
||||
BODY(x)
|
||||
|
||||
#define SYS_call_6(x) \
|
||||
LABEL_(x); \
|
||||
ENTRY6; \
|
||||
BODY(x)
|
||||
|
||||
#define _SYS_call_6(x) \
|
||||
LABEL__(x); \
|
||||
ENTRY6; \
|
||||
BODY(x)
|
||||
|
||||
#define BODY(x) \
|
||||
b x; \
|
||||
nop
|
||||
|
||||
#if __STDC__
|
||||
#define LABEL_(x) \
|
||||
.global $ ## x; \
|
||||
$ ## x:
|
||||
#define LABEL__(x) \
|
||||
.global $_ ## x; \
|
||||
$_ ## x:
|
||||
#else
|
||||
#define LABEL_(x) \
|
||||
.global $/**/x; \
|
||||
$/**/x:
|
||||
#define LABEL__(x) \
|
||||
.global $_/**/x; \
|
||||
$_/**/x:
|
||||
#endif
|
||||
|
||||
#define ENTRY1 \
|
||||
ld [%l0], %o0 \
|
||||
|
||||
#define ENTRY2 \
|
||||
ENTRY1; \
|
||||
ld [%l0+4], %o1 \
|
||||
|
||||
#define ENTRY3 \
|
||||
ENTRY2; \
|
||||
ld [%l0+8], %o2 \
|
||||
|
||||
#define ENTRY4 \
|
||||
ENTRY3; \
|
||||
ld [%l0+12], %o3 \
|
||||
|
||||
#define ENTRY5 \
|
||||
ENTRY4; \
|
||||
ld [%l0+16], %o4 \
|
||||
|
||||
#define ENTRY6 \
|
||||
ENTRY5; \
|
||||
ld [%l0+20], %o5 \
|
||||
|
||||
#endif /* SYS_H */
|
3
mach/sparc_solaris/libsys/_alarm.s
Normal file
3
mach/sparc_solaris/libsys/_alarm.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(alarm)
|
44
mach/sparc_solaris/libsys/_brk.s
Normal file
44
mach/sparc_solaris/libsys/_brk.s
Normal file
|
@ -0,0 +1,44 @@
|
|||
#include "SYS.h"
|
||||
|
||||
LABEL__(brk)
|
||||
mov %o7,%g2
|
||||
ld [%l0], %o0
|
||||
inc 7, %o0
|
||||
andn %o0, 7, %o0
|
||||
call brk
|
||||
mov %o0, %o2
|
||||
mov %g2,%o7
|
||||
tst %o0
|
||||
bge 0f
|
||||
nop
|
||||
retl
|
||||
nop
|
||||
0:
|
||||
set limhp, %g1
|
||||
st %o2, [%g1]
|
||||
retl
|
||||
nop
|
||||
|
||||
|
||||
LABEL__(sbrk)
|
||||
mov %o7,%g2
|
||||
ld [%l0], %o0
|
||||
inc 7, %o0
|
||||
andn %o0, 7, %o0
|
||||
set limhp, %o1
|
||||
ld [%o1], %o2
|
||||
inc 7, %o2
|
||||
andn %o2, 7, %o3
|
||||
add %o3, %o0, %o0
|
||||
call brk
|
||||
mov %o0, %o4
|
||||
mov %g2,%o7
|
||||
tst %o0
|
||||
blt 0f
|
||||
nop
|
||||
set limhp, %g1
|
||||
st %o4, [%g1]
|
||||
mov %o3, %o0
|
||||
0:
|
||||
retl
|
||||
nop
|
3
mach/sparc_solaris/libsys/_close.s
Normal file
3
mach/sparc_solaris/libsys/_close.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(close)
|
3
mach/sparc_solaris/libsys/_creat.s
Normal file
3
mach/sparc_solaris/libsys/_creat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(creat)
|
3
mach/sparc_solaris/libsys/_dup.s
Normal file
3
mach/sparc_solaris/libsys/_dup.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(dup)
|
3
mach/sparc_solaris/libsys/_dup2.s
Normal file
3
mach/sparc_solaris/libsys/_dup2.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(dup2)
|
8
mach/sparc_solaris/libsys/_execl.c
Normal file
8
mach/sparc_solaris/libsys/_execl.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
_execl(name,args)
|
||||
char *name;
|
||||
int args;
|
||||
{
|
||||
extern char **environ;
|
||||
|
||||
_execve(name,&args,environ);
|
||||
}
|
3
mach/sparc_solaris/libsys/_execve.s
Normal file
3
mach/sparc_solaris/libsys/_execve.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_3(execve)
|
3
mach/sparc_solaris/libsys/_exit.s
Normal file
3
mach/sparc_solaris/libsys/_exit.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(exit)
|
3
mach/sparc_solaris/libsys/_fork.s
Normal file
3
mach/sparc_solaris/libsys/_fork.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_0(fork)
|
3
mach/sparc_solaris/libsys/_fstat.s
Normal file
3
mach/sparc_solaris/libsys/_fstat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(fstat)
|
3
mach/sparc_solaris/libsys/_getpid.s
Normal file
3
mach/sparc_solaris/libsys/_getpid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_0(getpid)
|
3
mach/sparc_solaris/libsys/_gtty.s
Normal file
3
mach/sparc_solaris/libsys/_gtty.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(gtty)
|
3
mach/sparc_solaris/libsys/_ioctl.s
Normal file
3
mach/sparc_solaris/libsys/_ioctl.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_3(ioctl)
|
3
mach/sparc_solaris/libsys/_kill.s
Normal file
3
mach/sparc_solaris/libsys/_kill.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(kill)
|
3
mach/sparc_solaris/libsys/_link.s
Normal file
3
mach/sparc_solaris/libsys/_link.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(link)
|
3
mach/sparc_solaris/libsys/_lseek.s
Normal file
3
mach/sparc_solaris/libsys/_lseek.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_3(lseek)
|
3
mach/sparc_solaris/libsys/_open.s
Normal file
3
mach/sparc_solaris/libsys/_open.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_3(open)
|
3
mach/sparc_solaris/libsys/_pause.s
Normal file
3
mach/sparc_solaris/libsys/_pause.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_0(pause)
|
3
mach/sparc_solaris/libsys/_pipe.s
Normal file
3
mach/sparc_solaris/libsys/_pipe.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(pipe)
|
3
mach/sparc_solaris/libsys/_read.s
Normal file
3
mach/sparc_solaris/libsys/_read.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_3(read)
|
21
mach/sparc_solaris/libsys/_sig_catch.s
Normal file
21
mach/sparc_solaris/libsys/_sig_catch.s
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "SYS.h"
|
||||
|
||||
LABEL__(sig_catch)
|
||||
save %sp, %g4, %sp
|
||||
mov %fp, %l0 ! get new EM frame pointer
|
||||
|
||||
dec 4, %l0
|
||||
st %i0, [%l0] ! push signal number on EM stack
|
||||
|
||||
set $_sig_funcs, %l1
|
||||
dec 1, %i0
|
||||
sll %i0, 2, %l2
|
||||
add %l1, %l2, %l3
|
||||
ld [%l3], %l2 ! get signal handler into %l2
|
||||
|
||||
call %l2
|
||||
nop
|
||||
|
||||
restore
|
||||
retl
|
||||
add %sp,%g4,%sp
|
3
mach/sparc_solaris/libsys/_signal.s
Normal file
3
mach/sparc_solaris/libsys/_signal.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(signal)
|
3
mach/sparc_solaris/libsys/_stty.s
Normal file
3
mach/sparc_solaris/libsys/_stty.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_2(stty)
|
3
mach/sparc_solaris/libsys/_times.s
Normal file
3
mach/sparc_solaris/libsys/_times.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(times)
|
3
mach/sparc_solaris/libsys/_unlink.s
Normal file
3
mach/sparc_solaris/libsys/_unlink.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(unlink)
|
3
mach/sparc_solaris/libsys/_wait.s
Normal file
3
mach/sparc_solaris/libsys/_wait.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_1(wait)
|
3
mach/sparc_solaris/libsys/_write.s
Normal file
3
mach/sparc_solaris/libsys/_write.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
_SYS_call_3(write)
|
4
mach/sparc_solaris/libsys/access.s
Normal file
4
mach/sparc_solaris/libsys/access.s
Normal file
|
@ -0,0 +1,4 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(access)
|
||||
|
3
mach/sparc_solaris/libsys/acct.s
Normal file
3
mach/sparc_solaris/libsys/acct.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(acct)
|
3
mach/sparc_solaris/libsys/adjtime.s
Normal file
3
mach/sparc_solaris/libsys/adjtime.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(adjtime)
|
3
mach/sparc_solaris/libsys/alarm.s
Normal file
3
mach/sparc_solaris/libsys/alarm.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(alarm)
|
44
mach/sparc_solaris/libsys/brk.s
Normal file
44
mach/sparc_solaris/libsys/brk.s
Normal file
|
@ -0,0 +1,44 @@
|
|||
#include "SYS.h"
|
||||
|
||||
LABEL_(brk)
|
||||
mov %o7,%g2
|
||||
ld [%l0], %o0
|
||||
inc 7, %o0
|
||||
andn %o0, 7, %o0
|
||||
call brk
|
||||
mov %o0, %o2
|
||||
mov %g2,%o7
|
||||
tst %o0
|
||||
bge 0f
|
||||
nop
|
||||
retl
|
||||
nop
|
||||
0:
|
||||
set limhp, %g1
|
||||
st %o2, [%g1]
|
||||
retl
|
||||
nop
|
||||
|
||||
|
||||
LABEL_(sbrk)
|
||||
mov %o7,%g2
|
||||
ld [%l0], %o0
|
||||
inc 7, %o0
|
||||
andn %o0, 7, %o0
|
||||
set limhp, %o1
|
||||
ld [%o1], %o2
|
||||
inc 7, %o2
|
||||
andn %o2, 7, %o3
|
||||
add %o3, %o0, %o0
|
||||
call brk
|
||||
mov %o0, %o4
|
||||
mov %g2,%o7
|
||||
tst %o0
|
||||
blt 0f
|
||||
nop
|
||||
set limhp, %g1
|
||||
st %o4, [%g1]
|
||||
mov %o3, %o0
|
||||
0:
|
||||
retl
|
||||
nop
|
18
mach/sparc_solaris/libsys/cerror.s
Normal file
18
mach/sparc_solaris/libsys/cerror.s
Normal file
|
@ -0,0 +1,18 @@
|
|||
.global $errno, cerror, _cerror
|
||||
|
||||
.type _cerror, #function
|
||||
|
||||
.section ".text"
|
||||
cerror:
|
||||
_cerror:
|
||||
set $errno, %o5
|
||||
st %o0, [%o5]
|
||||
set errno, %o5
|
||||
st %o0, [%o5]
|
||||
set -1, %o0
|
||||
retl
|
||||
nop
|
||||
|
||||
.section ".data"
|
||||
$errno:
|
||||
.long 0
|
3
mach/sparc_solaris/libsys/chdir.s
Normal file
3
mach/sparc_solaris/libsys/chdir.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(chdir)
|
3
mach/sparc_solaris/libsys/chmod.s
Normal file
3
mach/sparc_solaris/libsys/chmod.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(chmod)
|
3
mach/sparc_solaris/libsys/chown.s
Normal file
3
mach/sparc_solaris/libsys/chown.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(chown)
|
3
mach/sparc_solaris/libsys/chroot.s
Normal file
3
mach/sparc_solaris/libsys/chroot.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(chroot)
|
1
mach/sparc_solaris/libsys/cleanup.c
Normal file
1
mach/sparc_solaris/libsys/cleanup.c
Normal file
|
@ -0,0 +1 @@
|
|||
_cleanup() { }
|
3
mach/sparc_solaris/libsys/close.s
Normal file
3
mach/sparc_solaris/libsys/close.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(close)
|
3
mach/sparc_solaris/libsys/creat.s
Normal file
3
mach/sparc_solaris/libsys/creat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(creat)
|
3
mach/sparc_solaris/libsys/dup.s
Normal file
3
mach/sparc_solaris/libsys/dup.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(dup)
|
3
mach/sparc_solaris/libsys/dup2.s
Normal file
3
mach/sparc_solaris/libsys/dup2.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(dup2)
|
8
mach/sparc_solaris/libsys/execl.c
Normal file
8
mach/sparc_solaris/libsys/execl.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
execl(name,args)
|
||||
char *name;
|
||||
int args;
|
||||
{
|
||||
extern char **environ;
|
||||
|
||||
execve(name,&args,environ);
|
||||
}
|
9
mach/sparc_solaris/libsys/execle.c
Normal file
9
mach/sparc_solaris/libsys/execle.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
execle(name,args)
|
||||
char *name;
|
||||
char *args;
|
||||
{
|
||||
char **p = &args;
|
||||
while (*p++) ;
|
||||
|
||||
execve(name,&args,*p);
|
||||
}
|
7
mach/sparc_solaris/libsys/execv.c
Normal file
7
mach/sparc_solaris/libsys/execv.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
execv(name,args)
|
||||
char *name;
|
||||
char **args;
|
||||
{
|
||||
extern char **environ;
|
||||
execve(name,args,environ);
|
||||
}
|
3
mach/sparc_solaris/libsys/execve.s
Normal file
3
mach/sparc_solaris/libsys/execve.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(execve)
|
5
mach/sparc_solaris/libsys/exit.c
Normal file
5
mach/sparc_solaris/libsys/exit.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
exit(n)
|
||||
{
|
||||
_cleanup();
|
||||
_exit(n);
|
||||
}
|
3
mach/sparc_solaris/libsys/fchdir.s
Normal file
3
mach/sparc_solaris/libsys/fchdir.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(fchdir)
|
3
mach/sparc_solaris/libsys/fchmod.s
Normal file
3
mach/sparc_solaris/libsys/fchmod.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(fchmod)
|
3
mach/sparc_solaris/libsys/fchown.s
Normal file
3
mach/sparc_solaris/libsys/fchown.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(fchown)
|
3
mach/sparc_solaris/libsys/fchroot.s
Normal file
3
mach/sparc_solaris/libsys/fchroot.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(fchroot)
|
4
mach/sparc_solaris/libsys/fcntl.s
Normal file
4
mach/sparc_solaris/libsys/fcntl.s
Normal file
|
@ -0,0 +1,4 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(fcntl)
|
||||
|
3
mach/sparc_solaris/libsys/fork.s
Normal file
3
mach/sparc_solaris/libsys/fork.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_0(fork)
|
3
mach/sparc_solaris/libsys/fstat.s
Normal file
3
mach/sparc_solaris/libsys/fstat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(fstat)
|
3
mach/sparc_solaris/libsys/fsync.s
Normal file
3
mach/sparc_solaris/libsys/fsync.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(fsync)
|
3
mach/sparc_solaris/libsys/ftruncate.s
Normal file
3
mach/sparc_solaris/libsys/ftruncate.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(ftruncate)
|
3
mach/sparc_solaris/libsys/getdents.s
Normal file
3
mach/sparc_solaris/libsys/getdents.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(getdents)
|
3
mach/sparc_solaris/libsys/getegid.s
Normal file
3
mach/sparc_solaris/libsys/getegid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_0(getegid)
|
3
mach/sparc_solaris/libsys/geteuid.s
Normal file
3
mach/sparc_solaris/libsys/geteuid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_0(geteuid)
|
3
mach/sparc_solaris/libsys/getgid.s
Normal file
3
mach/sparc_solaris/libsys/getgid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_0(getgid)
|
3
mach/sparc_solaris/libsys/getgroups.s
Normal file
3
mach/sparc_solaris/libsys/getgroups.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(getgroups)
|
3
mach/sparc_solaris/libsys/getitimer.s
Normal file
3
mach/sparc_solaris/libsys/getitimer.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(getitimer)
|
3
mach/sparc_solaris/libsys/getmsg.s
Normal file
3
mach/sparc_solaris/libsys/getmsg.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_4(getmsg)
|
3
mach/sparc_solaris/libsys/getpgid.s
Normal file
3
mach/sparc_solaris/libsys/getpgid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(getpgid)
|
3
mach/sparc_solaris/libsys/getpgrp.s
Normal file
3
mach/sparc_solaris/libsys/getpgrp.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(getpgrp)
|
3
mach/sparc_solaris/libsys/getpid.s
Normal file
3
mach/sparc_solaris/libsys/getpid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_0(getpid)
|
3
mach/sparc_solaris/libsys/getpmsg.s
Normal file
3
mach/sparc_solaris/libsys/getpmsg.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_5(getpmsg)
|
3
mach/sparc_solaris/libsys/getppid.s
Normal file
3
mach/sparc_solaris/libsys/getppid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(getppid)
|
4
mach/sparc_solaris/libsys/getrlimit.s
Normal file
4
mach/sparc_solaris/libsys/getrlimit.s
Normal file
|
@ -0,0 +1,4 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(getrlimit)
|
||||
|
3
mach/sparc_solaris/libsys/getsid.s
Normal file
3
mach/sparc_solaris/libsys/getsid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(getsid)
|
3
mach/sparc_solaris/libsys/gettimeofday.s
Normal file
3
mach/sparc_solaris/libsys/gettimeofday.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(gettimeofday)
|
3
mach/sparc_solaris/libsys/getuid.s
Normal file
3
mach/sparc_solaris/libsys/getuid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_0(getuid)
|
3
mach/sparc_solaris/libsys/gtty.s
Normal file
3
mach/sparc_solaris/libsys/gtty.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(gtty)
|
84
mach/sparc_solaris/libsys/head_em.s
Normal file
84
mach/sparc_solaris/libsys/head_em.s
Normal file
|
@ -0,0 +1,84 @@
|
|||
.global lino,filn
|
||||
.global EXIT
|
||||
.global begtext,begdata,begbss
|
||||
.global EARRAY,ERANGE,ESET,EIDIVZ,EHEAP,EILLINS,ECASE,EBADGTO
|
||||
.global hol0,reghp,limhp,trpim,trppc
|
||||
.global _start
|
||||
|
||||
! runtime startof for sparc on sun4
|
||||
|
||||
|
||||
LINO_AD = 0
|
||||
FILN_AD = 4
|
||||
|
||||
EARRAY = 0
|
||||
ERANGE = 1
|
||||
ESET = 2
|
||||
EIDIVZ = 6
|
||||
EHEAP = 17
|
||||
EILLINS = 18
|
||||
ECASE = 20
|
||||
EBADGTO = 27
|
||||
|
||||
.section ".text"
|
||||
|
||||
begtext:
|
||||
_start:
|
||||
clr %fp
|
||||
ld [%sp + 0x40], %o0
|
||||
add %sp, 0x44, %o1
|
||||
|
||||
sub %sp, 32, %sp
|
||||
|
||||
sll %o0, 0x2, %o2
|
||||
add %o2, 0x4, %o2
|
||||
add %o1, %o2, %o2
|
||||
set -0x100000, %g4 ! should be a few M
|
||||
clr %l1
|
||||
mov %sp, %l0
|
||||
add %sp, %g4, %sp
|
||||
dec 12, %l0
|
||||
! enable divide by 0 trap and improper
|
||||
! trap
|
||||
st %fsr, [%l0]
|
||||
ld [%l0], %o3
|
||||
set 0x09000000, %o4
|
||||
or %o3, %o4, %o3
|
||||
st %o3, [%l0]
|
||||
ld [%l0], %fsr
|
||||
|
||||
st %o0, [%l0]
|
||||
st %o1, [%l0+4]
|
||||
st %o2, [%l0+8]
|
||||
|
||||
call $_m_a_i_n
|
||||
nop
|
||||
dec 4, %l0
|
||||
st %g0, [%l0]
|
||||
EXIT:
|
||||
call $_exit
|
||||
nop
|
||||
|
||||
.type _start,#function
|
||||
.size _start,.-_start
|
||||
|
||||
.section ".data"
|
||||
begdata:
|
||||
.word 0 ! may be at virtual address 0 with no problem
|
||||
hol0:
|
||||
lino:
|
||||
.word 0 ! lino
|
||||
filn:
|
||||
.word 0 ! filn
|
||||
reghp:
|
||||
.word $_end
|
||||
limhp:
|
||||
.word $_end
|
||||
trppc:
|
||||
.word 0
|
||||
trpim:
|
||||
.word 0 ! USED TO BE 2 BYTES; IS THIS RIGHT?
|
||||
|
||||
|
||||
.section ".bss"
|
||||
begbss: !initialization is not needed because ALL entries are in zero space!
|
3
mach/sparc_solaris/libsys/ioctl.s
Normal file
3
mach/sparc_solaris/libsys/ioctl.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(ioctl)
|
3
mach/sparc_solaris/libsys/kill.s
Normal file
3
mach/sparc_solaris/libsys/kill.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(kill)
|
3
mach/sparc_solaris/libsys/lchown.s
Normal file
3
mach/sparc_solaris/libsys/lchown.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(lchown)
|
3
mach/sparc_solaris/libsys/link.s
Normal file
3
mach/sparc_solaris/libsys/link.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(link)
|
3
mach/sparc_solaris/libsys/lockf.s
Normal file
3
mach/sparc_solaris/libsys/lockf.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(lockf)
|
3
mach/sparc_solaris/libsys/lseek.s
Normal file
3
mach/sparc_solaris/libsys/lseek.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(lseek)
|
3
mach/sparc_solaris/libsys/lstat.s
Normal file
3
mach/sparc_solaris/libsys/lstat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(lstat)
|
3
mach/sparc_solaris/libsys/mincore.s
Normal file
3
mach/sparc_solaris/libsys/mincore.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(mincore)
|
3
mach/sparc_solaris/libsys/mkdir.s
Normal file
3
mach/sparc_solaris/libsys/mkdir.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(mkdir)
|
3
mach/sparc_solaris/libsys/mknod.s
Normal file
3
mach/sparc_solaris/libsys/mknod.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(mknod)
|
3
mach/sparc_solaris/libsys/mmap.s
Normal file
3
mach/sparc_solaris/libsys/mmap.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_6(mmap)
|
3
mach/sparc_solaris/libsys/mount.s
Normal file
3
mach/sparc_solaris/libsys/mount.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_4(mount)
|
3
mach/sparc_solaris/libsys/mprotect.s
Normal file
3
mach/sparc_solaris/libsys/mprotect.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(mprotect)
|
3
mach/sparc_solaris/libsys/munmap.s
Normal file
3
mach/sparc_solaris/libsys/munmap.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_2(munmap)
|
4
mach/sparc_solaris/libsys/nice.s
Normal file
4
mach/sparc_solaris/libsys/nice.s
Normal file
|
@ -0,0 +1,4 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(nice)
|
||||
|
3
mach/sparc_solaris/libsys/open.s
Normal file
3
mach/sparc_solaris/libsys/open.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(open)
|
3
mach/sparc_solaris/libsys/pause.s
Normal file
3
mach/sparc_solaris/libsys/pause.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_0(pause)
|
3
mach/sparc_solaris/libsys/pipe.s
Normal file
3
mach/sparc_solaris/libsys/pipe.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(pipe)
|
3
mach/sparc_solaris/libsys/plock.s
Normal file
3
mach/sparc_solaris/libsys/plock.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_1(plock)
|
3
mach/sparc_solaris/libsys/poll.s
Normal file
3
mach/sparc_solaris/libsys/poll.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_3(poll)
|
3
mach/sparc_solaris/libsys/pread.s
Normal file
3
mach/sparc_solaris/libsys/pread.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_4(pread)
|
3
mach/sparc_solaris/libsys/profil.s
Normal file
3
mach/sparc_solaris/libsys/profil.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "SYS.h"
|
||||
|
||||
SYS_call_4(profil)
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue