Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Don't save r4 since we don't use it.
details: https://anonhg.NetBSD.org/src/rev/4360a039dcfe
branches: trunk
changeset: 331540:4360a039dcfe
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 13 22:16:24 2014 +0000
description:
Don't save r4 since we don't use it.
diffstat:
sys/arch/arm/include/profile.h | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (55 lines):
diff -r 1d10f59e10a0 -r 4360a039dcfe sys/arch/arm/include/profile.h
--- a/sys/arch/arm/include/profile.h Wed Aug 13 21:41:32 2014 +0000
+++ b/sys/arch/arm/include/profile.h Wed Aug 13 22:16:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.h,v 1.14 2014/05/11 02:02:14 joerg Exp $ */
+/* $NetBSD: profile.h,v 1.15 2014/08/13 22:16:24 matt Exp $ */
/*
* Copyright (c) 2001 Ben Harris
@@ -90,10 +90,10 @@
/* \
* Preserve registers that are trashed during mcount \
*/ \
- __asm("push {r0-r4, ip, lr}"); \
+ __asm("push {r0-r3, ip, lr}"); \
__asm(".cfi_def_cfa_offset 24"); \
__asm(".cfi_offset 14, -4"); \
- __asm(".cfi_offset 4, -8"); \
+ __asm(".cfi_offset 12, -8"); \
__asm(".cfi_offset 3, -12"); \
__asm(".cfi_offset 2, -16"); \
__asm(".cfi_offset 1, -20"); \
@@ -116,7 +116,7 @@
/* \
* Restore registers that were trashed during mcount \
*/ \
- __asm("pop {r0-r4, lr, pc}"); \
+ __asm("pop {r0-r3, lr, pc}"); \
__asm(".cfi_endproc"); \
__asm(".size " MCOUNT_ASM_NAME ", .-" MCOUNT_ASM_NAME);
#else
@@ -132,11 +132,11 @@
/* \
* Preserve registers that are trashed during mcount \
*/ \
- __asm("push {r0-r4, ip, lr}"); \
- __asm(".save {r0-r4, lr}"); \
+ __asm("push {r0-r3, ip, lr}"); \
+ __asm(".save {r0-r3, lr}"); \
__asm(".cfi_def_cfa_offset 24"); \
__asm(".cfi_offset 14, -4"); \
- __asm(".cfi_offset 4, -8"); \
+ __asm(".cfi_offset 12, -8"); \
__asm(".cfi_offset 3, -12"); \
__asm(".cfi_offset 2, -16"); \
__asm(".cfi_offset 1, -20"); \
@@ -159,7 +159,7 @@
/* \
* Restore registers that were trashed during mcount \
*/ \
- __asm("pop {r0-r4, lr, pc}"); \
+ __asm("pop {r0-r3, lr, pc}"); \
__asm(".cfi_endproc"); \
__asm(".fnend"); \
__asm(".size " MCOUNT_ASM_NAME ", .-" MCOUNT_ASM_NAME);
Home |
Main Index |
Thread Index |
Old Index