1 Star 0 Fork 61

ShenYage/edk2

forked from src-openEuler/edk2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0082-fixup-fdt-parse-error.patch 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
Wu Xiaotian 提交于 2024-11-20 09:23 +08:00 . Update LoongArch virtual machine
From bdbeb6e653d7bbaa5eb4ad104119abfc7030c285 Mon Sep 17 00:00:00 2001
From: Xianglai Li <lixianglai@loongson.cn>
Date: Mon, 25 Nov 2024 16:16:39 +0800
Subject: [PATCH] fixup fdt parse error
Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
---
.../Library/SerialPortLib/EarlySerialPortLib16550.c | 2 +-
Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/EarlySerialPortLib16550.c b/Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/EarlySerialPortLib16550.c
index c713c6e9..dd64a000 100644
--- a/Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/EarlySerialPortLib16550.c
+++ b/Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/EarlySerialPortLib16550.c
@@ -155,7 +155,7 @@ GetSerialConsolePortAddress (
}
// Determine the actual path length, as a colon terminates the path.
- Path = ScanMem8 (Prop, ':', PropSize);
+ Path = ScanMem8 (Prop, PropSize, (UINT8)":");
if (Path == NULL) {
PathLen = AsciiStrLen (Prop);
} else {
diff --git a/Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c b/Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c
index 84bb8e8a..02982cd0 100644
--- a/Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c
+++ b/Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c
@@ -193,7 +193,7 @@ GetSerialConsolePortAddress (
}
// Determine the actual path length, as a colon terminates the path.
- Path = ScanMem8 (Prop, ':', PropSize);
+ Path = ScanMem8 (Prop, PropSize, (UINT8)":");
if (Path == NULL) {
PathLen = AsciiStrLen (Prop);
} else {
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jacob1996/edk2.git
git@gitee.com:jacob1996/edk2.git
jacob1996
edk2
edk2
master

搜索帮助