mmu.h 621 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 Regents of the University of California
  4. */
  5. #ifndef _ASM_RISCV_MMU_H
  6. #define _ASM_RISCV_MMU_H
  7. #ifndef __ASSEMBLY__
  8. typedef struct {
  9. #ifndef CONFIG_MMU
  10. unsigned long end_brk;
  11. #endif
  12. void *vdso;
  13. atomic64_t asid;
  14. void *vdso_info;
  15. #ifdef CONFIG_SMP
  16. /* A local icache flush is needed before user execution can resume. */
  17. cpumask_t icache_stale_mask;
  18. #endif
  19. } mm_context_t;
  20. void __init create_pgd_mapping(pgd_t *pgdp, uintptr_t va, phys_addr_t pa,
  21. phys_addr_t sz, pgprot_t prot);
  22. #endif /* __ASSEMBLY__ */
  23. #endif /* _ASM_RISCV_MMU_H */