Commit ba3d4334 authored by GnoStiC's avatar GnoStiC

puae 2.3.1

parent 761869a0
......@@ -81,8 +81,10 @@ if BUILD_MACOSX_BUNDLE
rm -fr $(bundle)
mkdir -p $(bundle_contents)/MacOS
mkdir -p $(bundle_contents)/Resources
mkdir -p $(bundle_contents)/Frameworks
$(INSTALL_DATA) od-macosx/Info.plist $(bundle_contents)
$(INSTALL_PROGRAM) uae$(EXEEXT) $(bundle_contents)/MacOS/
cp -R /Library/Frameworks/SDL.framework $(bundle_contents)/Frameworks
$(INSTALL_DATA) $(srcdir)/od-macosx/puae.icns $(bundle_contents)/Resources/
$(INSTALL_DATA) $(srcdir)/od-macosx/Credits.rtf $(bundle_contents)/Resources/
endif
......
......@@ -2016,7 +2016,7 @@ static void add_shmmaps (uae_u32 start, addrbank *what)
return; // Nothing to do. There is no actual host memory attached to this bank.
x = find_shmpiece (base); // Find the block's current shmpiece node.
if (!x)
if (!x)
return;
y = xmalloc (shmpiece, 1); // Create another shmpiece node for the new mapping
*y = *x;
......@@ -2024,7 +2024,7 @@ static void add_shmmaps (uae_u32 start, addrbank *what)
y->native_address = (uae_u8*)my_shmat (y->id, base, 0);
if (y->native_address == (void *) -1) {
write_log ("NATMEM: Failure to map id %d existing at %08x (%p):%d ", y->id, start, base, errno);
if (errno == 12) write_log ("(Can't allocate memory)\n");
if (errno == 12) write_log ("(Can't allocate memory)\n");
else if (errno == 13) write_log ("(Permission denied)\n");
else if (errno == 22) write_log ("(Invalid argument)\n");
else if (errno == 24) write_log ("(Too many open files)\n");
......
......@@ -258,7 +258,7 @@ restart:
rtgbarrier = 0;
rtgextra = 0;
}
size = natmemsize + rtgbarrier + currprefs.gfxmem_size + rtgextra + 16 * getpagesize();
size = natmemsize + rtgbarrier + z3chipbarrier + currprefs.gfxmem_size + rtgextra + 16 * getpagesize();
blah = (uae_u8*)valloc (size);
mprotect (blah, size, PROT_READ|PROT_WRITE|PROT_EXEC);
if (blah) {
......@@ -505,8 +505,9 @@ void *my_shmat (int shmid, void *shmaddr, int shmflg)
shmids[shmid].mode = 0;
shmids[shmid].natmembase = natmem_offset;
write_log ("SHMAddr %s %p = %p - %p\n", shmids[shmid].name, (uae_u8*)shmaddr-natmem_offset, shmaddr, natmem_offset);
// if (shmaddr)
// free (shmaddr);
//here
if (shmaddr)
free (shmaddr);
result = valloc (/*shmaddr,*/ size);
if (result == NULL) {
result = (void*)-1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment