blob: 50f1afd520aa3782f283522e4226b09c5210bcea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#if defined(CONFIG_CPU_CORTEX_M) || defined(CONFIG_CPU_CORTEX_R) || \
defined(CONFIG_CPU_CORTEX_A)
__image_size = _flash_used;
#elif defined(CONFIG_RISCV)
__image_size = _image_rom_size;
#else
/*
* Intentionally set to 0. Some components, such as EFS2, need this value.
* Having it be 0 will make it easier to find and add new cores.
*/
__image_size = 0;
#endif
|