diff options
| author | 2012-12-22 21:07:50 +0000 | |
|---|---|---|
| committer | 2012-12-22 21:07:50 +0000 | |
| commit | 89245e6671af7354fb185d8d6db0345c1cf932d3 (patch) | |
| tree | 725fb04bb54105a33db4932d7e6332a265fafabb /lib/libc | |
| parent | Add support for U3 brigdes present in macppc G5 machines. Many thanks (diff) | |
| download | wireguard-openbsd-89245e6671af7354fb185d8d6db0345c1cf932d3.tar.xz wireguard-openbsd-89245e6671af7354fb185d8d6db0345c1cf932d3.zip | |
Make sure the stack is 16-byte aligned otherwise the use of certain SSE
instructions will fail.
ok guenther@
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/arch/i386/sys/tfork_thread.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/arch/i386/sys/tfork_thread.S b/lib/libc/arch/i386/sys/tfork_thread.S index ee82d061265..119cc0d3db3 100644 --- a/lib/libc/arch/i386/sys/tfork_thread.S +++ b/lib/libc/arch/i386/sys/tfork_thread.S @@ -1,4 +1,4 @@ -/* $OpenBSD: tfork_thread.S,v 1.4 2012/08/22 17:19:34 pascal Exp $ */ +/* $OpenBSD: tfork_thread.S,v 1.5 2012/12/22 21:07:50 kettenis Exp $ */ /*- * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org> * All rights reserved. @@ -88,6 +88,9 @@ ENTRY(__tfork_thread) */ 1: xorl %ebp, %ebp # mark outermost frame + subl $4, %esp # align stack + andl $~15, %esp + addl $4, %esp pushl %edi # push start argument call *%esi addl $4, %esp |
