]> Git Repo - u-boot.git/blob - arch/microblaze/cpu/interrupts.c
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi
[u-boot.git] / arch / microblaze / cpu / interrupts.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2007 Michal Simek
4  * (C) Copyright 2004 Atmark Techno, Inc.
5  *
6  * Michal  SIMEK <[email protected]>
7  * Yasushi SHOJI <[email protected]>
8  */
9
10 #include <log.h>
11 #include <vsprintf.h>
12 #include <asm/asm.h>
13
14 void enable_interrupts(void)
15 {
16         debug("Enable interrupts for the whole CPU\n");
17         MSRSET(0x2);
18 }
19
20 int disable_interrupts(void)
21 {
22         unsigned int msr;
23
24         MFS(msr, rmsr);
25         MSRCLR(0x2);
26         return (msr & 0x2) != 0;
27 }
28
29 int interrupt_init(void)
30 {
31         return 0;
32 }
33
34 void interrupt_handler(void)
35 {
36         panic("Interrupt occurred\n");
37 }
This page took 0.030958 seconds and 4 git commands to generate.