ddk: update includes

git-svn-id: svn://kolibrios.org@3747 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2013-07-02 16:05:26 +00:00
parent 29188d51c6
commit be3d9040b1
10 changed files with 146 additions and 38 deletions

View File

@@ -1,8 +1,15 @@
#ifndef _LINUX_MM_H
#define _LINUX_MM_H
#include <kernel.h>
#define VM_NORESERVE 0x00200000
#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 */
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
#endif