Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/include Add ELF support.
details: https://anonhg.NetBSD.org/src/rev/1b49bea98c7d
branches: trunk
changeset: 494095:1b49bea98c7d
user: matt <matt%NetBSD.org@localhost>
date: Sat Jul 01 06:42:54 2000 +0000
description:
Add ELF support.
diffstat:
sys/arch/vax/include/profile.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 39ee27e6f91a -r 1b49bea98c7d sys/arch/vax/include/profile.h
--- a/sys/arch/vax/include/profile.h Sat Jul 01 06:42:06 2000 +0000
+++ b/sys/arch/vax/include/profile.h Sat Jul 01 06:42:54 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.h,v 1.6 1997/11/05 04:23:45 thorpej Exp $ */
+/* $NetBSD: profile.h,v 1.7 2000/07/01 06:42:54 matt Exp $ */
/*
* Copyright (c) 1992 The Regents of the University of California.
* All rights reserved.
@@ -45,8 +45,13 @@
* push previous pc _and_ tell calls that it is only one argument
* to __mcount, so that our return address won't get popped from stack.
*/
+#ifdef __ELF__
+#define MCOUNT \
+__asm__(".text; .globl __mcount; __mcount: pushl 16(fp); calls $1,_mcount; rsb");
+#else
#define MCOUNT \
__asm__(".text; .globl mcount; mcount: pushl 16(fp); calls $1,__mcount; rsb");
+#endif
#ifdef _KERNEL
/*
Home |
Main Index |
Thread Index |
Old Index