On Sat, Apr 24, 2010 at 10:49 AM, John Hughes <john@calva.com> wrote:
On 20/04/10 11:04, John Hughes wrote:
Quickly hacking in some stuff copied from the i386 version gets me to the point where my test program is segfaulting on the destination node.

I cannot understand why migrate(2) works but /proc/xxx/goto doesn't.

The process is clearly being migrated to the destination node, but it segfaults (almost?) immediately on arrival.

x86_64 entry.S does FIXUP_TOP_OF_STACK before calling sys_migrate but not in the signal path.  This macro mangles rsp to point to the user segments.  Maybe this explains why /proc/xxx/goto doesn't work properly.