init.c (e8dcb61f2ade040a372d66907d220dd3fdee2505) init.c (b91540d52a08b65eb6a2b09132e1bd54fa82754c)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Regents of the University of California
4 * Copyright (C) 2019 Western Digital Corporation or its affiliates.
5 */
6
7#include <linux/init.h>
8#include <linux/mm.h>

--- 376 unchanged lines hidden (view full) ---

385#define pgd_next_t pte_t
386#define alloc_pgd_next(__va) pt_ops.alloc_pte(__va)
387#define get_pgd_next_virt(__pa) pt_ops.get_pte_virt(__pa)
388#define create_pgd_next_mapping(__nextp, __va, __pa, __sz, __prot) \
389 create_pte_mapping(__nextp, __va, __pa, __sz, __prot)
390#define fixmap_pgd_next fixmap_pte
391#endif
392
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Regents of the University of California
4 * Copyright (C) 2019 Western Digital Corporation or its affiliates.
5 */
6
7#include <linux/init.h>
8#include <linux/mm.h>

--- 376 unchanged lines hidden (view full) ---

385#define pgd_next_t pte_t
386#define alloc_pgd_next(__va) pt_ops.alloc_pte(__va)
387#define get_pgd_next_virt(__pa) pt_ops.get_pte_virt(__pa)
388#define create_pgd_next_mapping(__nextp, __va, __pa, __sz, __prot) \
389 create_pte_mapping(__nextp, __va, __pa, __sz, __prot)
390#define fixmap_pgd_next fixmap_pte
391#endif
392
393static void __init create_pgd_mapping(pgd_t *pgdp,
393void __init create_pgd_mapping(pgd_t *pgdp,
394 uintptr_t va, phys_addr_t pa,
395 phys_addr_t sz, pgprot_t prot)
396{
397 pgd_next_t *nextp;
398 phys_addr_t next_phys;
399 uintptr_t pgd_idx = pgd_index(va);
400
401 if (sz == PGDIR_SIZE) {

--- 283 unchanged lines hidden ---
394 uintptr_t va, phys_addr_t pa,
395 phys_addr_t sz, pgprot_t prot)
396{
397 pgd_next_t *nextp;
398 phys_addr_t next_phys;
399 uintptr_t pgd_idx = pgd_index(va);
400
401 if (sz == PGDIR_SIZE) {

--- 283 unchanged lines hidden ---