summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/sleep.S
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2011-08-03 22:18:31 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:02 -0800
commit20e0db1694cafa07e5451b5416819da3ead119fe (patch)
tree109f64f133de19943279d2e48e760cd597cc87f0 /arch/arm/mach-tegra/sleep.S
parent381b82041036f33f18a6a4a303e3a985baf24ab6 (diff)
ARM: tegra: power: Add stack frame debug checks
Tag the stack frame created by the CPU register context push macro with a magic number and validate that magic number in the register context pop macro to ensure that the stack remains balanced and uncorrupted. Change-Id: I6aa876496e30e6e70c0c60800c1b35d217595153 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R78eba17c256f03bdd6457ca3ebb1ecdba5632e60
Diffstat (limited to 'arch/arm/mach-tegra/sleep.S')
-rw-r--r--arch/arm/mach-tegra/sleep.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/sleep.S b/arch/arm/mach-tegra/sleep.S
index 23cecedc788a..9c62832dedf2 100644
--- a/arch/arm/mach-tegra/sleep.S
+++ b/arch/arm/mach-tegra/sleep.S
@@ -179,7 +179,7 @@ ENDPROC(tegra_cpu_suspend)
*/
ENTRY(tegra_cpu_save)
- push_ctx_regs @ save context registers
+ push_ctx_regs r1 @ save context registers
adr r3, tegra_cpu_resume
@@ -230,7 +230,7 @@ tegra_cpu_resume:
bl cpu_init
- pop_ctx_regs @ restore context registers
+ pop_ctx_regs r1, r2 @ restore context registers
mov pc, lr
/*