File tree Expand file tree Collapse file tree 7 files changed +146
-146
lines changed Expand file tree Collapse file tree 7 files changed +146
-146
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 93d940de54cc90ea7bd5fecd3970d2466988199b
2
+ refs/heads/master: 160c56e76870efd9d1bf836e609f8bae092f9269
Original file line number Diff line number Diff line change @@ -82,18 +82,17 @@ check-fast: tidy \
82
82
tidy :
83
83
@$(call E, check: formatting)
84
84
$(Q ) echo \
85
- $(filter-out $(GENERATED ) $(addprefix $(S ) src/, $(GENERATED ) ) \
86
85
$(addprefix $(S ) src/, $(RUSTLLVM_LIB_CS ) $(RUSTLLVM_OBJS_CS ) \
87
- $(RUSTLLVM_HDR ) $( PKG_3RDPARTY ) \
86
+ $(RUSTLLVM_HDR ) \
88
87
$(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \
89
- $(S)src/etc/%, \
88
+ $(wildcard $( S)src/etc/*.py) \
90
89
$(COMPILER_CRATE) \
91
90
$(COMPILER_INPUTS) \
92
91
$(STDLIB_CRATE) \
93
92
$(STDLIB_INPUTS) \
94
93
$(COMPILETEST_CRATE) \
95
94
$(COMPILETEST_INPUTS) \
96
- $(ALL_TEST_INPUTS)) \
95
+ $(ALL_TEST_INPUTS) \
97
96
| xargs -n 10 python $(S)src/etc/tidy.py
98
97
99
98
Original file line number Diff line number Diff line change 1
- .text
1
+ .text
2
2
3
3
/*
4
4
Callee save registers:
5
- ebp, ebx, esi, edi
5
+ ebp, ebx, esi, edi
6
6
7
7
Caller save registers:
8
- eax, ecx, edx
8
+ eax, ecx, edx
9
9
*/
10
-
10
+
11
11
/*
12
12
Saves a set of registers. This is used by our implementation of
13
13
getcontext.
14
14
15
15
The registers_t variable is in (%esp)
16
- */
16
+ */
17
17
18
18
// swap_registers(registers_t *oregs, registers_t *regs)
19
19
.globl swap_registers
20
20
swap_registers:
21
21
// save the old context
22
22
movl 4 (%esp ), %eax
23
- //movl %eax, 0(%eax)
24
- movl %ebx , 4 (%eax )
25
- movl %ecx , 8 (%eax )
26
- movl %edx , 12 (%eax )
27
- movl %ebp , 16 (%eax )
28
- movl %esi , 20 (%eax )
29
- movl %edi , 24 (%eax )
30
- //movl %cs, 32(%eax)
31
- //movl %ds, 34(%eax)
32
- //movl %ss, 36(%eax)
33
- //movl %es, 38(%eax)
34
- //movl %fs, 40(%eax)
35
- //movl %gs, 42(%eax)
23
+ //movl %eax, 0(%eax)
24
+ movl %ebx , 4 (%eax )
25
+ movl %ecx , 8 (%eax )
26
+ movl %edx , 12 (%eax )
27
+ movl %ebp , 16 (%eax )
28
+ movl %esi , 20 (%eax )
29
+ movl %edi , 24 (%eax )
30
+ //movl %cs, 32(%eax)
31
+ //movl %ds, 34(%eax)
32
+ //movl %ss, 36(%eax)
33
+ //movl %es, 38(%eax)
34
+ //movl %fs, 40(%eax)
35
+ //movl %gs, 42(%eax)
36
36
37
- // save the flags
38
- pushf
39
- popl %ecx
40
- movl %ecx , 44 (%eax )
37
+ // save the flags
38
+ pushf
39
+ popl %ecx
40
+ movl %ecx , 44 (%eax )
41
41
42
- // save the return address as the instruction pointer
42
+ // save the return address as the instruction pointer
43
43
// and save the stack pointer of the caller
44
44
popl %ecx
45
45
movl %esp , 28 (%eax )
46
- movl %ecx , 48 (%eax )
46
+ movl %ecx , 48 (%eax )
47
47
48
48
// restore the new context
49
49
movl 4 (%esp ), %eax
50
50
51
- movl 4 (%eax ), %ebx
52
- // save ecx for later...
53
- movl 12 (%eax ), %edx
54
- movl 16 (%eax ), %ebp
55
- movl 20 (%eax ), %esi
56
- movl 24 (%eax ), %edi
57
- movl 28 (%eax ), %esp
58
- // We can't actually change this...
59
- //movl 32(%eax), %cs
60
- //movl 34(%eax), %ds
61
- //movl 36(%eax), %ss
62
- //movl 38(%eax), %es
63
- //movl 40(%eax), %fs
64
- //movl 42(%eax), %gs
51
+ movl 4 (%eax ), %ebx
52
+ // save ecx for later...
53
+ movl 12 (%eax ), %edx
54
+ movl 16 (%eax ), %ebp
55
+ movl 20 (%eax ), %esi
56
+ movl 24 (%eax ), %edi
57
+ movl 28 (%eax ), %esp
58
+ // We can't actually change this...
59
+ //movl 32(%eax), %cs
60
+ //movl 34(%eax), %ds
61
+ //movl 36(%eax), %ss
62
+ //movl 38(%eax), %es
63
+ //movl 40(%eax), %fs
64
+ //movl 42(%eax), %gs
65
65
66
- // restore the flags
67
- movl 44 (%eax ), %ecx
68
- push %ecx
69
- popf
66
+ // restore the flags
67
+ movl 44 (%eax ), %ecx
68
+ push %ecx
69
+ popf
70
70
71
71
// ok, now we can restore ecx
72
72
movl 8 (%eax ), %ecx
73
-
73
+
74
74
// Return!
75
75
jmp *48 (%eax )
76
76
You can’t perform that action at this time.
0 commit comments