The macro safe_svcmode_maskall in arch/arm/kernel/head.S is defined in arch/arm/include/assembler.h,which is
.macro safe_svcmode_maskall reg:req
#if __LINUX_ARM_ARCH__ >= 6 && !defined(CONFIG_CPU_V7M)
mrs \reg , cpsr
eor \reg, \reg, #HYP_MODE
tst \reg, #MODE_MASK
bic \reg , \reg , #MODE_MASK
......
I found there is a HYP_MODE and learned through some brief introduction that it is hypervisor mode.But I failed to get its detailed introduction in armv7 architecture reference manual.Actually I did't find the word in the manual.It can't be equal to svc mode,because svc mode is also mentioned in the context of the code.
Besides,I noted that there is ':req' after the 'reg' which is a parameter.I've learned ':req' means the 'reg' can't be empty.But I can't find the definition of ':req' in gnu arm assembler manual.
It may be simple question.But I want to learn how to find these answers in official manual.(I still believe answers are in these manual.Maybe I did't choose the corresponding version)