Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201418
b: refs/heads/master
c: 24b776b
h: refs/heads/master
v: v3
  • Loading branch information
Mika Westerberg authored and Russell King committed Jul 9, 2010
1 parent 81a51d8 commit b917ef6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c57fb43c8fcbe46541d3a0274f0b4c802c68927
refs/heads/master: 24b776bfb6396fded148167643ffaf8eb3f782b1
22 changes: 19 additions & 3 deletions trunk/arch/arm/include/asm/kexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,26 @@

#ifndef __ASSEMBLY__

struct kimage;
/* Provide a dummy definition to avoid build failures. */
/**
* crash_setup_regs() - save registers for the panic kernel
* @newregs: registers are saved here
* @oldregs: registers to be saved (may be %NULL)
*
* Function copies machine registers from @oldregs to @newregs. If @oldregs is
* %NULL then current registers are stored there.
*/
static inline void crash_setup_regs(struct pt_regs *newregs,
struct pt_regs *oldregs) { }
struct pt_regs *oldregs)
{
if (oldregs) {
memcpy(newregs, oldregs, sizeof(*newregs));
} else {
__asm__ __volatile__ ("stmia %0, {r0 - r15}"
: : "r" (&newregs->ARM_r0));
__asm__ __volatile__ ("mrs %0, cpsr"
: "=r" (newregs->ARM_cpsr));
}
}

#endif /* __ASSEMBLY__ */

Expand Down

0 comments on commit b917ef6

Please sign in to comment.