From a52004709552d09d0ccc90f0556583c0a19dee00 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 10 Jun 2004 22:02:26 +0000 Subject: [PATCH] Argh. Add the mini-stack-frame back in for mcount's benefit for syscall stubs. --- sys/amd64/include/asm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h index dc393b90fcb..80720caefe0 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)