From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [PATCH] man2 : syscall.2 : document syscall calling conventions Date: Mon, 8 Apr 2013 11:18:15 +0200 Message-ID: References: <1364361092-5948-1-git-send-email-ch0.han@lge.com> <201304010632.41520.vapier@gentoo.org> <201304021917.17659.vapier@gentoo.org> <20130407135514.GW12938@bombadil.infradead.org> <1365346609.1992.10.camel@dabdike> <20130407151134.GX12938@bombadil.infradead.org> Reply-To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: James Bottomley , Mike Frysinger , linux-man , Kyle McMartin , Helge Deller , "James E.J. Bottomley" , linux-parisc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kyle McMartin Return-path: In-Reply-To: <20130407151134.GX12938-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org> List-ID: List-Id: linux-parisc.vger.kernel.org On Sun, Apr 7, 2013 at 5:11 PM, Kyle McMartin wrote: > On Sun, Apr 07, 2013 at 07:56:49AM -0700, James Bottomley wrote: >> Actually, that's not quite correct. on 64 bits it's arg1-8 are %r26-% >> r19 but on 32 the convention is that arg1-arg4 are %r26-%r23 and the >> rest on stack. We can also do register pair combining on 32 bits for a >> 64 bit argument. > > I guess the confusion is whether you're writing this from the kernel > side or the userspace side. The syscall instruction is called with six > arg registers, but we fix it on entry to the kernel when we call into C.> -- > To unsubscribe from this list: send the line "unsubscribe linux-man" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Thanks, Kyle. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html