Date: Fri, 12 Nov 2010 09:17:22 +0000 From: Paul B Mahol <onemda@gmail.com> To: Alan Cox <alc@rice.edu> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Bernhard Schmidt <bschmidt@freebsd.org> Subject: Re: svn commit: r215135 - head/sys/compat/ndis Message-ID: <AANLkTimFNC2SK53T6qCppcXfd0qzxWvNDOz7Ps41OxPJ@mail.gmail.com> In-Reply-To: <4CDCE57B.3000602@rice.edu> References: <201011111843.oABIhV9d080688@svn.freebsd.org> <4CDCE57B.3000602@rice.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/12/10, Alan Cox <alc@rice.edu> wrote: > Bernhard Schmidt wrote: >> Author: bschmidt >> Date: Thu Nov 11 18:43:31 2010 >> New Revision: 215135 >> URL: http://svn.freebsd.org/changeset/base/215135 >> >> Log: >> According to specs for MmAllocateContiguousMemorySpecifyCache() >> physically >> contiguous memory with requested restrictions must be allocated. >> >> > > It appears to me that these functions should be using > kmem_alloc_contig() and kmem_free() instead of contigmalloc() and > contigfree(). Then, the "cachetype" parameter could be correctly > implemented rather than ignored. It just requires mapping the cachetype > values to their corresponding vm_memattr_t values. Well, even if mapping is possible, I can't recognize every type in Windows, some of them are not documented: 0 MmNonCached 1 MmCached 2 MmWriteCombined 3 MmHardwareCoherentCached 4 MmNonCachedUnordered 5 MmUSWCCached 0 UNCACHEABLE 1 WRITE_COMBINING 2 WRITE_THROUGH 3 WRITE_PROTECTED 4 WRITE_BACK 5 UNCACHED
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimFNC2SK53T6qCppcXfd0qzxWvNDOz7Ps41OxPJ>