testing a new syscall

From: Andrew Morton <akpm_at_osdl.org>
Date: 2004-03-22 21:15:55
I'm trying to work out how to test the new remap_file_pages() syscall on
ia64 and have conceded defeat.

I got this far, but it segfaults:

#elif __ia64__
#define __NR_sys_remap_file_pages 1259
_syscall5(long, sys_remap_file_pages, unsigned long, start, unsigned long, len,
        unsigned long, prot, unsigned long, pgoff, int, flags);


#if defined(__ia64__)

"	.text\n"
"	.global __ia64_syscall#;\n"
"	.align	32;\n"
"	.proc	__ia64_syscall#;\n"
"	.regstk 6,0,0,0\n"
"	mov r15=in5\n"
"	break 0x100000\n"
"	movl r2=errno\n"
"	cmp.eq p6,p7=-1,r10\n"
"	;;\n"
"(p6)	st4 [r2]=r8\n"
"(p6)	mov r8=-1\n"
"	br.ret.sptk.many rp\n"
"	.endp	__ia64_syscall#\n"


What's the magic here?

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Mar 22 05:17:38 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST