mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Fix condition
This commit is contained in:
parent
c99dcc113d
commit
61c53c127c
@ -114,7 +114,7 @@ EXTERNC void multiboot_main(uintptr_t Magic, uintptr_t Info)
|
|||||||
mb2binfo.Memory.Entries = EntryCount;
|
mb2binfo.Memory.Entries = EntryCount;
|
||||||
for (uint32_t i = 0; i < EntryCount; i++)
|
for (uint32_t i = 0; i < EntryCount; i++)
|
||||||
{
|
{
|
||||||
if (EntryCount > MAX_MEMORY_ENTRIES)
|
if (i > MAX_MEMORY_ENTRIES)
|
||||||
{
|
{
|
||||||
warn("Too many memory entries, skipping the rest...");
|
warn("Too many memory entries, skipping the rest...");
|
||||||
break;
|
break;
|
||||||
|
@ -114,7 +114,7 @@ EXTERNC void multiboot_main(uintptr_t Magic, uintptr_t Info)
|
|||||||
mb2binfo.Memory.Entries = EntryCount;
|
mb2binfo.Memory.Entries = EntryCount;
|
||||||
for (uint32_t i = 0; i < EntryCount; i++)
|
for (uint32_t i = 0; i < EntryCount; i++)
|
||||||
{
|
{
|
||||||
if (EntryCount > MAX_MEMORY_ENTRIES)
|
if (i > MAX_MEMORY_ENTRIES)
|
||||||
{
|
{
|
||||||
warn("Too many memory entries, skipping the rest...");
|
warn("Too many memory entries, skipping the rest...");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user