Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xing Lin
qemu
Commits
917f95fd
Commit
917f95fd
authored
Jun 05, 2003
by
bellard
Browse files
alpha fix
git-svn-id:
svn://svn.savannah.nongnu.org/qemu/trunk@207
c046a42c-6fe2-441c-8c8c-71466251a162
parent
fe319756
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux-user/mmap.c
View file @
917f95fd
...
...
@@ -188,6 +188,11 @@ long target_mmap(unsigned long start, unsigned long len, int prot,
host_start
=
start
&
host_page_mask
;
if
(
!
(
flags
&
MAP_FIXED
))
{
#ifdef __alpha__
/* tell the kenel to search at the same place as i386 */
if
(
host_start
==
0
)
host_start
=
0x40000000
;
#endif
if
(
host_page_size
!=
real_host_page_size
)
{
/* NOTE: this code is only for debugging with '-p' option */
/* reserve a memory area */
...
...
@@ -286,6 +291,7 @@ long target_mmap(unsigned long start, unsigned long len, int prot,
page_set_flags
(
start
,
start
+
len
,
prot
|
PAGE_VALID
);
the_end:
#ifdef DEBUG_MMAP
printf
(
"ret=0x%lx
\n
"
,
(
long
)
start
);
page_dump
(
stdout
);
printf
(
"
\n
"
);
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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