x86: qemu: move x86 specific operations out of qfw core
authorMiao Yan <yanmiaobest@gmail.com>
Mon, 23 May 2016 02:37:15 +0000 (19:37 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 23 May 2016 07:18:00 +0000 (15:18 +0800)
commit2e82e745a4cf6bad10d9fe5a53db6592f40ff903
treef998e79cd2a89b2417f4a8497ee2059d1e89ff93
parentfcf5c04193b48c3f5e2d337a85d28c4026f90ac3
x86: qemu: move x86 specific operations out of qfw core

The original implementation of qfw includes several x86 specific
operations, like directly calling outb/inb and using some inline
assembly code which prevents it being ported to other architectures.

This patch adds callback functions and moves those to arch/x86/

Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/qemu/qemu.c
drivers/misc/qemu_fw_cfg.c
include/qemu_fw_cfg.h