2018-07-17 09:37:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011-2014, Wind River Systems, Inc.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <autoconf.h>
|
|
|
|
#include <generated_dts_board.h>
|
|
|
|
/* physical address where the kernel is loaded */
|
2018-11-13 22:15:23 +08:00
|
|
|
#define PHYS_LOAD_ADDR DT_PHYS_LOAD_ADDR
|
2018-07-17 09:37:14 +08:00
|
|
|
|
|
|
|
/* physical address of RAM */
|
|
|
|
#ifdef CONFIG_XIP
|
2018-11-13 22:15:23 +08:00
|
|
|
#define PHYS_RAM_ADDR DT_PHYS_RAM_ADDR
|
2018-07-17 09:37:14 +08:00
|
|
|
#else /* !CONFIG_XIP */
|
|
|
|
#define PHYS_RAM_ADDR PHYS_LOAD_ADDR
|
|
|
|
#endif /* CONFIG_XIP */
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
#ifdef CONFIG_XIP
|
2018-11-13 22:15:23 +08:00
|
|
|
ROM (rx) : ORIGIN = PHYS_LOAD_ADDR, LENGTH = DT_ROM_SIZE*1K
|
|
|
|
RAM (wx) : ORIGIN = PHYS_RAM_ADDR, LENGTH = DT_RAM_SIZE*1K
|
2018-07-17 09:37:14 +08:00
|
|
|
#else /* !CONFIG_XIP */
|
2018-11-13 22:15:23 +08:00
|
|
|
RAM (wx) : ORIGIN = PHYS_LOAD_ADDR, LENGTH = DT_RAM_SIZE*1K
|
2018-07-17 09:37:14 +08:00
|
|
|
#endif /* CONFIG_XIP */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* It doesn't matter where this region goes as it is stripped from the
|
|
|
|
* final ELF image. The address doesn't even have to be valid on the
|
|
|
|
* target. However, it shouldn't overlap any other regions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
IDT_LIST : ORIGIN = 2K, LENGTH = 2K
|
|
|
|
}
|
|
|
|
|
2019-06-29 00:41:39 +08:00
|
|
|
#include <arch/x86/ia32/linker.ld>
|
2018-07-17 09:37:14 +08:00
|
|
|
|