mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 01:59:04 +00:00
At the moment we are using 4K pages all the time, so instead of copying code over all archs we're supporting -- add asm-generic/page.h header. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
18 lines
332 B
C
18 lines
332 B
C
#ifndef __CR_ASM_GENERIC_PAGE_H__
|
|
#define __CR_ASM_GENERIC_PAGE_H__
|
|
|
|
#ifndef PAGE_SHIFT
|
|
# define PAGE_SHIFT 12
|
|
#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)
|
|
|
|
#endif /* __CR_ASM_GENERIC_PAGE_H__ */
|