summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-01-13 15:54:17 +0000
committerandrew <andrew@FreeBSD.org>2016-01-13 15:54:17 +0000
commit8298ebeec0910da6d4fb708e762ffc9738a4df64 (patch)
tree2f5baf1b6f5b331cf40ca78dcb90f8d78f9170aa /lib
parenta5374736080aa34caf5246a38d92b5fd4c3d4d4f (diff)
downloadFreeBSD-src-8298ebeec0910da6d4fb708e762ffc9738a4df64.zip
FreeBSD-src-8298ebeec0910da6d4fb708e762ffc9738a4df64.tar.gz
Remove the compat code to handle the kernel passing us an unalinged
stackpointer. Userland expects the kernel to pass it an aligned sp and pass a pointer to the arguments in x0. The kernel side was updated in r289502, 3 months ago. Sponsored by: ABT Systems Ltd
Diffstat (limited to 'lib')
-rw-r--r--lib/csu/aarch64/crt1.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/csu/aarch64/crt1.c b/lib/csu/aarch64/crt1.c
index ed24f46..40279b7 100644
--- a/lib/csu/aarch64/crt1.c
+++ b/lib/csu/aarch64/crt1.c
@@ -54,11 +54,7 @@ __asm(" .text \n"
" .align 0 \n"
" .globl _start \n"
" _start: \n"
-/* TODO: Remove this when the kernel correctly aligns the stack */
-" cbnz x0, 1f \n" /* Are we using a new kernel? */
-" mov x0, sp \n" /* No, load the args from sp */
-" and sp, x0, #~0xf \n" /* And align the stack */
-"1: mov x3, x2 \n" /* cleanup */
+" mov x3, x2 \n" /* cleanup */
" add x1, x0, #8 \n" /* load argv */
" ldr x0, [x0] \n" /* load argc */
" add x2, x1, x0, lsl #3 \n" /* env is after argv */
OpenPOWER on IntegriCloud