diff options
author | Soby Mathew <soby.mathew@arm.com> | 2016-01-12 10:28:42 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2016-01-13 09:39:11 +0000 |
commit | 7b3aabc0cfed0615b03887edfda12ce46a3a8335 (patch) | |
tree | 7be9d20bdc21b000f5b5b225a17aaae2a7fdcf0f | |
parent | 5773b5322d0b4067186d64af53a53409e3bf3e31 (diff) |
Use designated initialization in DECLARE_RT_SVC macro
This patch changes the anonymous initialization of `rt_svc_desc_t` structure
by the `DECLARE_RT_SVC` macro to designated initialization. This makes the
code more robust and less sensitive to potential changes to the
`rt_svc_desc_t` structure.
Change-Id: If6f1586730c0d29d92ef09e07eff7dd0d22857c7
-rw-r--r-- | include/bl31/runtime_svc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/bl31/runtime_svc.h b/include/bl31/runtime_svc.h index 30ba29f0..87f2dd2c 100644 --- a/include/bl31/runtime_svc.h +++ b/include/bl31/runtime_svc.h @@ -89,12 +89,12 @@ typedef struct rt_svc_desc { #define DECLARE_RT_SVC(_name, _start, _end, _type, _setup, _smch) \ static const rt_svc_desc_t __svc_desc_ ## _name \ __attribute__ ((section("rt_svc_descs"), used)) = { \ - _start, \ - _end, \ - _type, \ - #_name, \ - _setup, \ - _smch } + .start_oen = _start, \ + .end_oen = _end, \ + .call_type = _type, \ + .name = #_name, \ + .init = _setup, \ + .handle = _smch } /* * Compile time assertions related to the 'rt_svc_desc' structure to: |