blob: 5217435eb6ebb6ad035d1d9175e93a477e3b1e3a [file]
/* Copyright lowRISC contributors. */
/* Licensed under the Apache License, Version 2.0, see LICENSE for details. */
/* SPDX-License-Identifier: Apache-2.0 */
/**
* Variables stored in the .static_critical section of RAM.
*
* This file should be included inside of a `SECTIONS` block where a
* `ram_main` memory is defined, and should come before all other main
* memory sections.
*/
.static_critical ORIGIN(ram_main) (NOLOAD) : ALIGN(4) {
ASSERT(
. == ORIGIN(ram_main),
"Error: .static_critical section not at the base address of main RAM.");
KEEP(*(.static_critical.boot_measurements))
KEEP(*(.static_critical.epmp_state))
KEEP(*(.static_critical.sec_mmio_ctx))
ASSERT(
SIZEOF(.static_critical) == _static_critical_size,
"Error: .static_critical section size has changed");
} > ram_main