1 Star 0 Fork 98

Wodahs/grub2

forked from src-openEuler/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-that-patch-28dcf48482-introduced-old-code.patch 885 Bytes
一键复制 编辑 原始数据 按行查看 历史
Xue Liu 提交于 2024-05-28 16:59 . Fix that patch233 introduced old code
From 0bc8d39e5c12e8fefa43962d8a741061cd78c649 Mon Sep 17 00:00:00 2001
From: Xue Liu <[email protected]>
Date: Tue, 28 May 2024 16:49:06 +0800
Subject: [PATCH] Fix that patch 28dcf48482 introduced old code
---
grub-core/kern/efi/mm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c
index 31bffb534414..afad55e98880 100644
--- a/grub-core/kern/efi/mm.c
+++ b/grub-core/kern/efi/mm.c
@@ -501,7 +501,7 @@ filter_memory_map (grub_efi_memory_descriptor_t *memory_map,
#ifdef GRUB_CPU_LOONGARCH64
&& desc->physical_start <= grub_efi_max_usable_address()
#else
- && desc->physical_start <= GRUB_EFI_MAX_USABLE_ADDRESS
+ && desc->physical_start <= GRUB_EFI_MAX_ALLOCATION_ADDRESS
#endif
&& desc->physical_start + PAGES_TO_BYTES (desc->num_pages) > 0x100000
&& desc->num_pages != 0)
--
2.43.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wodahs0/grub2.git
[email protected]:wodahs0/grub2.git
wodahs0
grub2
grub2
master

搜索帮助