fiq_subr.S (139735) | fiq_subr.S (248361) |
---|---|
1/* $NetBSD: fiq_subr.S,v 1.3 2002/04/12 18:50:31 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 2001 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 25 unchanged lines hidden (view full) --- 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * 37 */ 38 39 40#include <machine/armreg.h> 41#include <machine/asm.h> | 1/* $NetBSD: fiq_subr.S,v 1.3 2002/04/12 18:50:31 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 2001 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 25 unchanged lines hidden (view full) --- 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * 37 */ 38 39 40#include <machine/armreg.h> 41#include <machine/asm.h> |
42__FBSDID("$FreeBSD: head/sys/arm/arm/fiq_subr.S 139735 2005-01-05 21:58:49Z imp $"); | 42__FBSDID("$FreeBSD: head/sys/arm/arm/fiq_subr.S 248361 2013-03-16 02:48:49Z andrew $"); |
43 44/* 45 * MODE_CHANGE_NOP should be inserted between a mode change and a 46 * banked register (R8--R15) access. 47 */ 48#if defined(CPU_ARM2) || defined(CPU_ARM250) 49#define MODE_CHANGE_NOP mov r0, r0 50#else --- 18 unchanged lines hidden (view full) --- 69 */ 70ENTRY(fiq_getregs) 71 SWITCH_TO_FIQ_MODE 72 73 stmia r0, {r8-r13} 74 75 BACK_TO_SVC_MODE 76 RET | 43 44/* 45 * MODE_CHANGE_NOP should be inserted between a mode change and a 46 * banked register (R8--R15) access. 47 */ 48#if defined(CPU_ARM2) || defined(CPU_ARM250) 49#define MODE_CHANGE_NOP mov r0, r0 50#else --- 18 unchanged lines hidden (view full) --- 69 */ 70ENTRY(fiq_getregs) 71 SWITCH_TO_FIQ_MODE 72 73 stmia r0, {r8-r13} 74 75 BACK_TO_SVC_MODE 76 RET |
77END(fiq_getregs) |
|
77 78/* 79 * fiq_setregs: 80 * 81 * Load the FIQ mode banked registers from the fiqhandler 82 * structure. 83 */ 84ENTRY(fiq_setregs) 85 SWITCH_TO_FIQ_MODE 86 87 ldmia r0, {r8-r13} 88 89 BACK_TO_SVC_MODE 90 RET | 78 79/* 80 * fiq_setregs: 81 * 82 * Load the FIQ mode banked registers from the fiqhandler 83 * structure. 84 */ 85ENTRY(fiq_setregs) 86 SWITCH_TO_FIQ_MODE 87 88 ldmia r0, {r8-r13} 89 90 BACK_TO_SVC_MODE 91 RET |
92END(fiq_setregs) |
|
91 92/* 93 * fiq_nullhandler: 94 * 95 * Null handler copied down to the FIQ vector when the last 96 * FIQ handler is removed. 97 */ 98 .global _C_LABEL(fiq_nullhandler), _C_LABEL(fiq_nullhandler_end) 99_C_LABEL(fiq_nullhandler): 100 subs pc, lr, #4 101_C_LABEL(fiq_nullhandler_end): | 93 94/* 95 * fiq_nullhandler: 96 * 97 * Null handler copied down to the FIQ vector when the last 98 * FIQ handler is removed. 99 */ 100 .global _C_LABEL(fiq_nullhandler), _C_LABEL(fiq_nullhandler_end) 101_C_LABEL(fiq_nullhandler): 102 subs pc, lr, #4 103_C_LABEL(fiq_nullhandler_end): |