File tree Expand file tree Collapse file tree 2 files changed +30
-30
lines changed Expand file tree Collapse file tree 2 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6a0d86c75472e1d8c4ad7bfc7d5e642cec48ff4d
2
+ refs/heads/master: d3e865438f65e215332311310c25f9019d26e130
Original file line number Diff line number Diff line change @@ -20,19 +20,19 @@ The registers_t variable is in (%esp)
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
37
// save the flags
38
38
pushf
@@ -48,29 +48,29 @@ swap_registers:
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
66
// restore the flags
67
67
movl 44 (%eax ), %ecx
68
68
push %ecx
69
69
popf
70
70
71
71
// ok, now we can restore ecx
72
- movl 8 (%eax ), %ecx
73
-
72
+ // movl 8(%eax), %ecx
73
+
74
74
// Return!
75
75
jmp *48 (%eax )
76
76
You can’t perform that action at this time.
0 commit comments