coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memlayout.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 /* This file contains macro definitions for memlayout.ld linker scripts. */
4 
5 #ifndef __ARCH_MEMLAYOUT_H
6 #define __ARCH_MEMLAYOUT_H
7 
8 #define STACK(addr, size) REGION(stack, addr, size, 4096)
9 
10 #if ENV_ROMSTAGE_OR_BEFORE
11  #define CAR_STACK(addr, size) \
12  REGION(car_stack, addr, size, 4K) \
13  ALIAS_REGION(car_stack, stack)
14  #define MEM_STACK(addr, size) \
15  REGION(mem_stack, addr, size, 4K)
16 #else
17  #define CAR_STACK(addr, size) \
18  REGION(car_stack, addr, size, 4K)
19  #define MEM_STACK(addr, size) \
20  REGION(mem_stack, addr, size, 4K) \
21  ALIAS_REGION(mem_stack, stack)
22 #endif
23 
24 /* TODO: Need to add DMA_COHERENT region like on ARM? */
25 
26 #endif /* __ARCH_MEMLAYOUT_H */