From 14c302dd6cd219798efc7e2e3ef5330f8ce2db43 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 14 Aug 2013 15:45:55 +1200 Subject: Added license --- lowlevel.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'lowlevel.c') 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 -- cgit v1.1