mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 00:10:43 +00:00
Rebases onto origin/main and retires the paused in-tree native-first workspace, legacy scripts, legacy CI, and native-only docs per ADR 0006 (preserving full history permanently at Git tag native-first-final). Addresses all maintainer review findings on PR #406: - Isolate CrossOver/Wine child process environment in bx-cli (env_clear + minimal allowlist + opt-in --inherit-env, with unit tests) - Replace naive objdump grep in scripts/build-shims.sh with strict PE Export Directory verification (exact names, ordinals, forwarders, 0 extra exports, 0 forbidden MinGW imports across all 16 DLLs / 102 exports) - Restore global * @MacosPorters/maintainers fallback in .github/CODEOWNERS alongside per-track rules - Restore independent-verification, claims/evidence-class, provenance-first, and contributor clean-room protections in AGENTS.md - Unify docs/roadmap.md, CONTRIBUTING.md, README.md, docs/README.md, THIRD_PARTY_NOTICES.md, and CHANGELOG.md around Milestones M0-M6 and ADR 0006 Signed-off-by: ates <ahmetrizaates@hotmail.com>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
#ifndef BETTERXEN_BX_XMEM_INTERNAL_H
|
|
#define BETTERXEN_BX_XMEM_INTERNAL_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* Internal cross-DLL contract between Track B (xmem.dll) and Track C (d3d12_xs.dll).
|
|
* Allows d3d12_xs placed-resource and virtual-memory translation to query allocations
|
|
* created through XMemVirtualAlloc / XMemAllocatePhysicalPages / XMemMapPhysicalPages.
|
|
*/
|
|
|
|
typedef struct bx_xmem_region_info {
|
|
uint64_t base_va;
|
|
uint64_t size_bytes;
|
|
uint64_t page_size_bytes;
|
|
uint32_t protect_flags;
|
|
uint32_t mem_type_flags;
|
|
uint64_t physical_tag;
|
|
} bx_xmem_region_info_t;
|
|
|
|
typedef struct bx_xmem_stats {
|
|
uint64_t title_limit_bytes;
|
|
uint64_t committed_virtual_bytes;
|
|
uint64_t allocated_physical_bytes;
|
|
uint64_t peak_committed_bytes;
|
|
} bx_xmem_stats_t;
|
|
|
|
/* Query the XMem region covering `va`. Returns 1 if tracked, 0 otherwise. */
|
|
int bx_xmem_query_region(uint64_t va, bx_xmem_region_info_t* out_info);
|
|
|
|
/* Snapshot current XMem usage against the active Lockhart/Anaconda cap. */
|
|
void bx_xmem_get_internal_stats(bx_xmem_stats_t* out_stats);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* BETTERXEN_BX_XMEM_INTERNAL_H */
|