hw_x86_64_muen: Include static ACPI report ROM

Enable the ACPI functionality in the platform_drv on hw_x86_64_muen and
provide a simple generated XML report as ROM session in order to make
the PCI configuration space available.

This is a requirement to implement support for MSI on hw_x86_64_muen.
This commit is contained in:
Reto Buerki 2016-01-29 17:15:35 +01:00 committed by Christian Helmuth
parent 74dd356dcd
commit f1d2d7251d
2 changed files with 13 additions and 5 deletions

View File

@ -22,10 +22,11 @@ proc append_platform_drv_build_components {} {
proc append_platform_drv_boot_modules {} {
global boot_modules
lappend_if [have_platform_drv] boot_modules platform_drv
lappend_if [have_spec acpi] boot_modules acpi_drv
lappend_if [have_spec acpi] boot_modules report_rom
lappend_if [have_spec nova] boot_modules device_pd
lappend_if [have_platform_drv] boot_modules platform_drv
lappend_if [have_spec acpi] boot_modules acpi_drv
lappend_if [have_spec acpi] boot_modules report_rom
lappend_if [have_spec nova] boot_modules device_pd
lappend_if [have_spec hw_x86_64_muen] boot_modules acpi
}
proc platform_drv_policy {} {
@ -121,7 +122,7 @@ proc append_platform_drv_config {} {
<any-service> <parent/> </any-service>
</route>}
if {[have_spec acpi] || [have_spec arm]} {
if {[have_spec acpi] || [have_spec arm] || [have_spec hw_x86_64_muen]} {
append config {
<config>}

View File

@ -30,6 +30,13 @@ proc run_boot_dir {binaries} {
set core_target "core"
}
# generate static ACPI report for platform driver on Muen
if {[have_spec "hw_x86_64_muen"]} {
set fh [open "bin/acpi" "WRONLY CREAT TRUNC"]
puts $fh "<acpi><bdf start=\"0\" count=\"16384\" base=\"0xf8000000\"/></acpi>"
close $fh
}
# strip binaries
copy_and_strip_genode_binaries_to_run_dir $binaries