mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
start new makefile, migrate to libpicofe
This commit is contained in:
parent
4685e5a10e
commit
e743be2070
47 changed files with 246 additions and 6342 deletions
|
@ -1425,7 +1425,7 @@ void PicoMemSetup32x(void)
|
|||
unsigned int rs;
|
||||
int i;
|
||||
|
||||
Pico32xMem = plat_mmap(0x06000000, sizeof(*Pico32xMem));
|
||||
Pico32xMem = plat_mmap(0x06000000, sizeof(*Pico32xMem), 0, 0);
|
||||
if (Pico32xMem == NULL) {
|
||||
elprintf(EL_STATUS, "OOM");
|
||||
return;
|
||||
|
|
|
@ -458,7 +458,7 @@ static unsigned char *PicoCartAlloc(int filesize, int is_sms)
|
|||
|
||||
// Allocate space for the rom plus padding
|
||||
// use special address for 32x dynarec
|
||||
rom = plat_mmap(0x02000000, rom_alloc_size);
|
||||
rom = plat_mmap(0x02000000, rom_alloc_size, 0, 0);
|
||||
return rom;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ extern void cache_flush_d_inval_i(const void *start_addr, const void *end_addr);
|
|||
|
||||
// attempt to alloc mem at specified address.
|
||||
// alloc anywhere else if that fails (callers should handle that)
|
||||
extern void *plat_mmap(unsigned long addr, size_t size);
|
||||
extern void *plat_mmap(unsigned long addr, size_t size, int need_exec, int is_fixed);
|
||||
extern void *plat_mremap(void *ptr, size_t oldsize, size_t newsize);
|
||||
extern void plat_munmap(void *ptr, size_t size);
|
||||
|
||||
|
|
|
@ -337,6 +337,7 @@ static int PsndRender(int offset, int length)
|
|||
memset32(buf32, 0, length<<stereo);
|
||||
|
||||
//printf("active_chs: %02x\n", buf32_updated);
|
||||
(void)buf32_updated;
|
||||
|
||||
// CD: PCM sound
|
||||
if (do_pcm) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue