Move the definition of M_MEMDESC to a non-optional file. This allows
kernels configurations without the 'mem' device to compile.
This commit is contained in:
parent
f61bdfe072
commit
066853b70e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133255
@ -112,6 +112,11 @@ static int amd64_mtrrtomrt[] = {
|
||||
|
||||
#define MTRRTOMRTLEN (sizeof(amd64_mtrrtomrt) / sizeof(amd64_mtrrtomrt[0]))
|
||||
|
||||
/*
|
||||
* Used in /dev/mem drivers and elsewhere
|
||||
*/
|
||||
MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
|
||||
|
||||
static int
|
||||
amd64_mtrr2mrt(int val)
|
||||
{
|
||||
|
@ -67,11 +67,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <machine/memdev.h>
|
||||
|
||||
/*
|
||||
* Used in /dev/mem drivers and elsewhere
|
||||
*/
|
||||
MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
memrw(struct cdev *dev, struct uio *uio, int flags)
|
||||
|
Loading…
Reference in New Issue
Block a user