Skip to content

Commit 5cccfc8

Browse files
Jens RemusVasily Gorbik
authored andcommitted
s390/vdso: Add CFI annotations to __arch_chacha20_blocks_nostack()
This allows proper unwinding, for instance when using a debugger such as GDB. Signed-off-by: Jens Remus <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Acked-by: Vasily Gorbik <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent ff35a3f commit 5cccfc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/s390/kernel/vdso64/vgetrandom-chacha.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <linux/stringify.h>
44
#include <linux/linkage.h>
55
#include <asm/alternative.h>
6+
#include <asm/dwarf.h>
67
#include <asm/fpu-insn.h>
78

89
#define STATE0 %v0
@@ -38,6 +39,7 @@
3839
* size_t nblocks)
3940
*/
4041
SYM_FUNC_START(__arch_chacha20_blocks_nostack)
42+
CFI_STARTPROC
4143
larl %r1,.Lconstants
4244

4345
/* COPY0 = "expand 32-byte k" */
@@ -177,4 +179,5 @@ SYM_FUNC_START(__arch_chacha20_blocks_nostack)
177179
VPERM TMP3,STATE3,STATE3,BEPERM
178180
VSTM TMP0,TMP3,0,%r2
179181
j .Lstoredone
182+
CFI_ENDPROC
180183
SYM_FUNC_END(__arch_chacha20_blocks_nostack)

0 commit comments

Comments
 (0)