tDitto. - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2f2df5e02ef22c9727ae2b8269d5c76a061d296f
(DIR) parent 2f05c0e86db5b0362ce0cc2e4a6d3a8fcd3a5827
(HTM) Author: rsc <devnull@localhost>
Date: Sun, 9 May 2004 16:12:46 +0000
Ditto.
Diffstat:
M src/libsec/386/md5block.spp | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
---
(DIR) diff --git a/src/libsec/386/md5block.spp b/src/libsec/386/md5block.spp
t@@ -102,14 +102,16 @@
orl B, %edi;\
xorl C, %edi;\
-#define DATA 8
-#define LEN 12
-#define STATE 16
+#define STACKSIZE 20
-#define EDATA (-4)
-#define OLDEBX (-8)
-#define OLDESI (-12)
-#define OLDEDI (-16)
+#define DATA (STACKSIZE+8)
+#define LEN (STACKSIZE+12)
+#define STATE (STACKSIZE+16)
+
+#define EDATA (STACKSIZE-4)
+#define OLDEBX (STACKSIZE-8)
+#define OLDESI (STACKSIZE-12)
+#define OLDEDI (STACKSIZE-16)
.text
t@@ -120,6 +122,7 @@
/* Prelude */
pushl %ebp
+ subl $(STACKSIZE), %esp
movl %ebx, OLDEBX(%esp)
movl %esi, OLDESI(%esp)
movl %edi, OLDEDI(%esp)
t@@ -235,7 +238,7 @@ mainloop:
movl OLDEBX(%esp), %ebx
movl OLDESI(%esp), %esi
movl OLDEDI(%esp), %edi
- movl %esp, %ebp
- leave
+ addl $(STACKSIZE), %esp
+ popl %ebp
ret