From cbe8b9fa2264e659878ede112bf4f6c11a4c227e Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sat, 8 Jul 2017 11:15:15 +0100 Subject: [PATCH] Improve pci and platform device more --- kernel_module/pci.c | 2 ++ kernel_module/platform_device.c | 4 ++++ linux | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel_module/pci.c b/kernel_module/pci.c index c01f1fa..7873fd7 100644 --- a/kernel_module/pci.c +++ b/kernel_module/pci.c @@ -1,4 +1,6 @@ /* +Only teted for x86. + Usage: /pci.sh diff --git a/kernel_module/platform_device.c b/kernel_module/platform_device.c index a5e04d5..a0f6192 100644 --- a/kernel_module/platform_device.c +++ b/kernel_module/platform_device.c @@ -1,6 +1,10 @@ /* Only works for ARM. +Uses the hw/misc/lkmc_platform_device.c minimal device added in our QEMU fork. + +See: https://stackoverflow.com/questions/28315265/how-to-add-a-new-device-in-qemu-source-code/44612957#44612957 + Expected outcome after insmod: - QEMU reports MMIO with printfs diff --git a/linux b/linux index 54e66cc..361bb62 160000 --- a/linux +++ b/linux @@ -1 +1 @@ -Subproject commit 54e66cc228125e6c223214bac7ada398401e7b90 +Subproject commit 361bb623671a52a36a077a6dd45843389a687a33