forked from Mirrors/opensbi
platform: Make the platform
read-only
platform should be a read-only variable, if it is placed in the data segment, it may be exploited. Signed-off-by: Xiang Wang <wxjstz@126.com>
This commit is contained in:
@@ -98,7 +98,7 @@ static int k210_system_shutdown(u32 type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct sbi_platform platform = {
|
||||
const struct sbi_platform platform = {
|
||||
|
||||
.name = "Kendryte K210",
|
||||
.features = SBI_PLATFORM_HAS_TIMER_VALUE,
|
||||
|
Reference in New Issue
Block a user