$OpenBSD: patch-js_src_ctypes_libffi_src_x86_freebsd_S,v 1.1 2013/04/06 14:41:17 landry Exp $
--- js/src/ctypes/libffi/src/x86/freebsd.S.orig	Sat Apr  6 16:24:19 2013
+++ js/src/ctypes/libffi/src/x86/freebsd.S	Sat Apr  6 16:24:57 2013
@@ -49,6 +49,9 @@ ffi_call_SYSV:
 	movl  16(%ebp),%ecx
 	subl  %ecx,%esp
 
+	/* Align the stack pointer to 16-bytes */
+	andl  $0xfffffff0, %esp
+
 	movl  %esp,%eax
 
 	/* Place all of the ffi_prep_args in position  */
