X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=blobdiff_plain;f=pico%2Fcarthw%2Fcarthw.c;h=a18e5a41c83b6094770135d4d18306974fef6ff7;hp=a8b4333f434ac9644fff1ce094b488035e945392;hb=88fd63ad10faa746ef9d7ad7d98a72e51fe2aa86;hpb=e64886365da9e882b54e06ab683ee4db60171e32 diff --git a/pico/carthw/carthw.c b/pico/carthw/carthw.c index a8b4333..a18e5a4 100644 --- a/pico/carthw/carthw.c +++ b/pico/carthw/carthw.c @@ -318,7 +318,7 @@ static void carthw_pier_write8(u32 a, u32 d) base = d << 19; goto do_map; case 0x09: - SRam.changed = 1; + Pico.sv.changed = 1; eeprom_spi_write(d); break; case 0x0b: @@ -449,11 +449,11 @@ void carthw_pier_startup(void) // save EEPROM eeprom_state = eeprom_spi_init(&eeprom_size); - SRam.flags = 0; - SRam.size = 0x10000; - SRam.data = calloc(1, SRam.size); - if (!SRam.data) - SRam.size = 0; + Pico.sv.flags = 0; + Pico.sv.size = 0x10000; + Pico.sv.data = calloc(1, Pico.sv.size); + if (!Pico.sv.data) + Pico.sv.size = 0; carthw_pier_state[2].ptr = eeprom_state; carthw_pier_state[2].size = eeprom_size;