fixmap.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _ASM_FIXMAP_H
  2. #define _ASM_FIXMAP_H
  3. #define FIXADDR_START 0xffc00000UL
  4. #define FIXADDR_END 0xfff00000UL
  5. #define FIXADDR_TOP (FIXADDR_END - PAGE_SIZE)
  6. #include <asm/kmap_types.h>
  7. #include <asm/pgtable.h>
  8. enum fixed_addresses {
  9. FIX_EARLYCON_MEM_BASE,
  10. __end_of_permanent_fixed_addresses,
  11. FIX_KMAP_BEGIN = __end_of_permanent_fixed_addresses,
  12. FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1,
  13. /* Support writing RO kernel text via kprobes, jump labels, etc. */
  14. FIX_TEXT_POKE0,
  15. FIX_TEXT_POKE1,
  16. __end_of_fixed_addresses
  17. };
  18. #define FIXMAP_PAGE_COMMON (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY)
  19. #define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK)
  20. /* Used by set_fixmap_(io|nocache), both meant for mapping a device */
  21. #define FIXMAP_PAGE_IO (FIXMAP_PAGE_COMMON | L_PTE_MT_DEV_SHARED | L_PTE_SHARED)
  22. #define FIXMAP_PAGE_NOCACHE FIXMAP_PAGE_IO
  23. void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot);
  24. void __init early_fixmap_init(void);
  25. #include <asm-generic/fixmap.h>
  26. #endif