coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <types.h>
4 
5 #include <arch/cache.h>
6 #include <bootblock_common.h>
7 #include <symbols.h>
8 
9 #define SRAM_START ((uintptr_t)_sram / MiB)
10 #define SRAM_END (DIV_ROUND_UP((uintptr_t)_esram, MiB))
11 
12 #define DRAM_START ((uintptr_t)_dram / MiB)
13 #define DRAM_SIZE (CONFIG_DRAM_SIZE_MB)
14 
16 {
17  mmu_init();
18 
19  /* Map everything strongly ordered by default */
20  mmu_config_range(0, 4096, DCACHE_OFF);
21 
24 
26 
28 }
void dcache_mmu_enable(void)
Definition: cache.c:53
void mmu_config_range(u32 start_mb, u32 size_mb, enum dcache_policy policy)
Definition: mmu.c:221
void mmu_init(void)
Definition: mmu.c:242
@ DCACHE_WRITEBACK
Definition: cache.h:364
@ DCACHE_OFF
Definition: cache.h:363
void bootblock_soc_init(void)
Definition: bootblock.c:27
#define DRAM_SIZE
Definition: bootblock.c:13
#define DRAM_START
Definition: bootblock.c:12
#define SRAM_START
Definition: bootblock.c:9
#define SRAM_END
Definition: bootblock.c:10