Imported Upstream version 1.2
[platform/upstream/libunwind.git] / src / hppa / Gresume.c
index 92d506d..f6bc023 100644 (file)
@@ -1,6 +1,6 @@
 /* libunwind - a platform-independent unwind library
    Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
-       Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
+        Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
 
 This file is part of libunwind.
 
@@ -40,11 +40,11 @@ my_rt_sigreturn (void *new_sp, int in_syscall)
   register unsigned long r20 __asm__ ("r20") = SYS_rt_sigreturn;
 
   __asm__ __volatile__ ("copy %0, %%sp\n"
-                       "be,l 0x100(%%sr2,%%r0),%%sr0,%%r31\n"
-                       "nop"
-                       :
-                       : "r"(new_sp), "r"(r20), "r"(r25)
-                       : "memory");
+                        "be,l 0x100(%%sr2,%%r0),%%sr0,%%r31\n"
+                        "nop"
+                        :
+                        : "r"(new_sp), "r"(r20), "r"(r25)
+                        : "memory");
   abort ();
 }
 
@@ -90,9 +90,9 @@ static inline int
 establish_machine_state (struct cursor *c)
 {
   int (*access_reg) (unw_addr_space_t, unw_regnum_t, unw_word_t *,
-                    int write, void *);
+                     int write, void *);
   int (*access_fpreg) (unw_addr_space_t, unw_regnum_t, unw_fpreg_t *,
-                      int write, void *);
+                       int write, void *);
   unw_addr_space_t as = c->dwarf.as;
   void *arg = c->dwarf.as_arg;
   unw_fpreg_t fpval;
@@ -108,15 +108,15 @@ establish_machine_state (struct cursor *c)
     {
       Debug (16, "copying %s %d\n", unw_regname (reg), reg);
       if (unw_is_fpreg (reg))
-       {
-         if (tdep_access_fpreg (c, reg, &fpval, 0) >= 0)
-           (*access_fpreg) (as, reg, &fpval, 1, arg);
-       }
+        {
+          if (tdep_access_fpreg (c, reg, &fpval, 0) >= 0)
+            (*access_fpreg) (as, reg, &fpval, 1, arg);
+        }
       else
-       {
-         if (tdep_access_reg (c, reg, &val, 0) >= 0)
-           (*access_reg) (as, reg, &val, 1, arg);
-       }
+        {
+          if (tdep_access_reg (c, reg, &val, 0) >= 0)
+            (*access_reg) (as, reg, &val, 1, arg);
+        }
     }
   return 0;
 }
@@ -141,5 +141,5 @@ unw_resume (unw_cursor_t *cursor)
     return ret;
 
   return (*c->dwarf.as->acc.resume) (c->dwarf.as, (unw_cursor_t *) c,
-                                    c->dwarf.as_arg);
+                                     c->dwarf.as_arg);
 }