summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2023-09-01 14:43:34 +0530
committerAnup Patel <[email protected]>2023-09-24 11:39:30 +0530
commite6125c3c4f53ba0c1029b06e17f38f3c982d9815 (patch)
treef0d08265ad07670c52f6eef3326dfb45c7ae3734 /include
parentd1e4dff45b2d3ce2c88d09e98ae5795d323b2267 (diff)
lib: sbi: Remove sbi_platform_hart_index/invalid() functions
The hartid to hartindex mapping is now tracked in sbi_scratch so we don't need sbi_platform_hart_index() and sbi_platform_hart_invalid() functions hence let us remove them. Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_platform.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h
index e6a4a317..389203b0 100644
--- a/include/sbi/sbi_platform.h
+++ b/include/sbi/sbi_platform.h
@@ -263,16 +263,6 @@ _Static_assert(
((__p)->features & SBI_PLATFORM_HAS_MFAULTS_DELEGATION)
/**
- * Get HART index for the given HART
- *
- * @param plat pointer to struct sbi_platform
- * @param hartid HART ID
- *
- * @return 0 <= value < hart_count for valid HART otherwise -1U
- */
-u32 sbi_platform_hart_index(const struct sbi_platform *plat, u32 hartid);
-
-/**
* Get the platform features in string format
*
* @param plat pointer to struct sbi_platform
@@ -372,24 +362,6 @@ static inline u32 sbi_platform_hart_stack_size(const struct sbi_platform *plat)
}
/**
- * Check whether given HART is invalid
- *
- * @param plat pointer to struct sbi_platform
- * @param hartid HART ID
- *
- * @return true if HART is invalid and false otherwise
- */
-static inline bool sbi_platform_hart_invalid(const struct sbi_platform *plat,
- u32 hartid)
-{
- if (!plat)
- return true;
- if (plat->hart_count <= sbi_platform_hart_index(plat, hartid))
- return true;
- return false;
-}
-
-/**
* Check whether given HART is allowed to do cold boot
*
* @param plat pointer to struct sbi_platform