10 #include <linux/errno.h>
11 #include <linux/module.h>
13 #include <asm/pgalloc.h>
31 unsigned long offset, last_addr;
35 unsigned long end = phys_addr + size - 1;
37 if ((phys_addr >= 0x00080000 && end < 0x000fffff) ||
38 (phys_addr >= 0x00500000 && end < 0x03bfffff)) {
45 last_addr = phys_addr + size - 1;
46 if (!size || last_addr < phys_addr)
56 t_addr =
__va(phys_addr);
57 t_end = t_addr + (size - 1);
61 if(!PageReserved(page))