Skip to content

Commit

Permalink
[PATCH] ARM: Remove SVC_MODE definition
Browse files Browse the repository at this point in the history
SVC_MODE reflects the MODE_SVC definition in asm/ptrace.h.  Use
the asm/ptrace.h definition instead, and remove SVC_MODE.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
  • Loading branch information
Russell King committed Apr 26, 2005
1 parent e0f9f4a commit acaca3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion arch/arm/kernel/entry-armv.S
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ vector_\name:
@
mrs r13, cpsr
bic r13, r13, #MODE_MASK
orr r13, r13, #MODE_SVC
orr r13, r13, #SVC_MODE
msr spsr_cxsf, r13 @ switch to SVC_32 mode

and lr, lr, #15
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/kernel/entry-header.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
#include <asm/arch/irqs.h>
#include <asm/arch/entry-macro.S>

#ifndef MODE_SVC
#define MODE_SVC 0x13
#endif

.macro zero_fp
#ifdef CONFIG_FRAME_POINTER
mov fp, #0
Expand Down

0 comments on commit acaca3c

Please sign in to comment.