OSDN Git Service

hw/loongarch: Load FDT table into dram memory space
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Fri, 28 Oct 2022 01:40:05 +0000 (09:40 +0800)
committerSong Gao <gaosong@loongson.cn>
Fri, 4 Nov 2022 09:07:40 +0000 (17:07 +0800)
commit021836936ef90fe1e52fe7ab7b7f2bcb9a66368a
tree27b6cd58ab4df5981ac51b14f5cc7d9ebf053d53
parenta649fffcc9589a88464474e9105798eb62023352
hw/loongarch: Load FDT table into dram memory space

Load FDT table into dram memory space, and the addr is 2 MiB.
Since lowmem region starts from 0, FDT base address is located
at 2 MiB to avoid NULL pointer access.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221028014007.2718352-2-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/loongarch/virt.c
include/hw/loongarch/virt.h