summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k/setjmp.s
blob: 2de2e1708b9eb2095455c1ca316290ce85a42475 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 1 "setjmp.S"
 









 




 



 





















.global  setjmp      
.global  longjmp      

 setjmp      :
	moveal   %sp       @(4),  %a0       
	movel   %sp       @(0),  %a0       @(12)
	movel   %sp       ,  %a0       @(8)
	moveml   %d2       -   %d7       /   %a2       -   %a6       ,  %a0       @(20)
	clrl   %d0       
	rts

 longjmp      :
	moveal   %sp       @(4),  %a0       
	movel   %sp       @(8),  %d0       
	bne 1f
	movel #1,  %d0       
1:
	moveml   %a0       @(20),  %d2       -   %d7       /   %a2       -   %a6       
	moveal   %a0       @(8),  %sp       
	movel   %a0       @(12),  %sp       @
	rts

# 88 "setjmp.S"