~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/include/asm/fixmap.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _ASM_FIXMAP_H
  3 #define _ASM_FIXMAP_H
  4 
  5 #define FIXADDR_START           0xffc80000UL
  6 #define FIXADDR_END             0xfff00000UL
  7 #define FIXADDR_TOP             (FIXADDR_END - PAGE_SIZE)
  8 
  9 #include <linux/pgtable.h>
 10 #include <asm/kmap_size.h>
 11 
 12 enum fixed_addresses {
 13         FIX_EARLYCON_MEM_BASE,
 14         __end_of_permanent_fixed_addresses,
 15 
 16         FIX_KMAP_BEGIN = __end_of_permanent_fixed_addresses,
 17         FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1,
 18 
 19         /* Support writing RO kernel text via kprobes, jump labels, etc. */
 20         FIX_TEXT_POKE0,
 21         FIX_TEXT_POKE1,
 22 
 23         __end_of_fixmap_region,
 24 
 25         /*
 26          * Share the kmap() region with early_ioremap(): this is guaranteed
 27          * not to clash since early_ioremap() is only available before
 28          * paging_init(), and kmap() only after.
 29          */
 30 #define NR_FIX_BTMAPS           32
 31 #define FIX_BTMAPS_SLOTS        7
 32 #define TOTAL_FIX_BTMAPS        (NR_FIX_BTMAPS * FIX_BTMAPS_SLOTS)
 33 
 34         FIX_BTMAP_END = __end_of_permanent_fixed_addresses,
 35         FIX_BTMAP_BEGIN = FIX_BTMAP_END + TOTAL_FIX_BTMAPS - 1,
 36         __end_of_early_ioremap_region
 37 };
 38 
 39 static const enum fixed_addresses __end_of_fixed_addresses =
 40         __end_of_fixmap_region > __end_of_early_ioremap_region ?
 41         __end_of_fixmap_region : __end_of_early_ioremap_region;
 42 
 43 #define FIXMAP_PAGE_COMMON      (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY)
 44 
 45 #define FIXMAP_PAGE_NORMAL      (pgprot_kernel | L_PTE_XN)
 46 #define FIXMAP_PAGE_RO          (FIXMAP_PAGE_NORMAL | L_PTE_RDONLY)
 47 
 48 /* Used by set_fixmap_(io|nocache), both meant for mapping a device */
 49 #define FIXMAP_PAGE_IO          (FIXMAP_PAGE_COMMON | L_PTE_MT_DEV_SHARED | L_PTE_SHARED)
 50 #define FIXMAP_PAGE_NOCACHE     FIXMAP_PAGE_IO
 51 
 52 #define __early_set_fixmap      __set_fixmap
 53 
 54 #ifdef CONFIG_MMU
 55 
 56 void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot);
 57 void __init early_fixmap_init(void);
 58 
 59 #include <asm-generic/fixmap.h>
 60 
 61 #else
 62 
 63 static inline void early_fixmap_init(void) { }
 64 
 65 #endif
 66 #endif
 67 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php