The header scan (Captain Bob, 2026-11-10): 788 source files -- 351 with the
SL-1.0 header, 12 with the old name (docs/working/experiments, kept by
ruling), 31 under someone else's licence (tools/kconfig, Linux's, GPL-2.0:
kept), and 394 with none. Ruled: the SPDX form; capsules (.4th, .f18) and
proofs (.thy) left for a ruling of their own (mkcapsule's 64x16 block format,
content-addressed capsules).
253 files now begin
SPDX-License-Identifier: LicenseRef-Starship-1.0
Copyright (c) 2023-2026 Robert A. James
as a /* */ block (C, headers, assembly, linker scripts) or # lines (scripts,
Makefiles, Kconfig; below a shebang or a coding line); tools/mkcapsule.c,
which had the copyright line, gets the SPDX line only.
Not touched: docs/working/ (archive and old campaign material, as the
ruling kept the experiments); v4/system/post_cases.c (generated by
v4/tools/mkpost.py, "do not edit" -- the generator has the header).
Comments only: the kernel builds on amd64, aarch64, riscv64; make -C v4
test-32: 39 programs, 0 failures; every changed script parses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* SPDX-License-Identifier: LicenseRef-Starship-1.0
|
|
* Copyright (c) 2023-2026 Robert A. James
|
|
*/
|
|
/* capsule_blocks.h -- the block format of a .4th capsule payload.
|
|
*
|
|
* A .4th capsule is text: "Block <num>" header lines, each followed by that
|
|
* block's content lines (tools/mkcapsule.c, validate_forth_blocks). This is
|
|
* the one place that says what a header line is. It depends on no VM, so
|
|
* every loader of capsules can use it: the kernel's and the hosted v4
|
|
* system's (docs/v4.0.0/NUCLEUS.md 5.3).
|
|
*/
|
|
#ifndef STARKERNEL_CAPSULE_BLOCKS_H
|
|
#define STARKERNEL_CAPSULE_BLOCKS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Is the line that starts at p a "Block <num>" header? If so, returns 1
|
|
* with the number in *out_num and the start of the next line in *out_after;
|
|
* otherwise returns 0 and changes nothing. `end` is one past the payload's
|
|
* last byte. */
|
|
int capsule_block_header(const uint8_t *p, const uint8_t *end,
|
|
uint32_t *out_num, const uint8_t **out_after);
|
|
|
|
#endif /* STARKERNEL_CAPSULE_BLOCKS_H */
|