Skip to content

Commit

Permalink
mcd, fix crash (plat_mmap not zeroing memory)
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Feb 26, 2024
1 parent 2eeee07 commit d128474
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pico/cd/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,7 @@ PICO_INTERNAL void PicoMemSetupCD(void)
{
if (!Pico_mcd)
Pico_mcd = plat_mmap(0x05000000, sizeof(mcd_state), 0, 0);
memset(Pico_mcd, 0, sizeof(mcd_state));
pcd_base_address = (Pico.romsize > 0x20000 ? 0x400000 : 0x000000);

// setup default main68k map
Expand Down

0 comments on commit d128474

Please sign in to comment.