mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 18:10:13 +00:00
aec051d813
The primary purpose for this code was timer. By converting it to CONFIG_TIMER there is no code which uses this implementation that's why remove it. If there is a need to handle interrupts this patch can be reverted in future. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/5f2decc5a30a5678490ebde26d8c6f5a5f873cda.1654684731.git.michal.simek@amd.com
36 lines
560 B
C
36 lines
560 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2007 Michal Simek
|
|
* (C) Copyright 2004 Atmark Techno, Inc.
|
|
*
|
|
* Michal SIMEK <monstr@monstr.eu>
|
|
* Yasushi SHOJI <yashi@atmark-techno.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/asm.h>
|
|
|
|
void enable_interrupts(void)
|
|
{
|
|
debug("Enable interrupts for the whole CPU\n");
|
|
MSRSET(0x2);
|
|
}
|
|
|
|
int disable_interrupts(void)
|
|
{
|
|
unsigned int msr;
|
|
|
|
MFS(msr, rmsr);
|
|
MSRCLR(0x2);
|
|
return (msr & 0x2) != 0;
|
|
}
|
|
|
|
int interrupt_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void interrupt_handler(void)
|
|
{
|
|
panic("Interrupt occurred\n");
|
|
}
|