-
-
Save Heath123/7bec007d3e78be72515912990d0887f4 to your computer and use it in GitHub Desktop.
Pull requestsIssuesMarketplaceExplore@Heath123 SettingsDeveloper settings GitHub AppsOAuth AppsPersonal access tokensPersonal access tokensTokens you have generated that can be used to access the GitHub API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; | |
vaddr = start; | |
i = pgd_index(vaddr); | |
j = pmd_index(vaddr); | |
pgd = pgd_base + i; | |
for ( ; (i < PTRS_PER_PGD) && (vaddr < end); pgd++, i++) { | |
p4d = p4d_offset(pgd, vaddr); | |
pud = pud_offset(p4d, vaddr); | |
if (pud_none(*pud)) | |
one_md_table_init(pud); | |
pmd = pmd_offset(pud, vaddr); | |
for (; (j < PTRS_PER_PMD) && (vaddr < end); pmd++, j++) { | |
one_page_table_init(pmd); | |
vaddr += PMD_SIZE; | |
} | |
j = 0; | |
} | |
} | |
static void __init fixaddr_user_init( void) | |
{ | |
#ifdef CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA | |
long size = FIXADDR_USER_END - FIXADDR_USER_START; | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
pte_t *pte; | |
phys_t p; | |
unsigned long v, vaddr = FIXADDR_USER_START; | |
if (!size) | |
return; | |
fixrange_init( FIXADDR_USER_START, FIXADDR_USER_END, swapper_pg_dir); | |
v = (unsigned long) memblock_alloc_low(size, PAGE_SIZE); | |
if (!v) | |
panic("NTk2MDc0MDUzOTAzNTgxMjI2.XhMsDQ.K9OH2t1mDke8RkiCH3dIEt_BDO4") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment