Date: Tue, 05 Sep 1995 16:29:45 -0700 From: David Greenman <davidg@Root.COM> To: Stefan Esser <se@freefall.freebsd.org>, CVS-commiters@freefall.freebsd.org, cvs-sys@freefall.freebsd.org Subject: Re: cvs commit: src/sys/pci ncr.c Message-ID: <199509052329.QAA25464@corbin.Root.COM> In-Reply-To: Your message of "Tue, 05 Sep 95 15:59:38 PDT." <199509052259.PAA25428@corbin.Root.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
>>se 95/09/05 15:38:02 >> >> Modified: sys/pci ncr.c >> Log: >> The NCR script has grown beyond one page (4KB). Since malloc() returns >> contiguous memory in virtual space, but doesn't guarantee any particular >> physical layout of pages, the script may be not contguous in physical >> memory. This made the first write command fail in very rare cases. >> This has been fixed by checking the region returned by malloc() for >> being contiguous, but there should be a physical memory allocate >> and later mapping to virtual memory instead. >> >> A few assertions and error messages are improved. > > I wrote a routine specifically for allocating physically contiguous memory. >Take a look at vm_page_alloc_contig() in vm/vm_page.c. BTW, this routine is designed to only be called during system startup. If you need to allocate the memory dynamically, then this won't work... -DG
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509052329.QAA25464>