aboutsummaryrefslogtreecommitdiff
path: root/lowlevel.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-03-27 20:03:33 +1300
committerDavid <dbphillipsnz@gmail.com>2014-03-27 20:32:48 +1300
commit009a998876458f1cbab925c56c95b90d48d72157 (patch)
tree5db5de0a8ce75e9285b4d647cfd685bec5aefd1c /lowlevel.c
parent5d944dfe9f03c9fb43271199d2ba4b8880747614 (diff)
downloadtoast-009a998876458f1cbab925c56c95b90d48d72157.tar.xz
Added a bunch of things. This is the epitome of a bad commit message
Diffstat (limited to 'lowlevel.c')
-rw-r--r--lowlevel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lowlevel.c b/lowlevel.c
index 0fc353a..4b78757 100644
--- a/lowlevel.c
+++ b/lowlevel.c
@@ -21,22 +21,22 @@
#include <toast.h>
-void outb(uint16_t p,uint8_t val)
+void outb(uint16_t port, uint8_t data)
{
asm("outb %%al,%%dx;"
:
- :"d"(p),"a"(val)
+ :"d"(port),"a"(data)
);
}
void disable_ints()
{
- asm("cli"::);
+ asm("cli");
}
void enable_ints()
{
- asm("sti"::);
+ asm("sti");
}
#endif \ No newline at end of file