diff options
| author | Subrahmanya Lingappa <[email protected]> | 2024-08-06 10:38:46 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-12-06 09:26:35 +0530 |
| commit | fdd72635368beb5f9c85533b92abb31adee20406 (patch) | |
| tree | 51357007f62fa2383526ef00e32bb8b2e8876130 /include | |
| parent | 13f55f33a1d361784fd250b9e3897918b7ae82d4 (diff) | |
lib: sbi: Add optional resume address to hart suspend
Add an optional resume address to the platform specific hart suspend call.
Signed-off-by: Subrahmanya Lingappa <[email protected]>
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_hsm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/sbi/sbi_hsm.h b/include/sbi/sbi_hsm.h index ae098f45..38f90516 100644 --- a/include/sbi/sbi_hsm.h +++ b/include/sbi/sbi_hsm.h @@ -40,8 +40,12 @@ struct sbi_hsm_device { * * For successful non-retentive suspend, the hart will resume from * the warm boot entry point. + * + * NOTE: mmode_resume_addr(resume address) is optional hence it + * may or may not be honored by the platform. If its not honored + * then platform must ensure to resume from the warmboot address. */ - int (*hart_suspend)(u32 suspend_type); + int (*hart_suspend)(u32 suspend_type, ulong mmode_resume_addr); /** * Perform platform-specific actions to resume from a suspended state. |
