mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
pam: pass device to init_pam and use it to set owner
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
84af6d9f97
commit
3cd2cf4375
4 changed files with 15 additions and 13 deletions
|
@ -269,10 +269,10 @@ static int mch_init(PCIDevice *d)
|
|||
memory_region_add_subregion_overlap(mch->system_memory, 0xa0000,
|
||||
&mch->smram_region, 1);
|
||||
memory_region_set_enabled(&mch->smram_region, false);
|
||||
init_pam(mch->ram_memory, mch->system_memory, mch->pci_address_space,
|
||||
init_pam(DEVICE(mch), mch->ram_memory, mch->system_memory, mch->pci_address_space,
|
||||
&mch->pam_regions[0], PAM_BIOS_BASE, PAM_BIOS_SIZE);
|
||||
for (i = 0; i < 12; ++i) {
|
||||
init_pam(mch->ram_memory, mch->system_memory, mch->pci_address_space,
|
||||
init_pam(DEVICE(mch), mch->ram_memory, mch->system_memory, mch->pci_address_space,
|
||||
&mch->pam_regions[i+1], PAM_EXPAN_BASE + i * PAM_EXPAN_SIZE,
|
||||
PAM_EXPAN_SIZE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue