PERFORCE change 85615 for review
Todd Miller
millert at FreeBSD.org
Thu Oct 20 20:28:44 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=85615
Change 85615 by millert at millert_ibook on 2005/10/20 20:27:58
use PAGE_SIZE macro since we have it instead of hard-coding 4096
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/linux-compat.h#4 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/linux-compat.h#4 (text+ko) ====
@@ -84,7 +84,7 @@
#define kmalloc(size,flags) malloc(size)
#define kfree(v) free(v)
-#define __get_free_page(flags) malloc (4096) /* XXX need page size */
+#define __get_free_page(flags) malloc (PAGE_SIZE)
#define GFP_ATOMIC 1
#define GFP_KERNEL 2
@@ -135,8 +135,7 @@
#define kmalloc(size,flags) sebsd_ss_malloc(size, flags)
#define kfree(v) sebsd_ss_free(v)
-/* XXX need page size */
-#define __get_free_page(flags) sebsd_ss_malloc(4096, flags)
+#define __get_free_page(flags) sebsd_ss_malloc(PAGE_SIZE, flags)
#define GFP_ATOMIC M_NOWAIT
#define GFP_KERNEL M_NOWAIT
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list