Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2007 12:26:30 +0200
From:      "Jacques Fourie" <jacques.fourie@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Reserving large contiguous block of RAM for device
Message-ID:  <be2f52430701090226n1e65b62aj7f76b86edcce02e9@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I am in the process of porting a Linux device driver to FreeBSD. In Linux, a
large block of RAM (256MB) is reserved by using the 'mem=' and 'memmap='
arguments to the kernel. In the device driver, ioremap() is used to map this
memory into kernel virtual memory. In FreeBSD contigmalloc() is available
but due to the large amount of physical memory required this may not work
reliably. Is there an existing method to reserve a large block of RAM early
in the boot process?

regards,
jacques



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