/* * Copyright (c) 2021, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include #include #include void sys_reg_trace_enable(void) { uint32_t val; /* * NSACR.NSTRCDIS = b0 * enable NS system register access to implemented trace * registers. */ val = read_nsacr(); val &= ~NSTRCDIS_BIT; write_nsacr(val); }