diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-07-26 15:31:08 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-07-28 16:58:35 +0100 |
commit | ec30c856a80270578a90528ecffdaf4eaf148503 (patch) | |
tree | 91968794eeaba657fbbccfa3b5d30c753e5da080 /src/include/ipxe/io.h | |
parent | 6153c09c41034250408f3596555fcaae715da46c (diff) | |
download | ipxe-ec30c856a80270578a90528ecffdaf4eaf148503.tar.gz |
[ioapi] Centralise notion of PAGE_SIZE
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/io.h')
-rw-r--r-- | src/include/ipxe/io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ipxe/io.h b/src/include/ipxe/io.h index b8b8aa313..29ccfd1fa 100644 --- a/src/include/ipxe/io.h +++ b/src/include/ipxe/io.h @@ -23,6 +23,12 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <config/ioapi.h> #include <ipxe/uaccess.h> +/** Page size */ +#define PAGE_SIZE ( 1 << PAGE_SHIFT ) + +/** Page mask */ +#define PAGE_MASK ( PAGE_SIZE - 1 ) + /** * Calculate static inline I/O API function name * |