brintos

brintos / linux-shallow public Read only

0
0
Text · 564 B · 185a69d Raw
29 lines · plain
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * 64-bit assembly helpers for asm operations that lack support in both gcc and4 * clang. For example, clang asm does not support segment prefixes.5 */6.global dereference_seg_base7 8dereference_seg_base:9	mov %gs:(0), %rax10	ret11 12.global test_page13.global test_syscall_insn14 15.pushsection ".text", "ax"16.balign 409617test_page: .globl test_page18	.fill 4094,1,0xcc19 20test_syscall_insn:21	syscall22 23.ifne . - test_page - 409624	.error "test page is not one page long"25.endif26.popsection27 28.section .note.GNU-stack,"",%progbits29