mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
include: Move RISCV_PLATFORM_xyz defines to sbi_platform.h
The struct sbi_platform related defines RISCV_PLATFORM_xyz should be in sbi_platform.h so that we can keep these defines in-sync with changes in struct sbi_platform. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
#ifndef __SBI_PLATFORM_H__
|
||||
#define __SBI_PLATFORM_H__
|
||||
|
||||
#define SBI_PLATFORM_NAME_OFFSET (0x0)
|
||||
#define SBI_PLATFORM_FEATURES_OFFSET (0x40)
|
||||
#define SBI_PLATFORM_HART_COUNT_OFFSET (0x48)
|
||||
#define SBI_PLATFORM_HART_STACK_SIZE_OFFSET (0x4c)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#include <sbi/sbi_scratch.h>
|
||||
|
||||
enum sbi_platform_features {
|
||||
@@ -240,3 +247,5 @@ static inline int sbi_platform_system_shutdown(struct sbi_platform *plat,
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user