/* SPDX-License-Identifier: LicenseRef-Starship-1.0 * Copyright (c) 2023-2026 Robert A. James */ /* blk_layout.h -- the VM's user RAM block count, the one knob the block layout is derived from. * * BLK_RAM_USER_BLOCKS is how many blocks of fast RAM a VM sees (LBN 0 .. BLK_RAM_USER_BLOCKS - 1). * It is a build knob (Kconfig BLK_RAM_USER_BLOCKS; kernel/Makefile passes it as -D), and the tools * that make the kernel's media are built with the same value: mkcapsule takes it as its floor -- * a capsule's page `Block n` has n at least this, and is copied down by it to be interpreted -- * and mkartemis lays out a disk by it (block_subsystem.h derives BLK_RAM_BLOCKS and BLK_DISK_START). * docs/v4.0.0/plans/2026-11-18-capsule-blocks.md, ruling 3 (Captain Bob: "The RAM block count"). * * Nothing else is in this header, so a host tool can include it alone. */ #ifndef BLK_LAYOUT_H #define BLK_LAYOUT_H #ifndef BLK_RAM_USER_BLOCKS #define BLK_RAM_USER_BLOCKS 2048u #endif #endif /* BLK_LAYOUT_H */