--- zzzz-none-000/linux-4.19.183/arch/arm/boot/compressed/head.S 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/arch/arm/boot/compressed/head.S 2023-06-28 08:54:18.000000000 +0000 @@ -206,7 +206,12 @@ mov r4, pc and r4, r4, #0xf8000000 /* Determine final kernel image address. */ +#if defined(CONFIG_BCM_KF_OPTEE) + ldr r0,=#TEXT_OFFSET + add r4, r4, r0 +#else add r4, r4, #TEXT_OFFSET +#endif #else ldr r4, =zreladdr #endif