aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-03-21 12:30:50 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-03-21 12:30:50 +0000
commit48c619d0eee028b05af4e30e96770f25c5684b57 (patch)
tree27710473a0bf4098e27e7fedd296c82899d8a87b
parentaca6858651c5ff404877a33d4d8559575d17d59a (diff)
Notes
-rw-r--r--sys/amd64/amd64/support.S12
-rw-r--r--sys/amd64/amd64/support.s12
-rw-r--r--sys/i386/i386/support.s12
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' */