blob: 5042b6b1f7e154121837b09d41931c4564f20b5c [file] [log] [blame]
Angel Pons32859fc2020-04-02 23:48:27 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Nico Hubere0ed9022016-10-07 12:58:17 +02003
4#ifndef _ADAINIT_H
5#define _ADAINIT_H
6
7/**
8 * @file adainit.h
9 *
10 * Ada supports some complex constructs that result in code for runtime
11 * initialization. It's also possible to have explicit procedures for
12 * package level initialization (e.g. you can initialize huge arrays in
13 * a loop instead of cluttering the binary).
14 *
Elyes HAOUAS8250e2e2019-12-06 20:25:56 +010015 * When an Ada main() is in charge, GNAT emits the call to the initia-
Nico Hubere0ed9022016-10-07 12:58:17 +020016 * lizations automatically. When not, we have to call it explicitly.
17 */
18
Julius Wernercd49cce2019-03-05 16:53:33 -080019#if CONFIG(RAMSTAGE_ADA)
Nico Hubere0ed9022016-10-07 12:58:17 +020020void ramstage_adainit(void);
21#else
22static inline void ramstage_adainit(void) {}
23#endif
24
25#endif /* _ADAINIT_H */