summaryrefslogtreecommitdiffstats
path: root/util/system/context_i686.asm
diff options
context:
space:
mode:
authordenplusplus <[email protected]>2022-02-10 16:47:34 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:34 +0300
commit57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (patch)
treecc63639f8e502db19a82c20e2861c6d1edbf9fea /util/system/context_i686.asm
parent464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/context_i686.asm')
-rw-r--r--util/system/context_i686.asm38
1 files changed, 19 insertions, 19 deletions
diff --git a/util/system/context_i686.asm b/util/system/context_i686.asm
index 11f8cecc8e5..6a334981ba8 100644
--- a/util/system/context_i686.asm
+++ b/util/system/context_i686.asm
@@ -19,25 +19,25 @@
%define VAL JBUF + PTR_SIZE
EXPORT __mylongjmp
- mov ecx, [esp + JBUF]
- mov eax, [esp + VAL]
- mov edx, [ecx + MJB_PC*4]
- mov ebx, [ecx + MJB_BX*4]
- mov esi, [ecx + MJB_SI*4]
- mov edi, [ecx + MJB_DI*4]
- mov ebp, [ecx + MJB_BP*4]
- mov esp, [ecx + MJB_SP*4]
+ mov ecx, [esp + JBUF]
+ mov eax, [esp + VAL]
+ mov edx, [ecx + MJB_PC*4]
+ mov ebx, [ecx + MJB_BX*4]
+ mov esi, [ecx + MJB_SI*4]
+ mov edi, [ecx + MJB_DI*4]
+ mov ebp, [ecx + MJB_BP*4]
+ mov esp, [ecx + MJB_SP*4]
jmp edx
EXPORT __mysetjmp
- mov eax, [esp + JMPBUF]
- mov [eax + MJB_BX*4], ebx
- mov [eax + MJB_SI*4], esi
- mov [eax + MJB_DI*4], edi
- lea ecx, [esp + JMPBUF]
- mov [eax + MJB_SP*4], ecx
- mov ecx, [esp + PCOFF]
- mov [eax + MJB_PC*4], ecx
- mov [eax + MJB_BP*4], ebp
- xor eax, eax
- ret
+ mov eax, [esp + JMPBUF]
+ mov [eax + MJB_BX*4], ebx
+ mov [eax + MJB_SI*4], esi
+ mov [eax + MJB_DI*4], edi
+ lea ecx, [esp + JMPBUF]
+ mov [eax + MJB_SP*4], ecx
+ mov ecx, [esp + PCOFF]
+ mov [eax + MJB_PC*4], ecx
+ mov [eax + MJB_BP*4], ebp
+ xor eax, eax
+ ret