notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eeee07
)
mcd, fix crash (plat_mmap not zeroing memory)
author
kub
<derkub@gmail.com>
Mon, 26 Feb 2024 22:10:35 +0000
(23:10 +0100)
committer
kub
<derkub@gmail.com>
Mon, 26 Feb 2024 22:10:35 +0000
(23:10 +0100)
pico/cd/memory.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/cd/memory.c
b/pico/cd/memory.c
index
ac42b8c
..
0757828
100644
(file)
--- a/
pico/cd/memory.c
+++ b/
pico/cd/memory.c
@@
-1225,6
+1225,7
@@
PICO_INTERNAL void PicoMemSetupCD(void)
{
\r
if (!Pico_mcd)
\r
Pico_mcd = plat_mmap(0x05000000, sizeof(mcd_state), 0, 0);
\r
+ memset(Pico_mcd, 0, sizeof(mcd_state));
\r
pcd_base_address = (Pico.romsize > 0x20000 ? 0x400000 : 0x000000);
\r
\r
// setup default main68k map
\r