upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/boot.md
diff options
context:
space:
mode:
authorQemmHD <290605352+QemmHD@users.noreply.github.com>2026-11-24 10:22:49 -0500
committerQemmHD <290605352+QemmHD@users.noreply.github.com>2026-11-24 10:32:26 -0500
commitba142e7ff519bcde01a54b4ac3556539dbc53df2 (patch)
tree3cfa6d04fd90230d464a9e6f9ca75bdb3b6d5f93 /docs/boot.md
parent119d5b920cfeddf9bb811102907b1078a7a4195c (diff)
docs: BL-1, main already clears the /GA index-0 stop; boot.md and the stop table say what it carries
docs/boot_leads.md sends a reader to implement BL-1 because "the retail run on main ends in the stop-4 shape". That line comes from retail_boot_intel_host.md, measured at main 867d922f. b7a3fed28 (the loader rewrites a /GA executable's index-0 TLS reads) landed on main after that, and 4710549af after it, so the lead as written describes a main that no longer exists. The integration tree's #4313 is a second design for the same stop (the runtime's own EXE gives up index 0 at process start), not a fix main is missing. - boot.md, triage step 3: what the stop looks like, what load() does about it, the log line that counts the rewritten reads, the switch that turns the rewrite off, and the two tests. - retail_boot_chain.md, row 4: #4313 is what the measured tree had; main carries b7a3fed28 and 4710549af. - boot_leads.md, BL-1: a Status entry with the same, and what is left of the lead. Nothing was run on the retail executable for this (it needs game files), and all three places say so. Tested at main a28927849: tests/test_docs_*.py, 47 pass; the repository-consistency set (test_cmake_*, test_shader_stage_resume, test_runtime_paths, test_docs_*, test_make_game_*, test_check_no_game_data*, test_run_semantic_tests), 566 pass and 5 skip. scripts/check_no_game_data.py on the three files: clean. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
Diffstat (limited to 'docs/boot.md')
-rw-r--r--docs/boot.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/boot.md b/docs/boot.md
index 7367dd91d..ec27b3146 100644
--- a/docs/boot.md
+++ b/docs/boot.md
@@ -114,6 +114,17 @@ Read the startup trace first; the first event that is not the expected one is th
114 TLS index. The summary shows the address and phase of the last observed TLS callback 114 TLS index. The summary shows the address and phase of the last observed TLS callback
115 (`last_tls_callback` in JSON). The loader records it before invoking the callback, so the record gives no 115 (`last_tls_callback` in JSON). The loader records it before invoking the callback, so the record gives no
116 completion result. The loader's own TLS is checked by `run_tiny_game_tls`. 116 completion result. The loader's own TLS is checked by `run_tiny_game_tls`.
117 An access violation in CRT startup before the first D3D12 call can be the TLS index instead: code built with
118 `/GA` reads its thread-local data at module index 0 without `_tls_index`, and index 0 belongs to `gta6rt.exe`
119 (stop 4 of [retail_boot_chain.md](retail_boot_chain.md)). `load()` rewrites those reads in a mapped executable
120 so that they reach the image's own block, and every other mapped module with a TLS directory has an index of
121 its own ([`runtime/README.md`](../runtime/README.md), "PE loader"). The stderr log has one
122 `[rt] loader: <image>: <N> index-0 TLS reads` line for the executable; `N` 0 on an image that faults there
123 means its reads have a shape the rewrite does not know. `LEONIDA_TLS_GA_PATCH=0` turns the rewrite off, to
124 see the stop without it. `loader_tls` checks both ways with a synthetic `/GA` executable mapped beside a DLL
125 that has TLS of its own, on the loading thread and on a new one, and `run_tiny_game_ga_tls` runs a `/GA`
126 build of the stand-in game through `gta6rt --run`. Not confirmed here on the retail executable: that needs
127 game files.
1174. **`exception`** — code, `at`, access/address and the stack frames. The loader's vectored handler only records, 1284. **`exception`** — code, `at`, access/address and the stack frames. The loader's vectored handler only records,
118 so the process behaviour is the same with or without the trace. When the report reaches `--limit`, it reserves 129 so the process behaviour is the same with or without the trace. When the report reaches `--limit`, it reserves
119 the final slot for the last observed exception. The trace also includes handled exceptions, so the last 130 the final slot for the last observed exception. The trace also includes handled exceptions, so the last