mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 09:00:45 +09:00
755c7d9a61
No special reason for the current stack address 0x0ff08000. Change it to 0x00100000 to simplify the init_page_table. There are two types of SoCs in terms of the load address of SPL. [1] PH1-sLD3, PH1-LD4, PH1-sLD8 SPL is loaded at 0x00040000-0x0004ffff [2] PH1-Pro4, PH1-Pro5, ProXstream2, PH1-LD6b SPL is loaded at 0x00100000-0x0010ffff The new stack area (0x000f8000-0x00100000) should be safe for all the cases. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
30 lines
620 B
ArmAsm
30 lines
620 B
ArmAsm
/*
|
|
* Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include <linux/linkage.h>
|
|
|
|
/* page table */
|
|
#define NR_SECTIONS 4096
|
|
#define SECTION_SHIFT 20
|
|
#define DEVICE 0x00002002 /* Non-shareable Device */
|
|
#define NORMAL 0x0000000e /* Normal Memory Write-Back, No Write-Allocate */
|
|
|
|
.section ".rodata"
|
|
.align 14
|
|
ENTRY(init_page_table)
|
|
section = 0
|
|
.rept NR_SECTIONS
|
|
.if section == 0 || section == 1
|
|
attr = NORMAL
|
|
.else
|
|
attr = DEVICE
|
|
.endif
|
|
.word (section << SECTION_SHIFT) | attr
|
|
section = section + 1
|
|
.endr
|
|
END(init_page_table)
|