Skip to content
Snippets Groups Projects
Commit 0bc52fd0 authored by Avi Kivity's avatar Avi Kivity
Browse files

x64: add arch-independent names for cli/sti

parent e5c2c39a
No related branches found
No related tags found
No related merge requests found
#ifndef ARCH_HH_
#define ARCH_HH_
#include "processor.hh"
// namespace arch - architecture independent interface for architecture
// dependent operations (e.g. irq_disable vs. cli)
namespace arch {
inline void irq_disable()
{
processor::cli();
}
inline void irq_enable()
{
processor::sti();
}
}
#endif /* ARCH_HH_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment