summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arc/include/profile.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/arc/include/profile.h b/sys/arch/arc/include/profile.h
index b00430cd56c..b2e28b0d700 100644
--- a/sys/arch/arc/include/profile.h
+++ b/sys/arch/arc/include/profile.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: profile.h,v 1.2 1996/07/30 20:24:28 pefo Exp $ */
+/* $OpenBSD: profile.h,v 1.3 1997/05/11 16:24:13 pefo Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -40,6 +40,8 @@
#define _MCOUNT_DECL static void ___mcount
+/*XXX The cprestore instruction is a "dummy" to shut up as(1). */
+
#define MCOUNT \
__asm(".globl _mcount;" \
".type _mcount,@function;" \
@@ -47,6 +49,7 @@
".set noreorder;" \
".set noat;" \
".cpload $25;" \
+ ".cprestore 4;" \
"sw $4,8($29);" \
"sw $5,12($29);" \
"sw $6,16($29);" \