summaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorpppp <[email protected]>2022-02-10 16:51:52 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:51:52 +0300
commit2717b42639e035e1da0e7963a61d9fb71a3abcee (patch)
tree3d68e5688b955c86211b6f5d8fcc8607a3acde34 /util/system
parenta0d9be3906bdc1eb59c1a3ff64c3f5929ab376e9 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/context_i686.asm42
1 files changed, 21 insertions, 21 deletions
diff --git a/util/system/context_i686.asm b/util/system/context_i686.asm
index 11f8cecc8e5..dc864bc31ed 100644
--- a/util/system/context_i686.asm
+++ b/util/system/context_i686.asm
@@ -1,23 +1,23 @@
- [bits 32]
-
- %define MJB_BX 0
- %define MJB_SI 1
- %define MJB_DI 2
- %define MJB_BP 3
- %define MJB_SP 4
- %define MJB_PC 5
- %define MJB_RSP MJB_SP
- %define MJB_SIZE 24
-
- %define LINKAGE 4
- %define PCOFF 0
- %define PTR_SIZE 4
-
- %define PARMS LINKAGE
- %define JMPBUF PARMS
- %define JBUF PARMS
- %define VAL JBUF + PTR_SIZE
+ [bits 32]
+
+ %define MJB_BX 0
+ %define MJB_SI 1
+ %define MJB_DI 2
+ %define MJB_BP 3
+ %define MJB_SP 4
+ %define MJB_PC 5
+ %define MJB_RSP MJB_SP
+ %define MJB_SIZE 24
+
+ %define LINKAGE 4
+ %define PCOFF 0
+ %define PTR_SIZE 4
+ %define PARMS LINKAGE
+ %define JMPBUF PARMS
+ %define JBUF PARMS
+ %define VAL JBUF + PTR_SIZE
+
EXPORT __mylongjmp
mov ecx, [esp + JBUF]
mov eax, [esp + VAL]
@@ -27,8 +27,8 @@ EXPORT __mylongjmp
mov edi, [ecx + MJB_DI*4]
mov ebp, [ecx + MJB_BP*4]
mov esp, [ecx + MJB_SP*4]
- jmp edx
-
+ jmp edx
+
EXPORT __mysetjmp
mov eax, [esp + JMPBUF]
mov [eax + MJB_BX*4], ebx