Commit | Line | Data |
---|---|---|
3ccf6956 KM |
1 | #ifndef __ASM_ASM_UACCESS_H |
2 | #define __ASM_ASM_UACCESS_H | |
3 | ||
4 | /* | |
5 | * Remove the address tag from a virtual address, if present. | |
6 | */ | |
7 | .macro clear_address_tag, dst, addr | |
8 | tst \addr, #(1 << 55) | |
9 | bic \dst, \addr, #(0xff << 56) | |
10 | csel \dst, \dst, \addr, eq | |
11 | .endm | |
12 | ||
13 | #endif |