Lines Matching refs:page
3 * This file contains the routines setting up the linux page tables.
139 static int __change_page_attr_noflush(struct page *page, pgprot_t prot)
144 BUG_ON(PageHighMem(page));
145 address = (unsigned long)page_address(page);
152 __set_pte_at(&init_mm, address, kpte, mk_pte(page, prot), 0);
158 * Change the page attributes of an page in the linear mapping.
162 static int change_page_attr(struct page *page, int numpages, pgprot_t prot)
166 struct page *start = page;
169 for (i = 0; i < numpages; i++, page++) {
170 err = __change_page_attr_noflush(page, prot);
177 (unsigned long)page_address(page));
183 struct page *page = virt_to_page(_sinittext);
190 change_page_attr(page, numpages, PAGE_KERNEL);
196 struct page *page;
205 page = virt_to_page(_stext);
209 change_page_attr(page, numpages, PAGE_KERNEL_ROX);
214 page = virt_to_page(__start_rodata);
218 change_page_attr(page, numpages, PAGE_KERNEL_RO);
226 void __kernel_map_pages(struct page *page, int numpages, int enable)
228 if (PageHighMem(page))
231 change_page_attr(page, numpages, enable ? PAGE_KERNEL : __pgprot(0));