elf_prstatus: collect the common part (everything before pr_reg) into a struct
[linux-block.git] / arch / powerpc / platforms / powernv / opal-core.c
index 23571f0b555a6829de04cbe80ef5f7efe0cb4d6c..0d9ba70f72517e4f46cd71173299fdce53bdb7fb 100644 (file)
@@ -119,8 +119,8 @@ static void fill_prstatus(struct elf_prstatus *prstatus, int pir,
         * As a PIR value could also be '0', add an offset of '100'
         * to every PIR to avoid misinterpretations in GDB.
         */
-       prstatus->pr_pid  = cpu_to_be32(100 + pir);
-       prstatus->pr_ppid = cpu_to_be32(1);
+       prstatus->common.pr_pid  = cpu_to_be32(100 + pir);
+       prstatus->common.pr_ppid = cpu_to_be32(1);
 
        /*
         * Indicate SIGUSR1 for crash initiated from kernel.
@@ -130,7 +130,7 @@ static void fill_prstatus(struct elf_prstatus *prstatus, int pir,
                short sig;
 
                sig = kernel_initiated ? SIGUSR1 : SIGTERM;
-               prstatus->pr_cursig = cpu_to_be16(sig);
+               prstatus->common.pr_cursig = cpu_to_be16(sig);
        }
 }