qemu-patch-raspberry4/hw/mips
Aurelien Jarno 9652ef24bf mips/malta: leave space for the bootmap after the initrd
Since commit 9768e2abf7 the initrd is loaded at the end of the low
memory to avoid clash for the kernel relocation when kaslr is used.

However this in turn conflicts with the bootmap memory that the kernel
tries to place after initrd, but in low memory. The bootmap spans the
whole usable physical address space. The machine can have at most 2GiB
of memory, 256MiB of low memory mapped at 0x00000000, and 1792MiB of
high memory mapped at 0x90000000. The biggest bootmap therefore
corresponds to the adresses 0x00000000 -> 0xffffffff, which at 1 bit
per 4kiB page corresponds to 128kiB in memory.

Therefore reserve 128kiB after the initrd.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
2017-08-02 17:01:27 +01:00
..
addr.c mips: Clean up includes 2016-01-23 14:30:04 +00:00
boston.c ahci: add ahci_get_num_ports 2017-07-18 11:47:56 -04:00
cps.c error: Strip trailing '\n' from error string arguments (again) 2016-08-08 09:00:44 +02:00
cputimer.c mips: use MIPSCPU instead of CPUMIPSState 2016-05-19 16:42:27 +02:00
gt64xxx_pci.c qdev: Replace cannot_instantiate_with_device_add_yet with !user_creatable 2017-05-17 10:37:00 -03:00
Makefile.objs hw/mips: MIPS Boston board support 2017-02-24 10:37:21 +00:00
mips_fulong2e.c hw/mips: load_elf_strerror to report kernel loading failure 2017-07-28 13:32:32 +01:00
mips_int.c mips: use MIPSCPU instead of CPUMIPSState 2016-05-19 16:42:27 +02:00
mips_jazz.c hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
mips_malta.c mips/malta: leave space for the bootmap after the initrd 2017-08-02 17:01:27 +01:00
mips_mipssim.c hw/mips: load_elf_strerror to report kernel loading failure 2017-07-28 13:32:32 +01:00
mips_r4k.c hw/mips: load_elf_strerror to report kernel loading failure 2017-07-28 13:32:32 +01:00