fix hart_stack_size change
This commit is contained in:
@@ -136,7 +136,7 @@ struct sbi_platform_operations {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** Platform default per-HART stack size for exception/interrupt handling */
|
/** Platform default per-HART stack size for exception/interrupt handling */
|
||||||
#define SBI_PLATFORM_DEFAULT_HART_STACK_SIZE 16384
|
#define SBI_PLATFORM_DEFAULT_HART_STACK_SIZE 8192
|
||||||
|
|
||||||
/** Representation of a platform */
|
/** Representation of a platform */
|
||||||
struct sbi_platform {
|
struct sbi_platform {
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#define SOPHGO_MANGO_TIMER_BASE 0x70ac000000UL
|
#define SOPHGO_MANGO_TIMER_BASE 0x70ac000000UL
|
||||||
#define SOPHGO_MANGO_TIMER_OFFSET 0x10000UL
|
#define SOPHGO_MANGO_TIMER_OFFSET 0x10000UL
|
||||||
|
|
||||||
|
extern struct sbi_platform platform;
|
||||||
static u32 selected_hartid = -1;
|
static u32 selected_hartid = -1;
|
||||||
|
|
||||||
static bool mango_cold_boot_allowed(u32 hartid,
|
static bool mango_cold_boot_allowed(u32 hartid,
|
||||||
@@ -65,6 +66,10 @@ static int mango_extensions_init(const struct fdt_match *match,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
static void mango_fw_init(void *fdt, const struct fdt_match *match)
|
||||||
|
{
|
||||||
|
platform.hart_stack_size = 16384;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct fdt_match sophgo_mango_match[] = {
|
static const struct fdt_match sophgo_mango_match[] = {
|
||||||
{ .compatible = "sophgo,mango" },
|
{ .compatible = "sophgo,mango" },
|
||||||
@@ -73,6 +78,7 @@ static const struct fdt_match sophgo_mango_match[] = {
|
|||||||
|
|
||||||
const struct platform_override sophgo_mango = {
|
const struct platform_override sophgo_mango = {
|
||||||
.match_table = sophgo_mango_match,
|
.match_table = sophgo_mango_match,
|
||||||
|
.fw_init = mango_fw_init,
|
||||||
.cold_boot_allowed = mango_cold_boot_allowed,
|
.cold_boot_allowed = mango_cold_boot_allowed,
|
||||||
.early_init = mango_early_init,
|
.early_init = mango_early_init,
|
||||||
.extensions_init = mango_extensions_init,
|
.extensions_init = mango_extensions_init,
|
||||||
|
|||||||
Reference in New Issue
Block a user