diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-08-05 09:44:10 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-08-05 09:44:10 +0000 |
commit | c8d2ffd6a7275e04cc600763d0d5e68f110c0cb9 (patch) | |
tree | 4d877314a59ae549347eb85276851e4a8dce37a7 /sys/mips/include/vmparam.h | |
parent | c5377460ea7b99773df24135eed5e1f58638a3ba (diff) |
Merge all MD sf_buf allocators into one MI, residing in kern/subr_sfbuf.c
The MD allocators were very common, however there were some minor
differencies. These differencies were all consolidated in the MI allocator,
under ifdefs. The defines from machine/vmparam.h turn on features required
for a particular machine. For details look in the comment in sys/sf_buf.h.
As result no MD code left in sys/*/*/vm_machdep.c. Some arches still have
machine/sf_buf.h, which is usually quite small.
Tested by: glebius (i386), tuexen (arm32), kevlo (arm32)
Reviewed by: kib
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Notes
Notes:
svn path=/head/; revision=269577
Diffstat (limited to 'sys/mips/include/vmparam.h')
-rw-r--r-- | sys/mips/include/vmparam.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/mips/include/vmparam.h b/sys/mips/include/vmparam.h index 8922924faa76..d3b833ebd4a8 100644 --- a/sys/mips/include/vmparam.h +++ b/sys/mips/include/vmparam.h @@ -187,4 +187,8 @@ #define ZERO_REGION_SIZE (64 * 1024) /* 64KB */ +#ifndef __mips_n64 +#define SFBUF +#endif + #endif /* !_MACHINE_VMPARAM_H_ */ |