Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Feb 1997 02:05:25 -0800
From:      David Greenman <dg@root.com>
To:        Tony Sterrett <tony@nlanr.net>
Cc:        hackers@freebsd.org
Subject:   Re: MAXMEM question 
Message-ID:  <199702011005.CAA03489@root.com>
In-Reply-To: Your message of "Fri, 31 Jan 1997 19:46:59." <199702010346.TAA01593@nlanr.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
>	2. using vm_page_alloc_contig(size, low, high, alignment)
>	to get the memory. I've been trying to use this function
>	to get the memory  but I've had no luck doing it, maybe
>	I'm parameters I'm
>addr = (void *) vm_page_alloc_contig (1048576,25165872, 0x1fffffe, 4096) ; 

   should be:

addr = (void *) vm_page_alloc_contig (1048576, 0, 0xffffffff, PAGE_SIZE); 

   Assumes: 1) you want 1MB of physically contiguous memory, 2) you don't
care what the physical start/end addresses are, 3) you don't need any special
alignment.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



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