Module Name: src Committed By: matt Date: Mon Jan 28 23:47:38 UTC 2013
Modified Files: src/sys/arch/arm/include: asm.h Log Message: Add a RETr(r) macro (indirect return through register r). To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/include/asm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/include/asm.h diff -u src/sys/arch/arm/include/asm.h:1.16 src/sys/arch/arm/include/asm.h:1.17 --- src/sys/arch/arm/include/asm.h:1.16 Sat Sep 1 14:46:25 2012 +++ src/sys/arch/arm/include/asm.h Mon Jan 28 23:47:38 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: asm.h,v 1.16 2012/09/01 14:46:25 matt Exp $ */ +/* $NetBSD: asm.h,v 1.17 2013/01/28 23:47:38 matt Exp $ */ /* * Copyright (c) 1990 The Regents of the University of California. @@ -170,9 +170,11 @@ #if defined (_ARM_ARCH_4T) # define RET bx lr +# define RETr(r) bx r # define RETc(c) __CONCAT(bx,c) lr #else # define RET mov pc, lr +# define RETr(r) mov pc, r # define RETc(c) __CONCAT(mov,c) pc, lr #endif