Few NVR changes
This commit is contained in:
@@ -102,7 +102,6 @@ extern const device_t via_nvr_device;
|
|||||||
|
|
||||||
extern void rtc_tick(void);
|
extern void rtc_tick(void);
|
||||||
|
|
||||||
void apc_handler(int enable, nvr_t *nvr);
|
|
||||||
extern void nvr_init(nvr_t *);
|
extern void nvr_init(nvr_t *);
|
||||||
extern char *nvr_path(char *str);
|
extern char *nvr_path(char *str);
|
||||||
extern FILE *nvr_fopen(char *str, char *mode);
|
extern FILE *nvr_fopen(char *str, char *mode);
|
||||||
|
@@ -921,7 +921,7 @@ nvr_at_init(const device_t *info)
|
|||||||
nvr->size = machines[machine].nvrmask + 1;
|
nvr->size = machines[machine].nvrmask + 1;
|
||||||
local->lock = (uint8_t *) malloc(nvr->size);
|
local->lock = (uint8_t *) malloc(nvr->size);
|
||||||
memset(local->lock, 0x00, nvr->size);
|
memset(local->lock, 0x00, nvr->size);
|
||||||
local->def = 0x00;
|
local->def = 0xff /*0x00*/;
|
||||||
local->flags = 0x00;
|
local->flags = 0x00;
|
||||||
switch(info->local & 7) {
|
switch(info->local & 7) {
|
||||||
case 0: /* standard AT, no century register */
|
case 0: /* standard AT, no century register */
|
||||||
|
Reference in New Issue
Block a user