--- zzzz-none-000/linux-4.1.52/arch/arm64/kernel/asm-offsets.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/arch/arm64/kernel/asm-offsets.c 2022-03-02 11:37:12.000000000 +0000 @@ -28,6 +28,9 @@ #include #include #include +#if defined(CONFIG_BCM_KF_OPTEE) +#include +#endif int main(void) { @@ -158,5 +161,13 @@ DEFINE(SLEEP_SAVE_SP_PHYS, offsetof(struct sleep_save_sp, save_ptr_stash_phys)); DEFINE(SLEEP_SAVE_SP_VIRT, offsetof(struct sleep_save_sp, save_ptr_stash)); #endif + +#if defined(CONFIG_BCM_KF_OPTEE) + DEFINE(ARM_SMCCC_RES_X0_OFFS, offsetof(struct arm_smccc_res, a0)); + DEFINE(ARM_SMCCC_RES_X2_OFFS, offsetof(struct arm_smccc_res, a2)); + DEFINE(ARM_SMCCC_QUIRK_ID_OFFS, offsetof(struct arm_smccc_quirk, id)); + DEFINE(ARM_SMCCC_QUIRK_STATE_OFFS, offsetof(struct arm_smccc_quirk, state)); +#endif /* CONFIG_BCM_KF_OPTEE */ + return 0; }