From: madper <cxie@redhat.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: The MAX high_addr for `mmap` on PPC64
Date: Wed, 29 Aug 2012 11:34:08 +0800 [thread overview]
Message-ID: <op.wjr9i6t4xxpu98@localhost.localdomain> (raw)
Hi every one,
I use the ltp (Linux-Test-Project) and run it on both ppc64 and x86_64.
There is a code like follows in
`ltp/testcase/kernel/mem/hugetbl/hugemmap/hugemmap03.c`:
`code`
#define HIGH_ADDR (void *)(0x1000000000000)
/* Attempt to mmap into highmem addr, should get ENOMEM */
addr = mmap(HIGH_ADDR, map_sz, PROT_READ,
MAP_SHARED | MAP_FIXED, fildes, 0);
`code ends`
It return ENOMEM on x86_64 as well as we expected. But return EINVAL
on ppc64. So I want to know the MAX high addr for PPC64.
--
Thanks,
Madper Xie.
next reply other threads:[~2012-08-29 3:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-29 3:34 madper [this message]
2012-08-29 3:42 ` The MAX high_addr for `mmap` on PPC64 David Gibson
2012-08-29 3:57 ` madper
2012-08-29 23:39 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.wjr9i6t4xxpu98@localhost.localdomain \
--to=cxie@redhat.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).