Skip to content

Commit f3a6085

Browse files
committed
device sharing for cva6 and unmatched
1 parent 14e5ae7 commit f3a6085

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sm/plat/fpga/ariane/platform.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ static int ariane_early_init(bool cold_boot)
7373
*/
7474
static int ariane_final_init(bool cold_boot)
7575
{
76-
void *fdt;
77-
sm_init(cold_boot);
76+
void *fdt = fdt_get_address();
77+
sm_init(cold_boot, fdt);
7878
if (!cold_boot)
7979
return 0;
8080

81-
fdt = fdt_get_address();
8281
fdt_fixups(fdt);
8382

8483
return 0;

sm/plat/hifive/unmatched/unmatched.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "sm.h"
33

44
static int unmatched_final_init(bool cold_boot, const struct fdt_match *match) {
5-
sm_init(cold_boot);
5+
sm_init(cold_boot, fdt_get_address());
66
return sifive_fu740_final_init(cold_boot, match);
77
}
88

0 commit comments

Comments
 (0)