| # Copyright 1999-2008 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/files/eblits/mtrr_check.eblit,v 1.1 2008/12/18 18:27:35 cardoe Exp $ |
| |
| mtrr_check() { |
| ebegin "Checking for MTRR support" |
| linux_chkconfig_present MTRR |
| eend $? |
| |
| if [[ $? -ne 0 ]] ; then |
| eerror "Please enable MTRR support in your kernel config, found at:" |
| eerror |
| eerror " Processor type and features" |
| eerror " [*] MTRR (Memory Type Range Register) support" |
| eerror |
| eerror "and recompile your kernel ..." |
| die "MTRR support not detected!" |
| fi |
| } |