1/* 2 * Copyright (C) 2024 Nordic Semiconductor ASA 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <zephyr/offsets.h> 7#include <zephyr/toolchain.h> 8 9GTEXT(__soc_save_context) 10GTEXT(__soc_restore_context) 11 12SECTION_FUNC(exception.other, __soc_save_context) 13 csrr t0, 0x347 14 sw t0, __soc_esf_t_minttresh_OFFSET(a0) 15 16 ret 17 18SECTION_FUNC(exception.other, __soc_restore_context) 19 lw t0, __soc_esf_t_minttresh_OFFSET(a0) 20 csrw 0x347, t0 21 22 ret 23