From ae5c857ba49f6cf5b39b4f148573b25910bd1cd4 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 1 Apr 1998 22:59:25 +0000 Subject: [PATCH] Remove redundant .req statements. Make various entry points non-profiling. --- sys/arch/arm32/arm32/exception.S | 22 +++++++--------------- sys/arch/arm32/arm32/setcpsr.S | 15 +++------------ 2 files changed, 10 insertions(+), 27 deletions(-) diff --git a/sys/arch/arm32/arm32/exception.S b/sys/arch/arm32/arm32/exception.S index 3e9404c13236..74fef124b26a 100644 --- a/sys/arch/arm32/arm32/exception.S +++ b/sys/arch/arm32/arm32/exception.S @@ -1,4 +1,4 @@ -/* $NetBSD: exception.S,v 1.11 1997/10/14 10:18:45 mark Exp $ */ +/* $NetBSD: exception.S,v 1.12 1998/04/01 22:59:25 mark Exp $ */ /* * Copyright (c) 1994-1997 Mark Brinicombe. @@ -46,14 +46,11 @@ */ #include "ipkdb.h" +#include #include #include #include "assym.h" -sp .req r13 -lr .req r14 -pc .req r15 - .text .align 0 @@ -111,8 +108,7 @@ do_exit: /* entry point for CPU data abort */ - .global data_abort_entry -data_abort_entry: +ASENTRY_NP(data_abort_entry) sub lr, lr, #0x00000008 /* Adjust the lr */ PUSHFRAMEINSVC /* Push trap frame and switch */ @@ -146,8 +142,7 @@ abortdatamsg: .align 0 - .global prefetch_abort_entry -prefetch_abort_entry: +ASENTRY_NP(prefetch_abort_entry) sub lr, lr, #0x00000004 /* Adjust the lr */ PUSHFRAMEINSVC @@ -187,8 +182,7 @@ abortprefetchmsg: * Main entry point for the SWI vector */ - .global swi_entry -swi_entry: +ASENTRY_NP(swi_entry) PUSHFRAME sub r0, lr, #0x00000004 /* Get the address of the SWI */ @@ -232,8 +226,7 @@ do_swi_ast: * entry from the vector. */ - .global undefined_entry -undefined_entry: +ASENTRY_NP(undefined_entry) #if NIPKDB > 0 /* * IPKDB must be hooked in at the earliest possible entry point. @@ -371,8 +364,7 @@ Lundefined_handler_indirection: * a standard trap frame and is called in SVC mode. */ - .global _undefinedinstruction_bounce -_undefinedinstruction_bounce: +ENTRY_NP(undefinedinstruction_bounce) PUSHFRAMEINSVC mov r0, sp bl _undefinedinstruction diff --git a/sys/arch/arm32/arm32/setcpsr.S b/sys/arch/arm32/arm32/setcpsr.S index 19f9231a8527..962d07f24bc0 100644 --- a/sys/arch/arm32/arm32/setcpsr.S +++ b/sys/arch/arm32/arm32/setcpsr.S @@ -1,4 +1,4 @@ -/* $NetBSD: setcpsr.S,v 1.3 1997/10/14 09:54:38 mark Exp $ */ +/* $NetBSD: setcpsr.S,v 1.4 1998/04/01 22:59:25 mark Exp $ */ /* * Copyright (c) 1994 Mark Brinicombe. @@ -49,22 +49,13 @@ #include -fp .req r11 -ip .req r12 -sp .req r13 -lr .req r14 -pc .req r15 - -.text - - /* Sets and clears bits in the CPSR register * * r0 - bic mask * r1 - eor mask */ -ENTRY(SetCPSR) +ENTRY_NP(SetCPSR) mrs r3, cpsr_all /* Set the CPSR */ bic r2, r3, r0 eor r2, r2, r1 @@ -80,7 +71,7 @@ ENTRY(SetCPSR) * Returns the CPSR in r0 */ -ENTRY(GetCPSR) +ENTRY_NP(GetCPSR) mrs r0, cpsr_all /* Get the CPSR */ mov pc, lr