175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
#ifndef GW_REALM_INSTALL_DIAGNOSTIC_H
|
|
#define GW_REALM_INSTALL_DIAGNOSTIC_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
/* One-shot, non-secret failure facts from the existing realm-site installer. */
|
|
struct GwRealmInstallDiagnostic {
|
|
uint32_t failure_class; /* positive magnitude of installer return, 1..4 */
|
|
uint32_t detail; /* guard ordinal, read boolean, plan or transaction code */
|
|
uint32_t read_bytes;
|
|
uint32_t winerror;
|
|
uint32_t admission_reason;
|
|
uint32_t page_state;
|
|
uint32_t page_protect;
|
|
uint32_t page_query_bytes;
|
|
uint32_t page_query_error;
|
|
uint32_t page_type;
|
|
uint32_t page_identity_bits;
|
|
};
|
|
|
|
extern struct GwRealmInstallDiagnostic gw_realm_install_diagnostic;
|
|
|
|
/* Read-only page classification after an exact Realm-site read fails.
|
|
* Identity bits: 1 main image at preferred base, 2 same allocation base,
|
|
* 4 full requested span within the query region, 8 MEM_IMAGE. */
|
|
void gw_realm_install_probe_page(uintptr_t address, size_t bytes,
|
|
struct GwRealmInstallDiagnostic *diagnostic);
|
|
|
|
#endif
|