# HG changeset patch # User george.norton # Date 1289247625 0 # Node ID 0a4b67281c4832d3d24eff668275525e68bf3b53 # Parent c0501b51f2b92d991b5ecc870a23342f36f974dd Fixes for persistant storage on Linux-AMD64. diff -r c0501b51f2b9 -r 0a4b67281c48 symbian-qemu-0.9.1-12/qemu-symbian-svp/plugins/syborg_nvmemorydevice.py --- a/symbian-qemu-0.9.1-12/qemu-symbian-svp/plugins/syborg_nvmemorydevice.py Mon Nov 01 10:36:09 2010 +0000 +++ b/symbian-qemu-0.9.1-12/qemu-symbian-svp/plugins/syborg_nvmemorydevice.py Mon Nov 08 20:20:25 2010 +0000 @@ -202,9 +202,9 @@ sys.exit( error_msg ) else: if( self.transaction_direction == self.NVMEM_TRANSACTION_READ ): - self.nvmemlib.nvmem_read( self.obj, self.nvmemory_sharedmemory_host_address, self.nvmemhandle, self.transaction_offset, self.transaction_size ) + self.nvmemlib.nvmem_read( self.obj, ctypes.c_void_p(self.nvmemory_sharedmemory_host_address), self.nvmemhandle, self.transaction_offset, self.transaction_size ) elif( self.transaction_direction == self.NVMEM_TRANSACTION_WRITE ): - self.nvmemlib.nvmem_write( self.obj, self.nvmemory_sharedmemory_host_address, self.nvmemhandle, self.transaction_offset, self.transaction_size ) + self.nvmemlib.nvmem_write( self.obj, ctypes.c_void_p(self.nvmemory_sharedmemory_host_address), self.nvmemhandle, self.transaction_offset, self.transaction_size ) else: error_msg = "syborg_nvmemorydevice: Transaction direction not set!" sys.exit( error_msg ) diff -r c0501b51f2b9 -r 0a4b67281c48 symbian-qemu-0.9.1-12/qemu-symbian-svp/python-plugin.c --- a/symbian-qemu-0.9.1-12/qemu-symbian-svp/python-plugin.c Mon Nov 01 10:36:09 2010 +0000 +++ b/symbian-qemu-0.9.1-12/qemu-symbian-svp/python-plugin.c Mon Nov 08 20:20:25 2010 +0000 @@ -158,7 +158,7 @@ int ret = -1; int region_index = 0; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "ll", kwlist, + if (!PyArg_ParseTupleAndKeywords(args, kwds, "ii", kwlist, &base, &size )) { ret = -1;