From: Jeff Dike <jdike@addtoit.com>
To: Nikola Knezevic <laladelausanne@gmail.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Re: Problem in compiling without optimisations
Date: Mon, 22 May 2006 13:12:13 -0400 [thread overview]
Message-ID: <20060522171213.GA5083@ccure.user-mode-linux.org> (raw)
In-Reply-To: <5d8380130605220750u19867b14gb33a824ea65901fd@mail.gmail.com>
On Mon, May 22, 2006 at 04:50:57PM +0200, Nikola Knezevic wrote:
> On 5/22/06, Nikola Knezevic <laladelausanne@gmail.com> wrote:
> >This is the culprit:
> >static inline void remap_stack(int fd, unsigned long offset)
> >{
> > __asm__ volatile ("movl %%eax,%%ebp ; movl %0,%%eax ; int $0x80 ;"
> > "movl %7, %%ebx ; movl %%eax, (%%ebx)"
> > : : "g" (STUB_MMAP_NR), "b"
> > (UML_CONFIG_STUB_DATA),
> > "c" (UM_KERN_PAGE_SIZE),
> > "d" (PROT_READ | PROT_WRITE),
> > "S" (MAP_FIXED | MAP_SHARED), "D" (fd),
> > "a" (offset),
> > "i" (&((struct stub_data *)
> >UML_CONFIG_STUB_DATA)->err)
> > : "memory");
> >}
>
> Well, after reading about asm constrains, solution was to change that
> "i" to "g".
Checking my fuzzy recollection of asm constraints -
"i" means immediate, i.e. a compile-time constant and "g" means
anything? So, "i" breaks when gcc isn't trying hard enough to turn that
expression into a constant.
If so, it doesn't look worth changing.
Jeff
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2006-05-22 17:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-22 14:11 [uml-devel] Problem in compiling without optimisations Nikola Knezevic
2006-05-22 14:50 ` [uml-devel] " Nikola Knezevic
2006-05-22 17:12 ` Jeff Dike [this message]
2006-05-22 15:08 ` [uml-devel] " Jeff Dike
2006-06-01 19:07 ` Blaisorblade
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=20060522171213.GA5083@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=laladelausanne@gmail.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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