From 86afd39dc3358617351f1510238252f2a1576540 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sun, 30 Jul 2023 10:00:18 +0100 Subject: [PATCH] [*] Runtime config padding --- Include/Aurora/Runtime.hpp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/Include/Aurora/Runtime.hpp b/Include/Aurora/Runtime.hpp index beefbf17..b718b016 100644 --- a/Include/Aurora/Runtime.hpp +++ b/Include/Aurora/Runtime.hpp @@ -323,7 +323,7 @@ namespace Aurora { // WARN: these values are not final - bool bNoThreadNames { false }; + bool bNoThreadNames { false }; bool bPlatformIsSMPProcessorOptimized { true }; // Whether to attempt to using mm_pause or similar before yielding into the kernel AuUInt8 uSpinLoopPowerA { 7 }; // Nudgable spinloop power. This is our local userland niceness factor; where 1 << n is the amount of smt-yield instructions to stall for // This is comparable to Win32's SetCriticalSectionSpinCount applied across every single AuThreadPrimitives try-lock and lock. @@ -337,19 +337,25 @@ namespace Aurora bool bPreferEmulatedWakeOnAddress { false }; }; + struct DummyConfig + { + + }; + struct RuntimeStartInfo { ConsoleConfig console; - CryptoConfig crypto; - TelemetryConfig telemetry; - AsyncConfig async; - FIOConfig fio; - DebugConfig debug; - ThreadingConfig threadingConfig; + AuAlignTo<512, CryptoConfig> crypto; + AuAlignTo<512, TelemetryConfig> telemetry; + AuAlignTo<32, AsyncConfig> async; + AuAlignTo<32, FIOConfig> fio; + AuAlignTo<64, DebugConfig> debug; + AuAlignTo<32, ThreadingConfig> threadingConfig; + AuAlignTo<24, DummyConfig> padding; bool bFIODisableBatching { true }; bool bIOLinuxHasProcIpcPerms { false }; }; - + /** * @brief Initializes Aurora Runtime for the first and only time * @return