mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 16:16:50 +03:00
95434e4af5
git-svn-id: svn://kolibrios.org@4370 a494cfbc-eb01-0410-851d-a64ba20cac60
18 lines
417 B
C
18 lines
417 B
C
#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)
|
|
|
|
#define offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK)
|
|
|
|
#endif
|