Re: Cross Memory Attach v3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thorsten,

On Sun, Dec 4, 2011 at 15:37, Thorsten Glaser <tg@xxxxxxxxx> wrote:
Geert Uytterhoeven dixit:
It turned out the flags parameter was non-zero, due to syscall() only supporting
up to 5 parameters in the glibc I was using for testing.

I checked the eglibc sources (2.11.1-0ubuntu7.8), and it's still not
fixed there,
although I could find a fix for a similar issue in klibc
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=334917).

Does this work for you?

Thanks!
Your patch looks fine, but I'm not gonna compile eglibc now.

Index: eglibc-2.13/ports/sysdeps/unix/sysv/linux/m68k/syscall.S
===================================================================
--- eglibc-2.13.orig/ports/sysdeps/unix/sysv/linux/m68k/syscall.S       2011-12-04 14:36:16.000000000 +0000
+++ eglibc-2.13/ports/sysdeps/unix/sysv/linux/m68k/syscall.S    2011-12-04 14:36:26.000000000 +0000
@@ -24,9 +24,9 @@
       .text
 ENTRY (syscall)
       move.l 4(%sp), %d0      /* Load syscall number.  */
-       _DOARGS_5 (24)          /* Frob arguments.  */
+       _DOARGS_6 (28)          /* Frob arguments.  */
       trap &0                 /* Do the system call.  */
-       UNDOARGS_5              /* Unfrob arguments.  */
+       UNDOARGS_6              /* Unfrob arguments.  */
       cmp.l &-4095, %d0       /* Check %d0 for error.  */
       jcc SYSCALL_ERROR_LABEL /* Jump to error handler if negative.  */
       rts                     /* Return to caller.  */

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux