diff options
author | Michal Simek <monstr@monstr.eu> | 2009-04-16 04:58:47 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-04-23 10:09:17 -0400 |
commit | ac3efab50621bd6d01e5b40f3134dc7824788390 (patch) | |
tree | ddca584e69e6e1b726695169c8d5cec8e8160482 /arch/microblaze/include | |
parent | ceb8944b3a3dd3ec4094a476a44802cc32c4fc02 (diff) |
microblaze: Rename kernel_mode to pt_mode in pt_regs
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/processor.h | 2 | ||||
-rw-r--r-- | arch/microblaze/include/asm/ptrace.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/include/asm/processor.h index d8e15434ba21..4bed76d0a6c4 100644 --- a/arch/microblaze/include/asm/processor.h +++ b/arch/microblaze/include/asm/processor.h | |||
@@ -62,7 +62,7 @@ static inline void start_thread(struct pt_regs *regs, | |||
62 | { | 62 | { |
63 | regs->pc = pc; | 63 | regs->pc = pc; |
64 | regs->r1 = usp; | 64 | regs->r1 = usp; |
65 | regs->kernel_mode = 0; | 65 | regs->pt_mode = 0; |
66 | } | 66 | } |
67 | 67 | ||
68 | /* Free all resources held by a thread. */ | 68 | /* Free all resources held by a thread. */ |
diff --git a/arch/microblaze/include/asm/ptrace.h b/arch/microblaze/include/asm/ptrace.h index f1f03486428a..55015bce5e47 100644 --- a/arch/microblaze/include/asm/ptrace.h +++ b/arch/microblaze/include/asm/ptrace.h | |||
@@ -52,10 +52,10 @@ struct pt_regs { | |||
52 | microblaze_reg_t ear; | 52 | microblaze_reg_t ear; |
53 | microblaze_reg_t esr; | 53 | microblaze_reg_t esr; |
54 | microblaze_reg_t fsr; | 54 | microblaze_reg_t fsr; |
55 | int kernel_mode; | 55 | int pt_mode; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | #define kernel_mode(regs) ((regs)->kernel_mode) | 58 | #define kernel_mode(regs) ((regs)->pt_mode) |
59 | #define user_mode(regs) (!kernel_mode(regs)) | 59 | #define user_mode(regs) (!kernel_mode(regs)) |
60 | 60 | ||
61 | #define instruction_pointer(regs) ((regs)->pc) | 61 | #define instruction_pointer(regs) ((regs)->pc) |