Lines Matching +full:write +full:- +full:to +full:- +full:write
1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <asm/pgtable-hwdef.h>
29 #define MTE_GRANULE_MASK (~(MTE_GRANULE_SIZE - 1))
51 * to access a tagged address, the compiler will reasonably assume
55 * But a test might want the tagged access to fail on purpose, and if
56 * we advance the PC to the next instruction, the one added by the
71 /* The NOP allows the same exception handler as mem_read() to be used. */ in mem_write()
88 report_info("Unexpected non-zero FnV"); in mte_fault_handler()
95 * function that called mem_read() will want to check that the in mte_fault_handler()
100 regs->pc += 8; in mte_fault_handler()
161 asm volatile(".arch armv8.5-a+memtag\n" in mte_set_tag()
188 mmu_set_tagged(current_thread_info()->pgtable, (unsigned long)mem); in mte_sync_test()
205 report((*mem == 0xffffffff) && mte_exception && (get_clear_tfsr() == 0), "write"); in mte_sync_test()
215 mmu_set_tagged(current_thread_info()->pgtable, (unsigned long)mem); in mte_asymm_test()
229 report((*mem == 0xaaaaaaaa) && (get_clear_tfsr() == TFSR_EL1_TF0), "write"); in mte_asymm_test()
239 mmu_set_tagged(current_thread_info()->pgtable, (unsigned long)mem); in mte_async_test()
248 report((*mem == 0xcccccccc) && (get_clear_tfsr() == TFSR_EL1_TF0), "write"); in mte_async_test()
305 report_abort("Unknown sub-test '%s'", argv[1]); in main()