aboutsummaryrefslogtreecommitdiff
path: root/i686/include/sys/control.h
blob: 89ab0674d98f9d41781e5f0deaad7273dc469b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

static __inline__ void
abort()
{
  /* Symbol h is already defined?
__asm__(R"(cli
h: hlt
jmp h)");
*/
  __asm__("cli; hlt");
}

static __inline__ void
enable_interrupts()
{
  __asm__("sti");
}

static __inline__ void
disable_interrupts()
{
  __asm__("cli");
}