Use mem_mapping_disable to be more in line with existing devices

This commit is contained in:
RichardG867
2022-03-20 16:07:57 -03:00
parent 088b26d010
commit 91434ea70a

View File

@@ -792,7 +792,7 @@ The main difference between this register and BARs is that the ROM can be enable
rom_init(&dev->rom, "roms/scsi/foo/foo4321.bin", 0, 0x8000, 0x7fff, 0, MEM_MAPPING_EXTERNAL);
/* ...but don't map it right now. */
mem_mapping_set_addr(&dev->rom.mapping, 0, 0);
mem_mapping_disable(&dev->rom.mapping);
return dev;
}