2013-02-23 10:41:48 +01:00
|
|
|
#ifndef _LINUX_MM_H
|
|
|
|
#define _LINUX_MM_H
|
2013-02-13 09:23:54 +01:00
|
|
|
|
2013-07-02 18:05:26 +02:00
|
|
|
#include <kernel.h>
|
2013-02-23 10:41:48 +01:00
|
|
|
|
|
|
|
#define VM_NORESERVE 0x00200000
|
2013-07-02 18:05:26 +02:00
|
|
|
|
|
|
|
#define nth_page(page,n) ((void*)(((page_to_phys(page)>>12)+(n))<<12))
|
|
|
|
|
|
|
|
#define page_to_pfn(page) (page_to_phys(page)>>12)
|
|
|
|
|
|
|
|
/* to align the pointer to the (next) page boundary */
|
2013-02-23 10:41:48 +01:00
|
|
|
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
|
|
|
|
|
2013-12-17 07:10:28 +01:00
|
|
|
#define offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK)
|
|
|
|
|
2013-02-23 10:41:48 +01:00
|
|
|
#endif
|