Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_ARM_SECTIONS_H
0003 #define _ASM_ARM_SECTIONS_H
0004 
0005 #include <asm-generic/sections.h>
0006 
0007 extern char _exiprom[];
0008 
0009 extern char __idmap_text_start[];
0010 extern char __idmap_text_end[];
0011 extern char __entry_text_start[];
0012 extern char __entry_text_end[];
0013 
0014 static inline bool in_entry_text(unsigned long addr)
0015 {
0016     return memory_contains(__entry_text_start, __entry_text_end,
0017                    (void *)addr, 1);
0018 }
0019 
0020 static inline bool in_idmap_text(unsigned long addr)
0021 {
0022     void *a = (void *)addr;
0023     return memory_contains(__idmap_text_start, __idmap_text_end, a, 1);
0024 }
0025 
0026 #endif  /* _ASM_ARM_SECTIONS_H */