ref: db6f43d30083f873e340947829492303b4f9d057
parent: 18a02fb4c1dc435eb40d8e51c50611e2122333ee
author: Ori Bernstein <[email protected]>
date: Fri Jan 10 13:30:27 EST 2014
Handle alignment correctly.
--- a/libstd/util.s
+++ b/libstd/util.s
@@ -19,9 +19,9 @@
subq %rcx,%rsp /* get stack */
movq %rsp,%rdi /* dest */
movq %rsp,%rax /* ret val */
- subq $16,%rsp /* "unpop" the args */
subq $1,%rsp /* nul */
andq $(~15),%rsp /* align */
+ subq $16,%rsp /* "unpop" the args */
cld
rep movsb