Files
LithosAnanke/kernel/include/starkernel/rpi5_mmu.h
T
Claude 16b9747d33 chore(license): the source headers name the Starship License 1.0 (SL-1.0), as LICENSE does [skip ci]
347 headers said "Licensed under the StarForth License, Version 1.0" -- a
shortening (Captain Bob, 2026-11-08: "License file SL I think I shortened
accidently"); LICENSE is, and has been since the first commit, the
Starship License 1.0 (SL-1.0, SPDX LicenseRef-Starship-1.0). 349 files,
566 occurrences, now "Starship License, Version 1.0 (SL-1.0)".

Left as they are, pending a ruling: docs/patent/ (the patent figures),
docs/formal/ (the citable volumes) and the generated reports under
docs/working/experiments/ (32 files). Comments and license text only:
the amd64 kernel builds, every changed script parses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
2026-11-08 17:54:24 +00:00

27 lines
835 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
StarForth — Steady-State Virtual Machine Runtime
Copyright (c) 2023–2026 Robert A. James. All rights reserved.
Licensed under the Starship License, Version 1.0 (SL-1.0).
*/
/**
* rpi5_mmu.h - the Pi 5 native path's identity map, once C runs
* (rpi5_mmu.c; native_rpi5_entry.S turns the MMU on).
*/
#ifndef STARKERNEL_RPI5_MMU_H
#define STARKERNEL_RPI5_MMU_H
#include <stdint.h>
/* Makes every further GiB the devicetree's /memory covers entirely Normal
* write-back. Returns how many GiB entries changed, or -1 if /memory
* cannot be read. */
int rpi5_mmu_map_ram(const void *dtb);
/* Makes [addr, addr+size) Normal non-cacheable (2 MiB blocks in the first
* GiB, a whole GiB above it). Returns 0, or -1 if it cannot. */
int rpi5_mmu_uncached(uint64_t addr, uint64_t size);
#endif /* STARKERNEL_RPI5_MMU_H */