Commit f4523155 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu fix ELF_CORE_COPY_REGS macro

This fixes the broken ELF_CORE_COPY_REGS macro for m68knommu arch.  It
is missing a ";" after the pr_reg[16] setting, and attempts to set the
non-existant a2 field.
parent a62691c0
...@@ -62,7 +62,7 @@ typedef struct user_m68kfp_struct elf_fpregset_t; ...@@ -62,7 +62,7 @@ typedef struct user_m68kfp_struct elf_fpregset_t;
pr_reg[8] = regs->a1; \ pr_reg[8] = regs->a1; \
pr_reg[14] = regs->d0; \ pr_reg[14] = regs->d0; \
pr_reg[15] = rdusp(); \ pr_reg[15] = rdusp(); \
pr_reg[16] = 0 /* regs->orig_d0; */ \ pr_reg[16] = 0 /* regs->orig_d0 */; \
pr_reg[17] = regs->sr; \ pr_reg[17] = regs->sr; \
pr_reg[18] = regs->pc; \ pr_reg[18] = regs->pc; \
/* pr_reg[19] = (regs->format << 12) | regs->vector; */ \ /* pr_reg[19] = (regs->format << 12) | regs->vector; */ \
...@@ -70,7 +70,6 @@ typedef struct user_m68kfp_struct elf_fpregset_t; ...@@ -70,7 +70,6 @@ typedef struct user_m68kfp_struct elf_fpregset_t;
struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \ struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \
pr_reg[5] = sw->d6; \ pr_reg[5] = sw->d6; \
pr_reg[6] = sw->d7; \ pr_reg[6] = sw->d7; \
pr_reg[9] = sw->a2; \
pr_reg[10] = sw->a3; \ pr_reg[10] = sw->a3; \
pr_reg[11] = sw->a4; \ pr_reg[11] = sw->a4; \
pr_reg[12] = sw->a5; \ pr_reg[12] = sw->a5; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment