FreeBSD/sys/i386/i386/i686_mem.c
/*
 * Hunt for the fixed MTRR referencing (addr)
 */
Hunt for the fixed MTRR referencing (addr)
Hunt for the fixed MTRR referencing ( addr )
static struct mem_range_desc *
i686_mtrrfixsearch(struct mem_range_softc *sc, u_int64_t addr)
{
	struct mem_range_desc *mrd;
	int i;
	for (i = 0, mrd = sc->mr_desc; i < (MTRR_N64K + MTRR_N16K + MTRR_N4K);
	     i++, mrd++)
		if ((addr >= mrd->mr_base) &&
		    (addr < (mrd->mr_base + mrd->mr_len)))
			return (mrd);
	return (NULL);
}
static struct mem_range_desc * i686_mtrrfixsearch ( struct mem_range_softc * sc , u_int64_t addr ) { struct mem_range_desc * mrd ; int i ; for ( i = 0 , mrd = sc -> mr_desc ; i < ( MTRR_N64K + MTRR_N16K + MTRR_N4K ) ; i ++ , mrd ++ ) if ( ( addr >= mrd -> mr_base ) && ( addr < ( mrd -> mr_base + mrd -> mr_len ) ) ) return ( mrd ) ; return ( NULL ) ; }
Hunt for the fixed MTRR referencing (addr)
Hunt for the fixed MTRR referencing ( addr )