aboutsummaryrefslogtreecommitdiff
path: root/lowlevel.c
blob: b305ea47564114d5421a992e1f78f8a9c0d04668 (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
#ifndef LOWLEVEL_C
#define LOWLEVEL_C

#include <toast.h>

void outb(uint16_t p,uint8_t val)
{
   asm("outb %%al,%%dx;"
		   :
		   :"d"(p),"a"(val)
   );
}

void disable_ints()
{
	asm("cli");
}

void enable_ints()
{
	asm("sti");
}

#endif