Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PUAE
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
PUAE
Commits
ba3d4334
Commit
ba3d4334
authored
Mar 04, 2011
by
GnoStiC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puae 2.3.1
parent
761869a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Makefile.am
src/Makefile.am
+2
-0
memory.c
src/memory.c
+2
-2
memory.c
src/od-generic/memory.c
+4
-3
No files found.
src/Makefile.am
View file @
ba3d4334
...
...
@@ -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
...
...
src/memory.c
View file @
ba3d4334
...
...
@@ -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
"
);
...
...
src/od-generic/memory.c
View file @
ba3d4334
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment