diff options
| author | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
| commit | 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e (patch) | |
| tree | d57f3a63479a07b4e0cece029886e76e04feb984 /arch/loongarch/include/asm/stackframe.h | |
| parent | 5dc63e56a9cf8df0b59c234a505a1653f1bdf885 (diff) | |
| parent | 53bea86b5712c7491bb3dae12e271666df0a308c (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.4 merge window.
Diffstat (limited to 'arch/loongarch/include/asm/stackframe.h')
| -rw-r--r-- | arch/loongarch/include/asm/stackframe.h | 13 | 
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/loongarch/include/asm/stackframe.h b/arch/loongarch/include/asm/stackframe.h index 4ca953062b5b..7df80e6ae9d2 100644 --- a/arch/loongarch/include/asm/stackframe.h +++ b/arch/loongarch/include/asm/stackframe.h @@ -7,6 +7,7 @@  #include <linux/threads.h> +#include <asm/addrspace.h>  #include <asm/asm.h>  #include <asm/asmmacro.h>  #include <asm/asm-offsets.h> @@ -36,6 +37,14 @@  	cfi_restore \reg \offset \docfi  	.endm +/* Jump to the runtime virtual address. */ +	.macro JUMP_VIRT_ADDR temp1 temp2 +	li.d	\temp1, CACHE_BASE +	pcaddi	\temp2, 0 +	or	\temp1, \temp1, \temp2 +	jirl	zero, \temp1, 0xc +	.endm +  	.macro BACKUP_T0T1  	csrwr	t0, EXCEPTION_KS0  	csrwr	t1, EXCEPTION_KS1 @@ -77,7 +86,7 @@   * new value in sp.   */  	.macro	get_saved_sp docfi=0 -	la.abs	  t1, kernelsp +	la_abs	  t1, kernelsp  #ifdef CONFIG_SMP  	csrrd	  t0, PERCPU_BASE_KS  	LONG_ADD  t1, t1, t0 @@ -90,7 +99,7 @@  	.endm  	.macro	set_saved_sp stackp temp temp2 -	la.abs	  \temp, kernelsp +	la.pcrel  \temp, kernelsp  #ifdef CONFIG_SMP  	LONG_ADD  \temp, \temp, u0  #endif  |