diff options
Diffstat (limited to 'arch/arm64/kernel/sleep.S')
-rw-r--r-- | arch/arm64/kernel/sleep.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kernel/sleep.S b/arch/arm64/kernel/sleep.S index f586f7c875e2..e33fe33876ab 100644 --- a/arch/arm64/kernel/sleep.S +++ b/arch/arm64/kernel/sleep.S | |||
@@ -173,6 +173,9 @@ ENTRY(cpu_resume) | |||
173 | /* load physical address of identity map page table in x1 */ | 173 | /* load physical address of identity map page table in x1 */ |
174 | adrp x1, idmap_pg_dir | 174 | adrp x1, idmap_pg_dir |
175 | mov sp, x2 | 175 | mov sp, x2 |
176 | /* save thread_info */ | ||
177 | and x2, x2, #~(THREAD_SIZE - 1) | ||
178 | msr sp_el0, x2 | ||
176 | /* | 179 | /* |
177 | * cpu_do_resume expects x0 to contain context physical address | 180 | * cpu_do_resume expects x0 to contain context physical address |
178 | * pointer and x1 to contain physical address of 1:1 page tables | 181 | * pointer and x1 to contain physical address of 1:1 page tables |