1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
8 #include <asm/processor-flags.h>
10 void enable_interrupts(void)
15 int disable_interrupts(void)
19 asm volatile ("pushfq ; popq %0 ; cli\n" : "=g" (flags) : );
21 return flags & X86_EFLAGS_IF;
24 int interrupt_init(void)
26 /* Nothing to do - this was already done in SPL */