瀏覽代碼

[DM/FDT] Fix garble when booting

Fix garble caused by empty implementation of earlycon series
function in driver.If driver doesn't offer earlycon_id or rt_f
dt_earlycon_id.setup function but open option, the checking
of best_earlycon_id will failed.

Signed-off-by: 1078249029 <1078249029@qq.com>
1078249029 1 月之前
父節點
當前提交
9d1fb86020
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/drivers/ofw/fdt.c

+ 1 - 1
components/drivers/ofw/fdt.c

@@ -23,7 +23,7 @@
 
 
 #include "ofw_internal.h"
 #include "ofw_internal.h"
 
 
-struct rt_fdt_earlycon fdt_earlycon rt_section(".bss.noclean.earlycon");
+struct rt_fdt_earlycon fdt_earlycon;
 
 
 RT_OFW_SYMBOL_TYPE_RANGE(earlycon, struct rt_fdt_earlycon_id, _earlycon_start = {}, _earlycon_end = {});
 RT_OFW_SYMBOL_TYPE_RANGE(earlycon, struct rt_fdt_earlycon_id, _earlycon_start = {}, _earlycon_end = {});