a6e9757c8f55c88c4159b69d84ae7a02cf27a740
[AGL/meta-agl.git] / meta-agl-bsp / recipes-bsp / u-boot / u-boot-ota / 0003-U-Boot-Move-Cache-As-RAM-memory-from-area-mapped-to-ROM-in-QEMU.patch
1 From patchwork Fri Nov 10 17:51:02 2017
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: [U-Boot] Move Cache-As-RAM memory from area mapped to ROM in QEMU
6 X-Patchwork-Submitter: Anton Gerasimov <anton@advancedtelematic.com>
7 X-Patchwork-Id: 836810
8 X-Patchwork-Delegate: bmeng.cn@gmail.com
9 Message-Id: <20171110175102.21746-1-anton@advancedtelematic.com>
10 To: u-boot@lists.denx.de,
11         bmeng.cn@gmail.com
12 Date: Fri, 10 Nov 2017 18:51:02 +0100
13 From: Anton Gerasimov <anton@advancedtelematic.com>
14 List-Id: U-Boot discussion <u-boot.lists.denx.de>
15
16 ROM has been made read-only in qemu recently (namely commit
17 208fa0e43645edd0b0d8f838857dfc79daff40a8), so this patch restores
18 compatibility between u-boot and qemu. It is still broken for me
19 unless I set CONFIG_SMP=n and disable lapic (i.e. revert patch
20 aaaa55751ab1e5a5cfa0962d604593a7e6f33ff6 in u-boot), but these are
21 separate issues
22
23 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
24 Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
25 ---
26  arch/x86/cpu/qemu/Kconfig | 2 +-
27  1 file changed, 1 insertion(+), 1 deletion(-)
28
29 diff --git a/arch/x86/cpu/qemu/Kconfig b/arch/x86/cpu/qemu/Kconfig
30 index 6808c9a6b9..f4b9922a34 100644
31 --- a/arch/x86/cpu/qemu/Kconfig
32 +++ b/arch/x86/cpu/qemu/Kconfig
33 @@ -11,7 +11,7 @@ if QEMU
34
35  config SYS_CAR_ADDR
36         hex
37 -       default 0xd0000
38 +       default 0x10000
39
40  config SYS_CAR_SIZE
41         hex