From 53f3286e0adc10cf25a427358d8c958f6035db76 Mon Sep 17 00:00:00 2001 From: skrll Date: Sat, 13 Jul 2013 10:26:30 +0000 Subject: [PATCH] Put some common entry stuff into _ENTRY and use it. --- sys/arch/hppa/include/asm.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/arch/hppa/include/asm.h b/sys/arch/hppa/include/asm.h index c3ae0298a634..89b12ce8a2f4 100644 --- a/sys/arch/hppa/include/asm.h +++ b/sys/arch/hppa/include/asm.h @@ -1,4 +1,4 @@ -/* $NetBSD: asm.h,v 1.13 2011/02/12 16:31:32 matt Exp $ */ +/* $NetBSD: asm.h,v 1.14 2013/07/13 10:26:30 skrll Exp $ */ /* $OpenBSD: asm.h,v 1.12 2001/03/29 02:15:57 mickey Exp $ */ @@ -42,15 +42,17 @@ #define _ASM_LS_CHAR ! -#define LEAF_ENTRY_NOPROFILE(x) !\ +#define _ENTRY(x) \ ! .text ! .align 4 !\ - .export x, entry ! .label x ! .proc !\ + .export x, entry ! .label x ! .proc + +#define LEAF_ENTRY_NOPROFILE(x) !\ + _ENTRY(x) !\ .callinfo frame=0, no_calls, save_rp !\ .entry #define ENTRY_NOPROFILE(x,n) !\ - ! .text ! .align 4 !\ - .export x, entry ! .label x ! .proc !\ + _ENTRY(x) !\ .callinfo frame=n, calls, save_rp, save_sp !\ .entry