2018-07-17 09:37:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011-2014, Wind River Systems, Inc.
|
2019-07-05 04:49:06 +08:00
|
|
|
* Copyright (c) 2019 Intel Corp.
|
2018-07-17 09:37:14 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <autoconf.h>
|
|
|
|
#include <generated_dts_board.h>
|
|
|
|
|
2019-07-05 04:49:06 +08:00
|
|
|
#ifdef CONFIG_X86_LONGMODE
|
|
|
|
|
|
|
|
#include <arch/x86/intel64/linker.ld>
|
|
|
|
|
|
|
|
#else /* IA32 */
|
|
|
|
|
2019-09-10 15:41:08 +08:00
|
|
|
#define PHYS_LOAD_ADDR DT_PHYS_RAM_ADDR
|
|
|
|
#define PHYS_RAM_ADDR DT_PHYS_RAM_ADDR
|
2018-07-17 09:37:14 +08:00
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
2019-09-10 15:41:08 +08:00
|
|
|
RAM (wx) : ORIGIN = DT_PHYS_RAM_ADDR, LENGTH = DT_RAM_SIZE*1K
|
2018-07-17 09:37:14 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
2019-07-05 04:49:06 +08:00
|
|
|
#endif /* CONFIG_X86_LONGMODE */
|