Home | History | Annotate | Download | only in common

Lines Matching refs:page

17 // then the environment variables. The kernel will allocate a single page of
18 // memory for this purpose, so the end of the page containing argv[0] is the
22 // the range of memory within this page that it initially used for the argument
25 // size of a page looking for another. (Note, however, that in general not that
26 // much space is actually mapped, since argv[0] is rarely page-aligned and only
27 // one page is mapped.)
56 uintptr_t page_size, page, page_end;
68 // Get the page on which the argument list and environment live.
69 page = (uintptr_t) g_main_argv[0];
70 page -= page % page_size;
71 page_end = page + page_size;
73 // not the environment array itself (which may not be on the page we need
79 if (page <= env_i && env_i < page_end) {
111 // Check that the argv array is in fact on the same page of memory