X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fnvram.c;h=785cb452a70acff8a4cd21c6faff88f40dc6f54b;hb=ace8f0532fa5650c6642a3a7174f3aa19b09095a;hp=e811ec271d487afdfb1d80f2db275cfb764e72d3;hpb=570ad6257ed18fbbc840c17a600f12f2dc44b010;p=palacios-OLD.git diff --git a/palacios/src/devices/nvram.c b/palacios/src/devices/nvram.c index e811ec2..785cb45 100644 --- a/palacios/src/devices/nvram.c +++ b/palacios/src/devices/nvram.c @@ -90,7 +90,7 @@ int nvram_write_reg_port(ushort_t port, memcpy(&(data->thereg), src, 1); - return 0; + return 1; } @@ -103,7 +103,7 @@ int nvram_read_data_port(ushort_t port, memcpy(dst, &(data->mem_state[data->thereg]), 1); - return 0; + return 1; } int nvram_write_data_port(ushort_t port, @@ -115,7 +115,7 @@ int nvram_write_data_port(ushort_t port, memcpy(&(data->mem_state[data->thereg]), src, 1); - return 0; + return 1; } @@ -159,7 +159,7 @@ static struct vm_device_ops dev_ops = { -struct vm_device *nvram_create() { +struct vm_device *create_nvram() { struct nvram_internal * nvram_state = os_hooks->malloc(sizeof(struct nvram_internal)); struct vm_device *device = create_device("NVRAM", &dev_ops, nvram_state);