diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-03-21 12:30:50 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-03-21 12:30:50 +0000 |
| commit | 48c619d0eee028b05af4e30e96770f25c5684b57 (patch) | |
| tree | 27710473a0bf4098e27e7fedd296c82899d8a87b | |
| parent | aca6858651c5ff404877a33d4d8559575d17d59a (diff) | |
Notes
| -rw-r--r-- | sys/amd64/amd64/support.S | 12 | ||||
| -rw-r--r-- | sys/amd64/amd64/support.s | 12 | ||||
| -rw-r--r-- | sys/i386/i386/support.s | 12 |
3 files changed, 30 insertions, 6 deletions
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index 5ed5780c6a835..3f606169bd07d 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.59 1998/05/11 02:13:43 dyson Exp $ + * $Id: support.s,v 1.60 1999/01/09 17:29:38 bde Exp $ */ #include "npx.h" @@ -1615,9 +1615,17 @@ ENTRY(longjmp) /* * Here for doing BB-profiling (gcc -a). - * We rely on the "bbset" instead, but need a dummy function. */ + + .data + .globl bbhead +bbhead: + .long 0 + .text NON_GPROF_ENTRY(__bb_init_func) movl 4(%esp),%eax movl $1,(%eax) + movl bbhead,%edx + movl %edx,16(%eax) + movl %eax,bbhead .byte 0xc3 /* avoid macro for `ret' */ diff --git a/sys/amd64/amd64/support.s b/sys/amd64/amd64/support.s index 5ed5780c6a835..3f606169bd07d 100644 --- a/sys/amd64/amd64/support.s +++ b/sys/amd64/amd64/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.59 1998/05/11 02:13:43 dyson Exp $ + * $Id: support.s,v 1.60 1999/01/09 17:29:38 bde Exp $ */ #include "npx.h" @@ -1615,9 +1615,17 @@ ENTRY(longjmp) /* * Here for doing BB-profiling (gcc -a). - * We rely on the "bbset" instead, but need a dummy function. */ + + .data + .globl bbhead +bbhead: + .long 0 + .text NON_GPROF_ENTRY(__bb_init_func) movl 4(%esp),%eax movl $1,(%eax) + movl bbhead,%edx + movl %edx,16(%eax) + movl %eax,bbhead .byte 0xc3 /* avoid macro for `ret' */ diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s index 5ed5780c6a835..3f606169bd07d 100644 --- a/sys/i386/i386/support.s +++ b/sys/i386/i386/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.59 1998/05/11 02:13:43 dyson Exp $ + * $Id: support.s,v 1.60 1999/01/09 17:29:38 bde Exp $ */ #include "npx.h" @@ -1615,9 +1615,17 @@ ENTRY(longjmp) /* * Here for doing BB-profiling (gcc -a). - * We rely on the "bbset" instead, but need a dummy function. */ + + .data + .globl bbhead +bbhead: + .long 0 + .text NON_GPROF_ENTRY(__bb_init_func) movl 4(%esp),%eax movl $1,(%eax) + movl bbhead,%edx + movl %edx,16(%eax) + movl %eax,bbhead .byte 0xc3 /* avoid macro for `ret' */ |
