1 #ifndef out_arm_core_include_generated_asm_defines_h 2 #define out_arm_core_include_generated_asm_defines_h 3 #define THREAD_SMC_ARGS_X0 0 /* offsetof(struct thread_smc_args, a0)" */ 4 #define THREAD_SMC_ARGS_SIZE 64 /* sizeof(struct thread_smc_args)" */ 5 #define THREAD_SVC_REG_X0 16 /* offsetof(struct thread_svc_regs, x0)" */ 6 #define THREAD_SVC_REG_X2 32 /* offsetof(struct thread_svc_regs, x2)" */ 7 #define THREAD_SVC_REG_X5 56 /* offsetof(struct thread_svc_regs, x5)" */ 8 #define THREAD_SVC_REG_X6 64 /* offsetof(struct thread_svc_regs, x6)" */ 9 #define THREAD_SVC_REG_X30 136 /* offsetof(struct thread_svc_regs, x30)" */ 10 #define THREAD_SVC_REG_ELR 0 /* offsetof(struct thread_svc_regs, elr)" */ 11 #define THREAD_SVC_REG_SPSR 8 /* offsetof(struct thread_svc_regs, spsr)" */ 12 #define THREAD_SVC_REG_SP_EL0 144 /* offsetof(struct thread_svc_regs, sp_el0)" */ 13 #define THREAD_SVC_REG_SIZE 160 /* sizeof(struct thread_svc_regs)" */ 14 #define THREAD_ABT_REG_X0 0 /* offsetof(struct thread_abort_regs, x0)" */ 15 #define THREAD_ABT_REG_X2 16 /* offsetof(struct thread_abort_regs, x2)" */ 16 #define THREAD_ABT_REG_X30 240 /* offsetof(struct thread_abort_regs, x30)" */ 17 #define THREAD_ABT_REG_SPSR 256 /* offsetof(struct thread_abort_regs, spsr)" */ 18 #define THREAD_ABT_REGS_SIZE 272 /* sizeof(struct thread_abort_regs)" */ 19 #define THREAD_CTX_KERN_SP 328 /* offsetof(struct thread_ctx, kern_sp)" */ 20 #define THREAD_CTX_STACK_VA_END 288 /* offsetof(struct thread_ctx, stack_va_end)" */ 21 #define THREAD_CTX_REGS_SP 0 /* offsetof(struct thread_ctx_regs, sp)" */ 22 #define THREAD_CTX_REGS_X0 24 /* offsetof(struct thread_ctx_regs, x[0])" */ 23 #define THREAD_CTX_REGS_X1 32 /* offsetof(struct thread_ctx_regs, x[1])" */ 24 #define THREAD_CTX_REGS_X2 40 /* offsetof(struct thread_ctx_regs, x[2])" */ 25 #define THREAD_CTX_REGS_X4 56 /* offsetof(struct thread_ctx_regs, x[4])" */ 26 #define THREAD_CTX_REGS_X19 176 /* offsetof(struct thread_ctx_regs, x[19])" */ 27 #define THREAD_CTX_REGS_TPIDR_EL0 272 /* offsetof(struct thread_ctx_regs, tpidr_el0)" */ 28 #define THREAD_USER_MODE_REC_CTX_REGS_PTR 0 /* offsetof(struct thread_user_mode_rec, ctx_regs_ptr)" */ 29 #define THREAD_USER_MODE_REC_EXIT_STATUS0_PTR 8 /* offsetof(struct thread_user_mode_rec, exit_status0_ptr)" */ 30 #define THREAD_USER_MODE_REC_X19 32 /* offsetof(struct thread_user_mode_rec, x[0])" */ 31 #define THREAD_USER_MODE_REC_SIZE 128 /* sizeof(struct thread_user_mode_rec)" */ 32 #define THREAD_CORE_LOCAL_X0 0 /* offsetof(struct thread_core_local, x[0])" */ 33 #define THREAD_CORE_LOCAL_X2 16 /* offsetof(struct thread_core_local, x[2])" */ 34 #define THREAD_CTX_SIZE 1792 /* sizeof(struct thread_ctx)" */ 35 #define THREAD_CORE_LOCAL_TMP_STACK_VA_END 32 /* offsetof(struct thread_core_local, tmp_stack_va_end)" */ 36 #define THREAD_CORE_LOCAL_CURR_THREAD 40 /* offsetof(struct thread_core_local, curr_thread)" */ 37 #define THREAD_CORE_LOCAL_FLAGS 44 /* offsetof(struct thread_core_local, flags)" */ 38 #define THREAD_CORE_LOCAL_ABT_STACK_VA_END 48 /* offsetof(struct thread_core_local, abt_stack_va_end)" */ 39 #define CORE_MMU_CONFIG_SIZE 40 /* sizeof(struct core_mmu_config)" */ 40 #define CORE_MMU_CONFIG_LOAD_OFFSET 32 /* offsetof(struct core_mmu_config, load_offset)" */ 41 #define BOOT_EMBDATA_HASHES_OFFSET 8 /* offsetof(struct boot_embdata, hashes_offset)" */ 42 #define BOOT_EMBDATA_HASHES_LEN 12 /* offsetof(struct boot_embdata, hashes_len)" */ 43 #define BOOT_EMBDATA_RELOC_OFFSET 16 /* offsetof(struct boot_embdata, reloc_offset)" */ 44 #define BOOT_EMBDATA_RELOC_LEN 20 /* offsetof(struct boot_embdata, reloc_len)" */ 45 #endif 46