On Mon, May 22, 2006 at 04:50:57PM +0200, Nikola Knezevic wrote:
> On 5/22/06, Nikola Knezevic <[EMAIL PROTECTED]> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to