blob: 84feb3e56b3ec6854b3e48ce43e858e543fd3366 [file] [log] [blame]
/*
* Copyright (C) 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/toolchain.h>
/* Imports */
GTEXT(__initialize)
/* Exports */
GTEXT(__start)
SECTION_FUNC(vectors, __start)
/* Set mtvec.base (mtvec.mode is RO, no need to mask it). */
la t0, _isr_wrapper
csrw mtvec, t0
/* Set mtvt. */
la t0, _irq_vector_table
csrw 0x307, t0
/* Call into Zephyr initialization. */
tail __initialize