diff options
| author | David Mosberger <davidm@tiger.hpl.hp.com> | 2003-05-29 22:59:04 -0700 |
|---|---|---|
| committer | David Mosberger <davidm@tiger.hpl.hp.com> | 2003-05-29 22:59:04 -0700 |
| commit | ce2070ec2f7b7de2b143b2c5cbdae62fb8cfa056 (patch) | |
| tree | 0bdc2c29fab1f7401f130487d475d8a123863adb | |
| parent | 7c704dbc3fa83c5d53ad7a5965e232d86a6216c0 (diff) | |
ia64: Small formatting fixes.
| -rw-r--r-- | arch/ia64/kernel/ptrace.c | 26 | ||||
| -rw-r--r-- | arch/ia64/kernel/setup.c | 7 |
2 files changed, 21 insertions, 12 deletions
diff --git a/arch/ia64/kernel/ptrace.c b/arch/ia64/kernel/ptrace.c index 94ada731262c..b78a08624cd1 100644 --- a/arch/ia64/kernel/ptrace.c +++ b/arch/ia64/kernel/ptrace.c @@ -671,7 +671,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data ptr = (unsigned long *) ((unsigned long) &child->thread.fph + addr); } else if ((addr >= PT_F10) && (addr < PT_F11 + 16)) { /* scratch registers untouched by kernel (saved in pt_regs) */ - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, f10) + addr - PT_F10); + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, f10) + addr - PT_F10); } else if (addr >= PT_F12 && addr < PT_F15 + 16) { /* scratch registers untouched by kernel (saved in switch_stack) */ ptr = (unsigned long *) ((long) sw + (addr - PT_NAT_BITS - 32)); @@ -814,14 +815,17 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, r1)); break; - case PT_R2: case PT_R3: - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, r2) + addr - PT_R2); + case PT_R2: case PT_R3: + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, r2) + addr - PT_R2); break; case PT_R8: case PT_R9: case PT_R10: case PT_R11: - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, r8)+ addr - PT_R8); + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, r8)+ addr - PT_R8); break; case PT_R12: case PT_R13: - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, r12)+ addr - PT_R12); + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, r12)+ addr - PT_R12); break; case PT_R14: ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, r14)); @@ -833,7 +837,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data case PT_R20: case PT_R21: case PT_R22: case PT_R23: case PT_R24: case PT_R25: case PT_R26: case PT_R27: case PT_R28: case PT_R29: case PT_R30: case PT_R31: - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, r16) + addr - PT_R16); + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, r16) + addr - PT_R16); break; case PT_B0: ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, b0)); @@ -846,10 +851,12 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data break; case PT_F6: case PT_F6+8: case PT_F7: case PT_F7+8: case PT_F8: case PT_F8+8: case PT_F9: case PT_F9+8: - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, f6) + addr - PT_F6); + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, f6) + addr - PT_F6); break; case PT_AR_BSPSTORE: - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, ar_bspstore)); + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, ar_bspstore)); break; case PT_AR_RSC: ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, ar_rsc)); @@ -881,7 +888,8 @@ access_uarea (struct task_struct *child, unsigned long addr, unsigned long *data return -1; } } else if (addr <= PT_AR_SSD) { - ptr = (unsigned long *) ((long) pt + offsetof(struct pt_regs, ar_csd) + addr - PT_AR_CSD); + ptr = (unsigned long *) + ((long) pt + offsetof(struct pt_regs, ar_csd) + addr - PT_AR_CSD); } else { /* access debug registers */ diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index 4d7310f3e16d..2305a3a8af33 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c @@ -34,14 +34,15 @@ #include <linux/initrd.h> #include <asm/ia32.h> +#include <asm/machvec.h> +#include <asm/mca.h> #include <asm/page.h> #include <asm/pgtable.h> -#include <asm/machvec.h> #include <asm/processor.h> #include <asm/sal.h> -#include <asm/system.h> -#include <asm/mca.h> #include <asm/smp.h> +#include <asm/system.h> +#include <asm/unistd.h> #if defined(CONFIG_SMP) && (IA64_CPU_SIZE > PAGE_SIZE) # error "struct cpuinfo_ia64 too big!" |
