File: x86-64-cet.s

package info (click to toggle)
binutils 2.31.1-11
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 307,644 kB
  • sloc: ansic: 1,161,122; asm: 638,494; cpp: 128,815; exp: 68,557; makefile: 55,816; sh: 22,360; yacc: 14,238; lisp: 13,272; perl: 2,111; ada: 1,681; lex: 1,652; pascal: 1,446; cs: 879; sed: 195; python: 154; xml: 95; awk: 25
file content (33 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Check 64bit CET instructions
	.text
_start:
	incsspd %r12d
	incsspq %rax
	rdsspd %r12d
	rdsspq %rax
	saveprevssp
	rstorssp (%r12)
	wrssd %eax, (%r12)
	wrssq %rdx, (%rcx, %r15)
	wrussd %eax, (%r12)
	wrussq %rcx, (%rbx, %rax)
	setssbsy
	clrssbsy (%rsi, %r12)
	endbr64
	endbr32

	.intel_syntax noprefix
	incsspd r12d
	incsspq rax
	rdsspd r12d
	rdsspq rax
	saveprevssp
	rstorssp QWORD PTR [r12]
	wrssd [r12],eax
	wrssq [rcx+r15],rdx
	wrussd [r12],eax
	wrussq [rbx+rax],rcx
	setssbsy
	clrssbsy QWORD PTR [rsi+r12]
	endbr64
	endbr32