summaryrefslogtreecommitdiff
path: root/packaging/0012-16-byte-Stack-Aligned-StubDispatchFixupStub.patch
blob: b3d0575fa8a31962eb1de456619247843f93f9ef (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
From 960d37a40a4c2d95df3c39b2e161631b1897eb52 Mon Sep 17 00:00:00 2001
From: Jonghyun Park <parjong@gmail.com>
Date: Wed, 20 Sep 2017 11:21:21 +0900
Subject: [PATCH 12/12] 16-byte Stack Aligned StubDispatchFixupStub

---
 src/vm/i386/asmhelpers.S | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vm/i386/asmhelpers.S b/src/vm/i386/asmhelpers.S
index 75f4a26..480eb2d 100644
--- a/src/vm/i386/asmhelpers.S
+++ b/src/vm/i386/asmhelpers.S
@@ -757,13 +757,16 @@ NESTED_ENTRY StubDispatchFixupStub, _TEXT, NoHandler
 .att_syntax
     pushl       $0
     pushl       $0
+    pushl       $0
 .intel_syntax noprefix
 
     push        eax             // siteAddrForRegisterIndirect (for tailcalls)
     push        esi             // pTransitionBlock
 
+    CHECK_STACK_ALIGNMENT
     call        C_FUNC(StubDispatchFixupWorker)
 
+    mov         esp, esi
     STUB_EPILOG
 
 PATCH_LABEL StubDispatchFixupPatchLabel
-- 
2.7.4