diff options
author | Mihai Caraman <mihai.caraman@freescale.com> | 2012-09-05 22:49:44 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-06 19:48:49 -0400 |
commit | 0127262c01f0beb485f917c720d1d95d165dfdbf (patch) | |
tree | 8ea17c81f09dec7c6e8bfdc8f3288ec7cfa439c6 /arch/powerpc/kernel/asm-offsets.c | |
parent | 8b64a9dfb091f1eca8b7e58da82f1e7d1d5fe0ad (diff) |
powerpc: Restore VDSO information on critical exception om BookE
Critical exception on 64-bit booke uses user-visible SPRG3 as scratch.
Restore VDSO information in SPRG3 on exception prolog.
Use a common sprg3 field in PACA for all powerpc64 architectures.
Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 85b05c463fae..72f26166007a 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -205,6 +205,7 @@ int main(void) | |||
205 | DEFINE(PACA_SYSTEM_TIME, offsetof(struct paca_struct, system_time)); | 205 | DEFINE(PACA_SYSTEM_TIME, offsetof(struct paca_struct, system_time)); |
206 | DEFINE(PACA_TRAP_SAVE, offsetof(struct paca_struct, trap_save)); | 206 | DEFINE(PACA_TRAP_SAVE, offsetof(struct paca_struct, trap_save)); |
207 | DEFINE(PACA_NAPSTATELOST, offsetof(struct paca_struct, nap_state_lost)); | 207 | DEFINE(PACA_NAPSTATELOST, offsetof(struct paca_struct, nap_state_lost)); |
208 | DEFINE(PACA_SPRG3, offsetof(struct paca_struct, sprg3)); | ||
208 | #endif /* CONFIG_PPC64 */ | 209 | #endif /* CONFIG_PPC64 */ |
209 | 210 | ||
210 | /* RTAS */ | 211 | /* RTAS */ |
@@ -533,7 +534,6 @@ int main(void) | |||
533 | HSTATE_FIELD(HSTATE_VMHANDLER, vmhandler); | 534 | HSTATE_FIELD(HSTATE_VMHANDLER, vmhandler); |
534 | HSTATE_FIELD(HSTATE_SCRATCH0, scratch0); | 535 | HSTATE_FIELD(HSTATE_SCRATCH0, scratch0); |
535 | HSTATE_FIELD(HSTATE_SCRATCH1, scratch1); | 536 | HSTATE_FIELD(HSTATE_SCRATCH1, scratch1); |
536 | HSTATE_FIELD(HSTATE_SPRG3, sprg3); | ||
537 | HSTATE_FIELD(HSTATE_IN_GUEST, in_guest); | 537 | HSTATE_FIELD(HSTATE_IN_GUEST, in_guest); |
538 | HSTATE_FIELD(HSTATE_RESTORE_HID5, restore_hid5); | 538 | HSTATE_FIELD(HSTATE_RESTORE_HID5, restore_hid5); |
539 | HSTATE_FIELD(HSTATE_NAPPING, napping); | 539 | HSTATE_FIELD(HSTATE_NAPPING, napping); |