]> Git Repo - J-u-boot.git/blame - arch/x86/cpu/x86_64/interrupts.c
common: Move interrupt functions into a new header
[J-u-boot.git] / arch / x86 / cpu / x86_64 / interrupts.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
93031595
SG
2/*
3 * (C) Copyright 2016 Google, Inc
4 * Written by Simon Glass <[email protected]>
93031595
SG
5 */
6
7#include <common.h>
c30b7adb 8#include <irq_func.h>
93031595
SG
9#include <asm/processor-flags.h>
10
11void enable_interrupts(void)
12{
13 asm("sti\n");
14}
15
16int disable_interrupts(void)
17{
18 long flags;
19
20 asm volatile ("pushfq ; popq %0 ; cli\n" : "=g" (flags) : );
21
22 return flags & X86_EFLAGS_IF;
23}
24
25int interrupt_init(void)
26{
27 /* Nothing to do - this was already done in SPL */
28 return 0;
29}
This page took 0.15365 seconds and 4 git commands to generate.