mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 12:36:47 +00:00
travis-ci: success for Common headers Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
25 lines
488 B
C
25 lines
488 B
C
#ifndef __CR_ASM_PAGE_H__
|
|
#define __CR_ASM_PAGE_H__
|
|
|
|
#include <unistd.h>
|
|
|
|
/*
|
|
* Default config for Pseries is to use 64K pages.
|
|
* See kernel file arch/powerpc/configs/pseries_*defconfig
|
|
*/
|
|
#ifndef PAGE_SHIFT
|
|
# define PAGE_SHIFT 16
|
|
#endif
|
|
|
|
#ifndef PAGE_SIZE
|
|
# define PAGE_SIZE (1UL << PAGE_SHIFT)
|
|
#endif
|
|
|
|
#ifndef PAGE_MASK
|
|
# define PAGE_MASK (~(PAGE_SIZE - 1))
|
|
#endif
|
|
|
|
#define PAGE_PFN(addr) ((addr) / PAGE_SIZE)
|
|
#define page_size() sysconf(_SC_PAGESIZE)
|
|
|
|
#endif /* __CR_ASM_PAGE_H__ */
|