On Monday 22 May 2006 16:11, Nikola Knezevic wrote:
> Hi all,
> When I change Makefile to have -O0 instead of -O2, this is what I get
> after make ARCH=um:
There are other spots where -O0 would lead to failure; search for -O0 on the
ML, I remember that adding -finline and something else made it work (IIRC
2.6.15 time), and this code was present.
> CC arch/um/kernel/skas/clone.o
> arch/um/include/sysdep/stub.h: In function 'remap_stack':
> arch/um/include/sysdep/stub.h:90: warning: asm operand 7 probably
> doesn't match constraints
> arch/um/include/sysdep/stub.h:90: error: impossible constraint in 'asm'
> make[2]: *** [arch/um/kernel/skas/clone.o] Error 1
> make[1]: *** [arch/um/kernel/skas] Error 2
> make: *** [arch/um/kernel] Error 2
>
> 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");
>
> }
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel