repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git]
/
lib
/
libc
/
arch
/
x86_64
/
gen
/
alloca.S
blob
48a9becd61b87caf90e3a3e69acd2a0bceeca0d4
1
/* $NetBSD$ */
2
3
#include <machine/asm.h>
4
5
#if defined(LIBC_SCCS)
6
RCSID("$NetBSD: alloca.S,v 1.5 1997/07/16 14:37:14 christos Exp $")
7
#endif
8
9
ENTRY(alloca)
10
popq %rdx
11
movq %rsp,%rcx
12
addq $15,%rdi /* round up to 16 bytes */
13
andq $~15,%rdi
14
subq %rdi,%rsp
15
movq %rsp,%rax
16
jmp *%rdx