devmdv: add mdv_csum
authorAlan Cox <alan@linux.intel.com>
Thu, 9 Apr 2015 09:17:21 +0000 (10:17 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 9 Apr 2015 09:17:21 +0000 (10:17 +0100)
Just need to build the tree so I can get a map file. The code to actual
compute the csum needs adding for write.

Kernel/platform-zx128/devmdv.c

index 8b0f5de..e772bbf 100644 (file)
@@ -17,11 +17,12 @@ static unsigned char mdvmap[MAX_MDV][256];
 static uint8_t mdv_valid;
 
 /* Used by the asm helpers */
-uint8_t mdv_sector;
 uint8_t *mdv_buf;
 uint8_t mdv_hdr_buf[15];
+uint8_t mdv_sector;
 uint16_t mdv_len;
 uint8_t mdv_page;
+uint8_t mdv_csum;
 static uint8_t mdv_tick;
 static uint8_t mdv_minor;