Virtio 8 bit read device features (linux 2.4)

This commit is contained in:
copy 2016-08-04 20:07:55 +02:00
parent f486ed81d0
commit 72780e54e1

View file

@ -29,12 +29,18 @@ function VirtIO(cpu, bus, filesystem)
var io = cpu.io;
io.register_read(0xA800, this, undefined, undefined, function()
{
// device features
dbg_log("Read device features", LOG_VIRTIO);
return 1;
});
io.register_read(0xA800, this,
function() {
dbg_log("Read device features", LOG_VIRTIO);
return 1;
},
undefined,
function()
{
dbg_log("Read device features", LOG_VIRTIO);
return 1;
}
);
io.register_write(0xA804, this, undefined, undefined, function(data)
{