summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/asm-uaccess.h
blob: be2d2347d995064668a48f9c96c2fc27cdd2245d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __ASM_ASM_UACCESS_H
#define __ASM_ASM_UACCESS_H

/*
 * Remove the address tag from a virtual address, if present.
 */
	.macro	clear_address_tag, dst, addr
	tst	\addr, #(1 << 55)
	bic	\dst, \addr, #(0xff << 56)
	csel	\dst, \dst, \addr, eq
	.endm

#endif