diff options
author | dfr <dfr@FreeBSD.org> | 2001-08-21 16:53:23 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2001-08-21 16:53:23 +0000 |
commit | d280a62e1c10e4f24b154b5c3b59c0c1b92f739f (patch) | |
tree | 8678a7e90f26fe8895285d0773d2ce2224d52be5 /lib/csu/ia64 | |
parent | cf9d9a36e74eb84e3862d971d304377261516114 (diff) | |
download | FreeBSD-src-d280a62e1c10e4f24b154b5c3b59c0c1b92f739f.zip FreeBSD-src-d280a62e1c10e4f24b154b5c3b59c0c1b92f739f.tar.gz |
Make sure stack is aligned to 16 bytes.
Diffstat (limited to 'lib/csu/ia64')
-rw-r--r-- | lib/csu/ia64/crt1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/csu/ia64/crt1.c b/lib/csu/ia64/crt1.c index 4f59233..16efd37 100644 --- a/lib/csu/ia64/crt1.c +++ b/lib/csu/ia64/crt1.c @@ -65,10 +65,13 @@ __asm (" .global _start .proc _start _start: - alloc r16=ar.pfs,0,0,3,0 ;; + alloc r14=ar.pfs,0,0,3,0 ;; mov out0=sp mov out1=r14 mov out2=r15 + mov r14=15 ;; + andcm sp=sp,r14 ;; + add sp=-16,sp movl gp=_GLOBAL_OFFSET_TABLE_ br.call.sptk rp=_start2 .endp _start"); |