blob: f01c3509da4749f56c4303e0c8764c652203e9e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef CONFIG_ARCH_POSIX
/* This code taken from core/cortex-m/ec.lds.S */
#if defined(CONFIG_MPU)
/* MPU regions must be aligned to a 32-byte boundary */
#define _IRAM_ALIGN 32
#else
#define _IRAM_ALIGN 4
#endif
. = ALIGN(_IRAM_ALIGN);
__iram_text_start = .;
*(.iram.text)
. = ALIGN(_IRAM_ALIGN);
__iram_text_end = .;
#endif /* CONFIG_ARCH_POSIX */
|