This function is used to get golden SHA In case of EL1 Non-Secure mode, this function generates an SMC call to TF-A. The SMC request goes to the PLM through the TF-A. This function reads the response of the SMC call and returns the status.
Prototype
XStatus XSem_CmdNpiGetGldnSha(XIpiPsu *IpiInst, XSemIpiResp *Resp, XSem_DescriptorData *DescData);
Parameters
The following table lists the XSem_CmdNpiGetGldnSha function arguments.
| Type | Member | Description |
|---|---|---|
| XIpiPsu * | IpiInst | Pointer to IPI driver instance |
XSemIpiResp
* |
Resp |
Structure Pointer of IPI response
|
XSem_DescriptorData
* |
DescData | Structure pointer to hold total descriptor count, golden SHA and information related to descriptors |
Returns
This API returns the success or failure.- XST_FAILURE: On NPI golden SHA retrieve failure
- XST_SUCCESS: On NPI golden SHA retrieve success