P2: later
An appendix to the milestone.
P2: later
-
#![cfg_attr(not(test), no_std)]where#![no_std]would do. Finding: the tests use nothing fromstd; the attribute only means the library is never type-checked asno_stdin a test build. Evidence:src/lib.rsline 23. Change:#![no_std]. Door: two-way. Effort: XS. -
CPU_WORD_OFFSETis au64and the private offsets areusize. Finding: the one public offset has the type its one caller wants (an x86 test program that adds it to the address);OFF_CPUis ausize. A stranger reaching forpage[CPU_WORD_OFFSET..]casts. Evidence:src/lib.rslines 100 to 115. Change: none; ruled 2026-11-19 UTC that the constant staysu64. Door: one-way (a published type). Effort: XS. -
The kernel's safety comment at the write site says the frame view is "16 bytes wide". Finding: the page is 32 bytes since the tick word arrived; the store itself stays inside 16, so nothing is unsound, but the comment is a copy of an older layout. Evidence:
kernel/src/user/address_space.rsline 200. Change: sayPAGE_CONTENT_BYTES. A nife lane, outside the crate. Door: two-way. Effort: XS. -
Two notes describe the page. Finding:
notes/current-cpu-page.md(the crate's design) andnotes/scheduler/the-current-cpu-page.md(the kernel tests). The system test cites the second; the crate cites the first. Neither links the other. Change: a cross-link, in nife. Door: two-way. Effort: XS.