coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c File Reference
#include <types.h>
#include <arch/cache.h>
#include <bootblock_common.h>
#include <symbols.h>
Include dependency graph for bootblock.c:

Go to the source code of this file.

Macros

#define SRAM_START   ((uintptr_t)_sram / MiB)
 
#define SRAM_END   (DIV_ROUND_UP((uintptr_t)_esram, MiB))
 
#define DRAM_START   ((uintptr_t)_dram / MiB)
 
#define DRAM_SIZE   (CONFIG_DRAM_SIZE_MB)
 

Functions

void bootblock_soc_init (void)
 

Macro Definition Documentation

◆ DRAM_SIZE

#define DRAM_SIZE   (CONFIG_DRAM_SIZE_MB)

Definition at line 13 of file bootblock.c.

◆ DRAM_START

#define DRAM_START   ((uintptr_t)_dram / MiB)

Definition at line 12 of file bootblock.c.

◆ SRAM_END

#define SRAM_END   (DIV_ROUND_UP((uintptr_t)_esram, MiB))

Definition at line 10 of file bootblock.c.

◆ SRAM_START

#define SRAM_START   ((uintptr_t)_sram / MiB)

Definition at line 9 of file bootblock.c.

Function Documentation

◆ bootblock_soc_init()

void bootblock_soc_init ( void  )

Definition at line 15 of file bootblock.c.

References dcache_mmu_enable(), DCACHE_OFF, DCACHE_WRITEBACK, DRAM_SIZE, DRAM_START, mmu_config_range(), mmu_init(), SRAM_END, and SRAM_START.

Here is the call graph for this function: