X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fcmos.h;h=e4b64623316814732daeab07ba1dc2635335ac45;hb=02145150f64d4fcb9e122bc7fcc11c23fbbe9fbc;hp=5c7b39dd4ecdd53834816803fd32343c6f345941;hpb=31bfad632b0cad16795cdb43f4854a1e50a5eed0;p=seabios.git diff --git a/src/cmos.h b/src/cmos.h index 5c7b39d..e4b6462 100644 --- a/src/cmos.h +++ b/src/cmos.h @@ -2,7 +2,7 @@ // // Copyright (C) 2008 Kevin O'Connor // -// 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 @@ -56,6 +56,7 @@ static inline u8 inb_cmos(u8 reg) { + reg |= NMI_DISABLE_BIT; outb(reg, PORT_CMOS_INDEX); return inb(PORT_CMOS_DATA); } @@ -63,6 +64,7 @@ inb_cmos(u8 reg) static inline void outb_cmos(u8 val, u8 reg) { + reg |= NMI_DISABLE_BIT; outb(reg, PORT_CMOS_INDEX); outb(val, PORT_CMOS_DATA); }