mirror of
https://github.com/8damon/Blackbird-Platform
synced 2026-06-21 13:41:12 +00:00
005f2b7e07
Move all globals and helpers into BK_RUNTIME_INTERNAL namespace and include runtime_private.h as the shared definition header. Add BkDbgLog (tagged OutputDebugStringA wrapper with PID/TID/tick prefix) and BkRuntimeReportFault as the shared logging primitives for all runtime translation units. Introduce the launch-gate global state: g_LaunchGatePages, g_LaunchGateParkContexts, g_LaunchGatePrepared, g_LaunchGateReady, g_LaunchGateDeferredOpen, and g_LaunchGateCallbacks. Track g_LastPublishedHookReadyMask atomically to detect state changes without sending duplicate hook-ready notifications. Refs #16.