blob: 33a67ee8d7d7e245ed039e9733687ff70ba5c283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
.text
.globl main
.globl exit
main:
exit:
#if defined(__i386__)
movl $1,%eax
movl $0,%ebx
int $0x80
#elif defined(__mc68000__)
movel #1,%d0
clrl %d1
trap #0
#elif defined(__sparc__)
mov 1,%g1
mov 0,%o0
t 0x10
#else
#error Only know how to support i386, m68k and sparc architectures
#endif
.globl atexit
.globl __libc_init
.globl __setfpucw
atexit:
__libc_init:
__setfpucw:
#if defined(__i386__)
ret
#elif defined(__mc68000__)
rts
#elif defined(__sparc__)
ret
nop
#else
#error Only know how to support i386, m68k and sparc architectures
#endif
.data
.globl __fpu_control
__fpu_control:
.long 0
|