From owner-freebsd-hackers Sat Feb 1 02:06:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA13041 for hackers-outgoing; Sat, 1 Feb 1997 02:06:22 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA13036 for ; Sat, 1 Feb 1997 02:06:17 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id CAA03489; Sat, 1 Feb 1997 02:05:25 -0800 (PST) Message-Id: <199702011005.CAA03489@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Tony Sterrett cc: hackers@freebsd.org Subject: Re: MAXMEM question In-reply-to: Your message of "Fri, 31 Jan 1997 19:46:59." <199702010346.TAA01593@nlanr.net> From: David Greenman Reply-To: dg@root.com Date: Sat, 01 Feb 1997 02:05:25 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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