1 /*
2  * Copyright (c) 2017, Linaro Limited. and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*
8  * @file	zephyr/irq.c
9  * @brief	Zephyr libmetal irq definitions.
10  */
11 
12 #include <metal/errno.h>
13 #include <metal/irq.h>
14 #include <metal/sys.h>
15 #include <metal/log.h>
16 #include <metal/mutex.h>
17 #include <metal/list.h>
18 #include <metal/utilities.h>
19 #include <metal/alloc.h>
20 
metal_irq_save_disable(void)21 unsigned int metal_irq_save_disable(void)
22 {
23 	return irq_lock();
24 }
25 
metal_irq_restore_enable(unsigned int flags)26 void metal_irq_restore_enable(unsigned int flags)
27 {
28 	irq_unlock(flags);
29 }
30 
31