ARM-software / tf-issues

Issue tracking for the ARM Trusted Firmware project
37 stars 16 forks source link

bl2_main() does not pass platform data in X1 to BL3-1 #173

Closed athoelke closed 10 years ago

athoelke commented 10 years ago

In bl2_main() the value zero is passed to BL3-1 in X1, which contradicts the specification in #133 which states that this parameter can pass platform specific information to BL3-1.

The call to bl2_plat_set_bl31_ep_info() in line 116 should allow the platform to set this parameter, but this is being ignored by the code at the end of the function.

achingupta commented 10 years ago

Since the spec says that only x0 should contain generic information, the generic code in bl2_main() should only ensure that this parameter is set. This means that bl2_run_bl31() should loose its third parameter i.e. arg2 as setting it is the platform's responsibility. Does that make sense?