1 Star 0 Fork 16

Sevever/grub2_oc

forked from OpenCloudOS Stream/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0050-ppc64-cas-new-scope.patch 948 Bytes
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2024-04-07 16:45 . update patches
From 577c6adc253866961c38884cea8eca145dd0a022 Mon Sep 17 00:00:00 2001
From: nilusyi <[email protected]>
Date: Mon, 1 Apr 2024 16:40:45 +0800
Subject: [PATCH 050/272] ppc64 cas new scope
Signed-off-by: Michael Chang <[email protected]>
---
grub-core/normal/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
index baa63b2ed..e99d25bef 100644
--- a/grub-core/normal/main.c
+++ b/grub-core/normal/main.c
@@ -283,10 +283,11 @@ grub_normal_execute (const char *config, int nested, int batch)
int boot;
boot = 0;
char *script;
+ char *dummy[1] = { NULL };
script = grub_malloc (1024);
if (! grub_ieee1275_cas_reboot (script))
{
- if (! grub_script_execute_sourcecode (script))
+ if (! grub_script_execute_new_scope (script, 0, dummy))
boot = 1;
}
grub_free (script);
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sevever/grub2_oc.git
[email protected]:sevever/grub2_oc.git
sevever
grub2_oc
grub2_oc
master

搜索帮助