//
// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
//
-// This file may be distributed under the terms of the GNU GPLv3 license.
+// This file may be distributed under the terms of the GNU LGPLv3 license.
#ifndef __CMOS_H
#define __CMOS_H
static inline u8
inb_cmos(u8 reg)
{
+ reg |= NMI_DISABLE_BIT;
outb(reg, PORT_CMOS_INDEX);
return inb(PORT_CMOS_DATA);
}
static inline void
outb_cmos(u8 val, u8 reg)
{
+ reg |= NMI_DISABLE_BIT;
outb(reg, PORT_CMOS_INDEX);
outb(val, PORT_CMOS_DATA);
}