As done already for x86_64 [1] and aarch64 [2]. It fixes
misc/tst-misalign-clone on alpha.
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=27902
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=27939
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
/* Sanity check arguments. */
ldiq v0, EINVAL
beq a0, SYSCALL_ERROR_LABEL /* no NULL function pointers */
+ /* Align stack. */
+ bic a1, 15, a1
beq a1, SYSCALL_ERROR_LABEL /* no NULL stack pointers */
/* Save the fn ptr and arg on the new stack. */