forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
[ARCH] arm32This bug impacts ARCH=armThis bug impacts ARCH=arm[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.17This bug was fixed in Linux 5.17This bug was fixed in Linux 5.17
Description
After commit b9baf5c8c5c3 ("ARM: Spectre-BHB workaround"):
$ make -skj"$(nproc)" ARCH=arm LLVM=1 mrproper aspeed_g5_defconfig all
...
<instantiation>:1:21: error: invalid operand for instruction
mcr p15, 0, r0, c7, r5, 4
^
<instantiation>:50:2: note: while in macro instantiation
isb
^
arch/arm/kernel/entry-armv.S:1198:2: note: while in macro instantiation
vector_stub fiq, 0x00000011, 4
^
...
Turns out that GNU as agrees with this as well, with a bit more of a helpful error message:
$ make -skj"$(nproc)" ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mrproper aspeed_g5_defconfig all
...
arch/arm/mm/cache-v7.S: Assembler messages:
arch/arm/mm/cache-v7.S:42: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:69: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:142: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:179: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:312: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
...
Metadata
Metadata
Assignees
Labels
[ARCH] arm32This bug impacts ARCH=armThis bug impacts ARCH=arm[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.17This bug was fixed in Linux 5.17This bug was fixed in Linux 5.17