Increased the remaining sound timer counters and latches to 64-bit;

Applied mainline PCem commit;
Intel Flash fixes.
This commit is contained in:
OBattler
2016-08-15 23:33:51 +02:00
parent 3b00a90f28
commit e9c97afb0b
7 changed files with 171 additions and 202 deletions

View File

@@ -37,8 +37,6 @@ typedef struct flash_t
uint8_t array[131072];
} flash_t;
static flash_t flash;
char flash_path[1024];
static uint8_t flash_read(uint32_t addr, void *p)
@@ -163,8 +161,7 @@ void *intel_flash_init(uint8_t type)
flash_t *flash = malloc(sizeof(flash_t));
char fpath[1024];
int i;
/* IMPORTANT: Do NOT zero the pointers! */
memset(flash, 0, sizeof(flash_t) - (6 * sizeof(void *)));
memset(flash, 0, sizeof(flash_t));
// pclog("Initializing Flash (type = %i)\n", type);