Commit 3b4fe25
committed
arch: correct the riscv64 module-band comment, and separate two axes
The riscv64 header said modules sit ABOVE the image's _end. They do not:
MODULES_VADDR is _end - 2 GiB and MODULES_END is _start, so the band runs
below the image, the same side as s390. What actually differs between the
two is which end of the image the band's low edge is pinned to, and that is
what decides where MODULES_END_TO_TEXT_OFFSET lands — on the text base for
s390, on _end for riscv64, which is why module_text_bound then subtracts a
minimum image size there. Say that instead.
DIRECTMAP_STATIC and TEXT_TRACKS_DIRECTMAP answer different questions — one
gates the compile-time linear-map projections, the other whether a physical
bound may reach the virtual text base — but they hold the same value on all
twelve supported architectures, so no in-tree header demonstrates the
difference and neither can be inferred from the other by example. Record
both shapes that would separate them, and that the pair must be picked by
the question being asked.1 parent 5c4fedb commit 3b4fe25
2 files changed
Lines changed: 40 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
241 | 265 | | |
242 | 266 | | |
243 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
0 commit comments