FreeBSD/sys/i386/i386/i686_mem.c
/*
 * Return the MTRR memory type matching a region's flags
 */
Return the MTRR memory type matching a region's flags
Return the MTRR memory type matching a region ' s flags
static int
i686_mtrrtype(int flags)
{
	int i;
	flags &= MDF_ATTRMASK;
	for (i = 0; i < MTRRTOMRTLEN; i++) {
		if (i686_mtrrtomrt[i] == MDF_UNKNOWN)
			continue;
		if (flags == i686_mtrrtomrt[i])
			return (i);
	}
	return (-1);
}
static int i686_mtrrtype ( int flags ) { int i ; flags &= MDF_ATTRMASK ; for ( i = 0 ; i < MTRRTOMRTLEN ; i ++ ) { if ( i686_mtrrtomrt [ i ] == MDF_UNKNOWN ) continue ; if ( flags == i686_mtrrtomrt [ i ] ) return ( i ) ; } return ( -1 ) ; }
Return the MTRR memory type matching a region's flags
Return the MTRR memory type matching a region ' s flags