Date: Thu, 29 Jul 2010 02:09:25 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r210583 - projects/ofed/head/sys/ofed/include/linux Message-ID: <201007290209.o6T29QaQ098559@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jeff Date: Thu Jul 29 02:09:25 2010 New Revision: 210583 URL: http://svn.freebsd.org/changeset/base/210583 Log: - PAGE_MASK in linux is the inverse of the BSD page mask. - Define a page zeroing function which is only bzero. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/linux/page.h Modified: projects/ofed/head/sys/ofed/include/linux/page.h ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/page.h Thu Jul 29 02:08:48 2010 (r210582) +++ projects/ofed/head/sys/ofed/include/linux/page.h Thu Jul 29 02:09:25 2010 (r210583) @@ -39,4 +39,9 @@ #define virt_to_page(x) PHYS_TO_VM_PAGE(vtophys((x))) +#define clear_page(page) memset((page), 0, PAGE_SIZE) + +#undef PAGE_MASK +#define PAGE_MASK (~(PAGE_SIZE-1)) + #endif /* _LINUX_PAGE_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007290209.o6T29QaQ098559>