summaryrefslogtreecommitdiff
path: root/include/sbi
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-20 14:14:38 +0300
committerAnup Patel <anup@brainfault.org>2020-03-28 11:02:26 +0300
commit7b211ff92482379aa34c0a217e2aeded5713b2d5 (patch)
tree57aa2d7ec20b0ebb953b3d313e45a58c40365686 /include/sbi
parent40b221baffd6bb348b63367784d4f6fcff53c24a (diff)
downloadopensbi-7b211ff92482379aa34c0a217e2aeded5713b2d5.tar.xz
include: sbi_platform: Remove priv parameter from hart_start() callback
The priv parameter in hart_start() platform callback is redundant hence we remove it. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi')
-rw-r--r--include/sbi/sbi_platform.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h
index c47ab46..847e174 100644
--- a/include/sbi/sbi_platform.h
+++ b/include/sbi/sbi_platform.h
@@ -138,8 +138,8 @@ struct sbi_platform_operations {
/** Exit platform timer for current HART */
void (*timer_exit)(void);
- /** Bringup the given hart from previous stage **/
- int (*hart_start)(u32 hartid, ulong saddr, ulong priv);
+ /** Bringup the given hart */
+ int (*hart_start)(u32 hartid, ulong saddr);
/**
* Stop the current hart from running. This call doesn't expect to
* return if success.
@@ -346,18 +346,16 @@ static inline bool sbi_platform_hart_invalid(const struct sbi_platform *plat,
* a generic WFI based approach will be used to start/stop a hart in OpenSBI.
*
* @param plat pointer to struct sbi_platform
- * @param hartid Hart ID
- * @param saddr Physical address in supervisor mode for hart to jump after
- * OpenSBI
- * @param priv A private context data from the caller
+ * @param hartid HART id
+ * @param saddr M-mode start physical address for the HART
*
* @return 0 if sucessful and negative error code on failure
*/
static inline int sbi_platform_hart_start(const struct sbi_platform *plat,
- u32 hartid, ulong saddr, ulong priv)
+ u32 hartid, ulong saddr)
{
if (plat && sbi_platform_ops(plat)->hart_start)
- return sbi_platform_ops(plat)->hart_start(hartid, saddr, priv);
+ return sbi_platform_ops(plat)->hart_start(hartid, saddr);
return SBI_ENOTSUPP;
}