diff options
author | Dan Handley <dan.handley@arm.com> | 2014-04-10 15:37:22 +0100 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-05-06 13:57:48 +0100 |
commit | fb037bfb7cbf7b404c069b4ebac5a10059d948b1 (patch) | |
tree | 7039b044f48574085b3d3c6a2e7c20d41a87da20 /services/spd/tspd/tspd_common.c | |
parent | c5945735a9705675201d2799654348425f28f551 (diff) |
Always use named structs in header files
Add tag names to all unnamed structs in header files. This
allows forward declaration of structs, which is necessary to
reduce header file nesting (to be implemented in a subsequent
commit).
Also change the typedef names across the codebase to use the _t
suffix to be more conformant with the Linux coding style. The
coding style actually prefers us not to use typedefs at all but
this is considered a step too far for Trusted Firmware.
Also change the IO framework structs defintions to use typedef'd
structs to be consistent with the rest of the codebase.
Change-Id: I722b2c86fc0d92e4da3b15e5cab20373dd26786f
Diffstat (limited to 'services/spd/tspd/tspd_common.c')
-rw-r--r-- | services/spd/tspd/tspd_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/spd/tspd/tspd_common.c b/services/spd/tspd/tspd_common.c index fcc2765..181f2c8 100644 --- a/services/spd/tspd/tspd_common.c +++ b/services/spd/tspd/tspd_common.c @@ -47,10 +47,10 @@ int32_t tspd_init_secure_context(uint64_t entrypoint, uint32_t rw, uint64_t mpidr, - tsp_context *tsp_ctx) + tsp_context_t *tsp_ctx) { uint32_t scr, sctlr; - el1_sys_regs *el1_state; + el1_sys_regs_t *el1_state; uint32_t spsr; /* Passing a NULL context is a critical programming error */ @@ -110,7 +110,7 @@ int32_t tspd_init_secure_context(uint64_t entrypoint, * 3. Calls el3_exit() so that the EL3 system and general purpose registers * from the tsp_ctx->cpu_ctx are used to enter the secure payload image. ******************************************************************************/ -uint64_t tspd_synchronous_sp_entry(tsp_context *tsp_ctx) +uint64_t tspd_synchronous_sp_entry(tsp_context_t *tsp_ctx) { uint64_t rc; @@ -138,7 +138,7 @@ uint64_t tspd_synchronous_sp_entry(tsp_context *tsp_ctx) * 3. It does not need to save any general purpose or EL3 system register state * as the generic smc entry routine should have saved those. ******************************************************************************/ -void tspd_synchronous_sp_exit(tsp_context *tsp_ctx, uint64_t ret) +void tspd_synchronous_sp_exit(tsp_context_t *tsp_ctx, uint64_t ret) { /* Save the Secure EL1 system register context */ assert(cm_get_context(read_mpidr(), SECURE) == &tsp_ctx->cpu_ctx); |