x86: qemu: Extract getting memory size to a separate routine
authorBin Meng <bmeng.cn@gmail.com>
Thu, 29 Aug 2019 09:53:04 +0000 (02:53 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 10 Sep 2019 06:19:39 +0000 (14:19 +0800)
commitf4c0030074544e8d3105bc9e4debb82e964ab126
treec0fa8a12d78de842b5917ba424e9523e088a530a
parentd2860c0088cb8e0303547b2130dd237374e91fde
x86: qemu: Extract getting memory size to a separate routine

This extracts getting memory size logic in dram_init() to a separate
routine qemu_get_low_memory_size(). No functional changes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Aiden Park <aiden.park@intel.com>
arch/x86/cpu/qemu/dram.c
arch/x86/include/asm/arch-qemu/qemu.h