diff options
author | peter <peter@FreeBSD.org> | 2004-06-10 22:02:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-06-10 22:02:26 +0000 |
commit | d7de00696febcdcee835aaa58fbbc38ec3638c2c (patch) | |
tree | edc99b0b1c0cc6ab0becbd7416dd5d35482529ab /sys | |
parent | 0fe04edc1bf3744c4c84b927786325f4e4a4ecb9 (diff) | |
download | FreeBSD-src-d7de00696febcdcee835aaa58fbbc38ec3638c2c.zip FreeBSD-src-d7de00696febcdcee835aaa58fbbc38ec3638c2c.tar.gz |
Argh. Add the mini-stack-frame back in for mcount's benefit for syscall
stubs.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/include/asm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h index dc393b9..80720ca 100644 --- a/sys/amd64/include/asm.h +++ b/sys/amd64/include/asm.h @@ -64,10 +64,14 @@ #ifdef PROF #define ALTENTRY(x) _ENTRY(x); \ + pushq %rbp; movq %rsp,%rbp; \ call PIC_PLT(HIDENAME(mcount)); \ + popq %rbp; \ jmp 9f #define ENTRY(x) _ENTRY(x); \ + pushq %rbp; movq %rsp,%rbp; \ call PIC_PLT(HIDENAME(mcount)); \ + popq %rbp; \ 9: #else #define ALTENTRY(x) _ENTRY(x) |