Commit Graph

3 Commits

Author SHA1 Message Date
Pooya Parsa
cc8fa76b43 Describe the kernel patch tools as they are used 2026-11-17 10:44:33 +00:00
Pooya Parsa
869f8375fd Ship the SMP kernel as a patch in the UP bundle (packaging prototype)
kernel/tools/bundle.mjs --smp adds unkernel.kernel.smp.kwpatch: a
bsdiff-style patch (kwdiff.mjs) from the bundle's kernel to the SMP
build, after renumbering the base's function, global and type indices
and moving its data addresses to the target's (kwremap.mjs,
js/core/kremap.ts). With more than one CPU asked, loadKernelModule()
and the CLI derive the SMP kernel from it (js/core/kpatch.ts, hashes
checked); one CPU or a bundle without the section behaves as before.
test/kpatch.test.ts round-trips synthetic data and, given KPATCH_UP and
KPATCH_SMP, the real kernels.
2026-11-17 10:30:14 +00:00
Pooya Parsa
26d08730cc Initial commit 2026-11-15 23:27:04 +00:00