aboutsummaryrefslogtreecommitdiff
path: root/lowlevel.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2013-08-14 15:45:55 +1200
committerDavid <dbphillipsnz@gmail.com>2014-03-27 20:32:10 +1300
commit14c302dd6cd219798efc7e2e3ef5330f8ce2db43 (patch)
tree9e5593a9979b64838da5f4b955788ab0f61b03b7 /lowlevel.c
parenta6e43b022208908bf6d12f9e65f54c0f84743946 (diff)
downloadtoast-14c302dd6cd219798efc7e2e3ef5330f8ce2db43.tar.xz
Added license
Diffstat (limited to 'lowlevel.c')
-rw-r--r--lowlevel.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/lowlevel.c b/lowlevel.c
index b305ea4..0fc353a 100644
--- a/lowlevel.c
+++ b/lowlevel.c
@@ -1,3 +1,21 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ */
+
#ifndef LOWLEVEL_C
#define LOWLEVEL_C
@@ -13,12 +31,12 @@ void outb(uint16_t p,uint8_t val)
void disable_ints()
{
- asm("cli");
+ asm("cli"::);
}
void enable_ints()
{
- asm("sti");
+ asm("sti"::);
}
#endif \ No newline at end of file