Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
24815819
Commit
24815819
authored
May 10, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build an explicit argument structure for mmap instead of relying on
the stack layout.
parent
0a8e15ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
virtual.c
memory/virtual.c
+19
-1
No files found.
memory/virtual.c
View file @
24815819
...
...
@@ -753,13 +753,31 @@ static void *unaligned_mmap( void *addr, size_t length, unsigned int prot,
if
(
!
offset_high
&&
(
offset_low
&
page_mask
))
{
int
ret
;
struct
{
void
*
addr
;
unsigned
int
length
;
unsigned
int
prot
;
unsigned
int
flags
;
unsigned
int
fd
;
unsigned
int
offset
;
}
args
;
args
.
addr
=
addr
;
args
.
length
=
length
;
args
.
prot
=
prot
;
args
.
flags
=
flags
;
args
.
fd
=
fd
;
args
.
offset
=
offset_low
;
__asm__
__volatile__
(
"push %%ebx
\n\t
"
"movl %2,%%ebx
\n\t
"
"int $0x80
\n\t
"
"popl %%ebx"
:
"=a"
(
ret
)
:
"0"
(
90
),
/* SYS_mmap */
"g"
(
&
a
ddr
)
);
"g"
(
&
a
rgs
)
);
if
(
ret
<
0
&&
ret
>
-
4096
)
{
errno
=
-
ret
;
...
...
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