Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Sep 1995 15:59:38 -0700
From:      David Greenman <davidg@Root.COM>
To:        Stefan Esser <se@freefall.freebsd.org>
Cc:        CVS-commiters@freefall.freebsd.org, cvs-sys@freefall.freebsd.org
Subject:   Re: cvs commit: src/sys/pci ncr.c 
Message-ID:  <199509052259.PAA25428@corbin.Root.COM>
In-Reply-To: Your message of "Tue, 05 Sep 95 15:38:02 PDT." <199509052238.PAA09382@freefall.freebsd.org> 

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.

-DG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509052259.PAA25428>