BuildSystem: binutils1.39->1.44, gcc12.2.0->15.1.0

This commit is contained in:
2025-06-19 19:00:50 +03:00
parent 9c86e5e54d
commit 32c35a822b
9 changed files with 387 additions and 18 deletions

View File

@@ -68,7 +68,9 @@ namespace Kernel
bool has_fd(int fd) const
{
if (fd < 0 || static_cast<size_t>(fd) >= events.size())
// For some reason having (fd < 0 || ...) makes GCC 15.1.0
// think bitmap access can be out of bounds...
if (static_cast<size_t>(fd) >= events.size())
return false;
return bitmap[fd / 32] & (1u << (fd % 32));
}

View File

@@ -179,7 +179,7 @@ namespace Kernel
BAN::Atomic<bool> m_smp_free_lock { false };
SMPMessage* m_smp_free { nullptr };
SMPMessage* m_smp_message_storage;
SMPMessage* m_smp_message_storage { nullptr };
void* m_current_page_table { nullptr };

View File

@@ -13,7 +13,7 @@ namespace Kernel
long ret;
asm volatile("int %[irq]"
: "=a"(ret)
: [irq]"i"(IRQ_SYSCALL)
: [irq]"i"(static_cast<int>(IRQ_SYSCALL)) // WTF GCC 15
, "a"(syscall)
, "b"((uintptr_t)arg1)
, "c"((uintptr_t)arg2)