blob: f9d9f33de50459456c2534e486f4b4c2984f54b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright (C) 2024 Clyne Sullivan <clyne@bitgloo.com>
//
// Distributed under the GNU GPL v3 or later. You should have received a copy of
// the GNU General Public License along with this program.
// If not, see <https://www.gnu.org/licenses/>.
pub fn interrupt_disable() void {
asm volatile("cpsid i");
}
pub fn interrupt_enable() void {
asm volatile("cpsie i");
}
|