/* SPDX-License-Identifier: GPL-2.0-only */ /* * This file contains entry/exit functions for each stage during coreboot * execution (bootblock entry and ramstage exit will depend on external * loading). * * Entry points should be set in the linker script and honored by CBFS, * so text section layout shouldn't matter. Still, it doesn't hurt to put * stage_entry first (which XXXstage.ld will do automatically through the * .text.stage_entry section created by -ffunction-sections). */ #include #include /** * generic stage entry point. override this if board specific code is needed. */ __weak void stage_entry(uintptr_t stage_arg) { if (!ENV_ROMSTAGE_OR_BEFORE) _cbmem_top_ptr = stage_arg; main(); }