OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Peter Hessler (phesslercvs.openbsd.org)
Date: Mon Jun 01 2009 - 15:46:50 CDT


CVSROOT: /cvs
Module name: src
Changes by: phesslercvs.openbsd.org 2009/06/01 14:46:50

Modified files:
        sys/arch/i386/i386: mtrr.c
        sys/arch/amd64/amd64: mtrr.c

Log message:
Fix the order of checking if a machine has MTRR. We need to check
against the vendor string, then cpu family, then if the cpu claims to
have it.

requested by toby

Also match against Via's cpu string to enable MTRR on matthieu's VIA Nano

compile tested on i386 by wcmaier