hi, I was looking at some code recently where a module was using a certain set of library classes, declared through the dsc file. The function _ModuleEntryPoint() calls the AutoGen generated function, ProcessLibraryConstructorList(), which then proceeds to call the constructor functions of the individual library classes.
The ProcessLibraryConstructorList() does not return any status value. There are ASSERT_RETURN_ERROR() checks that are being put after every constructor function call. However, a platform might choose to not fail on these asserts. So there could be a situation where one of the library constructor calls has failed, but the module entry point function still gets called. Hence I wanted to get an understanding on the rationale behind this design. Ideally, in case of such an error scenario, would it not be prudent to not proceed with calling the module's entry function. -sughosh -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#122185): https://edk2.groups.io/g/devel/message/122185 Mute This Topic: https://groups.io/mt/121529778/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
