From bb5127aeb7f009783472f4273f532a9ddcefd827 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Wed, 21 Apr 2010 22:08:28 +0000 Subject: Clean up using FIQ as ctrl-c checker so you can break in from the debugger. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10390 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/GdbDebugAgent/Arm/ExceptionSupport.ARMv6.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'EmbeddedPkg/Library/GdbDebugAgent/Arm/ExceptionSupport.ARMv6.asm') diff --git a/EmbeddedPkg/Library/GdbDebugAgent/Arm/ExceptionSupport.ARMv6.asm b/EmbeddedPkg/Library/GdbDebugAgent/Arm/ExceptionSupport.ARMv6.asm index 3dccf5b077..346867149a 100755 --- a/EmbeddedPkg/Library/GdbDebugAgent/Arm/ExceptionSupport.ARMv6.asm +++ b/EmbeddedPkg/Library/GdbDebugAgent/Arm/ExceptionSupport.ARMv6.asm @@ -95,7 +95,7 @@ Fiq UndefinedInstructionEntry sub LR, LR, #4 ; Only -2 for Thumb, adjust in CommonExceptionEntry srsfd #0x13! ; Store return state on SVC stack - cps #0x13 ; Switch to SVC for common stack + cpsid f, #0x13 ; Switch to SVC for common stack stmfd SP!,{LR} ; Store the link register for the current mode sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR stmfd SP!,{R0-R12} ; Store the register state @@ -107,7 +107,7 @@ UndefinedInstructionEntry SoftwareInterruptEntry sub LR, LR, #4 ; Only -2 for Thumb, adjust in CommonExceptionEntry srsfd #0x13! ; Store return state on SVC stack - ; We are already in SVC mode + cpsid f ; We are already in SVC mode stmfd SP!,{LR} ; Store the link register for the current mode sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR stmfd SP!,{R0-R12} ; Store the register state @@ -119,7 +119,7 @@ SoftwareInterruptEntry PrefetchAbortEntry sub LR,LR,#4 srsfd #0x13! ; Store return state on SVC stack - cps #0x13 ; Switch to SVC for common stack + cpsid f, #0x13 ; Switch to SVC for common stack stmfd SP!,{LR} ; Store the link register for the current mode sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR stmfd SP!,{R0-R12} ; Store the register state @@ -131,7 +131,7 @@ PrefetchAbortEntry DataAbortEntry sub LR,LR,#8 srsfd #0x13! ; Store return state on SVC stack - cps #0x13 ; Switch to SVC for common stack + cpsid f, #0x13 ; Switch to SVC for common stack stmfd SP!,{LR} ; Store the link register for the current mode sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR stmfd SP!,{R0-R12} ; Store the register state @@ -142,7 +142,7 @@ DataAbortEntry ReservedExceptionEntry srsfd #0x13! ; Store return state on SVC stack - cps #0x13 ; Switch to SVC for common stack + cpsid f, #0x13 ; Switch to SVC for common stack stmfd SP!,{LR} ; Store the link register for the current mode sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR stmfd SP!,{R0-R12} ; Store the register state -- cgit v1.2.3