X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fcmos.h;h=e4b64623316814732daeab07ba1dc2635335ac45;hb=refs%2Fheads%2Fcoreboot;hp=f66316365a4f0dff5447cba27df48dbb34dd50ad;hpb=18e38b2923565db003ff57fbd630a08d2557232f;p=seabios.git diff --git a/src/cmos.h b/src/cmos.h index f663163..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 @@ -39,6 +39,7 @@ #define CMOS_MEM_HIGHMEM_LOW 0x5b #define CMOS_MEM_HIGHMEM_MID 0x5c #define CMOS_MEM_HIGHMEM_HIGH 0x5d +#define CMOS_BIOS_SMP_COUNT 0x5f // CMOS_FLOPPY_DRIVE_TYPE bitdefs #define CFD_NO_DRIVE 0 @@ -55,6 +56,7 @@ static inline u8 inb_cmos(u8 reg) { + reg |= NMI_DISABLE_BIT; outb(reg, PORT_CMOS_INDEX); return inb(PORT_CMOS_DATA); } @@ -62,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); }