Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / include / asm / sections.h
blob700b8bcdf9bdf121a34881508de0fbff8718bed4
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_ARM_SECTIONS_H
3 #define _ASM_ARM_SECTIONS_H
5 #include <asm-generic/sections.h>
7 extern char _exiprom[];
9 extern char __idmap_text_start[];
10 extern char __idmap_text_end[];
11 extern char __entry_text_start[];
12 extern char __entry_text_end[];
14 static inline bool in_entry_text(unsigned long addr)
16 return memory_contains(__entry_text_start, __entry_text_end,
17 (void *)addr, 1);
20 static inline bool in_idmap_text(unsigned long addr)
22 void *a = (void *)addr;
23 return memory_contains(__idmap_text_start, __idmap_text_end, a, 1);
26 #endif /* _ASM_ARM_SECTIONS_H */