* [PATCH] syscall.2: correct registers for arm/EABI
@ 2013-08-08 23:59 Johan Erlandsson
[not found] ` <CALiXj0DSRYwxa07h3uOgk7FB8BssaWmwWmnzLYwUvtaNqSgpsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Johan Erlandsson @ 2013-08-08 23:59 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Registers was off by one.
Reference:
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4
---
man2/syscall.2 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/man2/syscall.2 b/man2/syscall.2
index 1cca9ce..a4a243d 100644
--- a/man2/syscall.2
+++ b/man2/syscall.2
@@ -156,7 +156,7 @@ l l1 l l1 l.
arch/ABI instruction syscall # retval Notes
_
arm/OABI swi NR - a1 NR is syscall #
-arm/EABI swi 0x0 r7 r1
+arm/EABI swi 0x0 r7 r0
blackfin excpt 0x0 P0 R0
i386 int $0x80 eax eax
ia64 break 0x100000 r15 r10/r8
@@ -181,7 +181,7 @@ l l l l l l l l.
arch/ABI arg1 arg2 arg3 arg4 arg5 arg6 arg7
_
arm/OABI a1 a2 a3 a4 v1 v2 v3
-arm/EABI r1 r2 r3 r4 r5 r6 r7
+arm/EABI r0 r1 r2 r3 r4 r5 r6
blackfin R0 R1 R2 R3 R4 R5 -
i386 ebx ecx edx esi edi ebp -
ia64 r11 r9 r10 r14 r15 r13 -
--
1.7.9.5
--
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] syscall.2: correct registers for arm/EABI
[not found] ` <CALiXj0DSRYwxa07h3uOgk7FB8BssaWmwWmnzLYwUvtaNqSgpsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-08-09 7:41 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkiMpPwFR=CFGvF+-bCAwvscUFdG8HFsLZPnb50ZOdQASA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-08-09 7:41 UTC (permalink / raw)
To: Johan Erlandsson, Mike Frysinger; +Cc: linux-man
[CC += Mike F]
On Fri, Aug 9, 2013 at 1:59 AM, Johan Erlandsson <jeoerl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Registers was off by one.
I'd like some more eyes on this. Mike, does this look good to you?
Cheers,
Michael
> Reference:
> http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4
> ---
> man2/syscall.2 | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/man2/syscall.2 b/man2/syscall.2
> index 1cca9ce..a4a243d 100644
> --- a/man2/syscall.2
> +++ b/man2/syscall.2
> @@ -156,7 +156,7 @@ l l1 l l1 l.
> arch/ABI instruction syscall # retval Notes
> _
> arm/OABI swi NR - a1 NR is syscall #
> -arm/EABI swi 0x0 r7 r1
> +arm/EABI swi 0x0 r7 r0
> blackfin excpt 0x0 P0 R0
> i386 int $0x80 eax eax
> ia64 break 0x100000 r15 r10/r8
> @@ -181,7 +181,7 @@ l l l l l l l l.
> arch/ABI arg1 arg2 arg3 arg4 arg5 arg6 arg7
> _
> arm/OABI a1 a2 a3 a4 v1 v2 v3
> -arm/EABI r1 r2 r3 r4 r5 r6 r7
> +arm/EABI r0 r1 r2 r3 r4 r5 r6
> blackfin R0 R1 R2 R3 R4 R5 -
> i386 ebx ecx edx esi edi ebp -
> ia64 r11 r9 r10 r14 r15 r13 -
> --
> 1.7.9.5
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] syscall.2: correct registers for arm/EABI
[not found] ` <CAKgNAkiMpPwFR=CFGvF+-bCAwvscUFdG8HFsLZPnb50ZOdQASA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-08-09 8:14 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-08-09 8:14 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: Johan Erlandsson, Mike Frysinger, linux-man
On 08/09/13 09:41, Michael Kerrisk (man-pages) wrote:
> [CC += Mike F]
>
> On Fri, Aug 9, 2013 at 1:59 AM, Johan Erlandsson <jeoerl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Registers was off by one.
>
> I'd like some more eyes on this. Mike, does this look good to you?
So, looking at this again, the proposed patch certainly seems consistent with
various other sources, e.g.:
http://peterdn.com/post/e28098Hello-World!e28099-in-ARM-assembly.aspx
https://wiki.debian.org/ArmEabiPort
http://en.wikipedia.org/wiki/Calling_convention#ARM
Patch applied.
Cheers,
Michael
>> Reference:
>> http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4
>> ---
>> man2/syscall.2 | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/man2/syscall.2 b/man2/syscall.2
>> index 1cca9ce..a4a243d 100644
>> --- a/man2/syscall.2
>> +++ b/man2/syscall.2
>> @@ -156,7 +156,7 @@ l l1 l l1 l.
>> arch/ABI instruction syscall # retval Notes
>> _
>> arm/OABI swi NR - a1 NR is syscall #
>> -arm/EABI swi 0x0 r7 r1
>> +arm/EABI swi 0x0 r7 r0
>> blackfin excpt 0x0 P0 R0
>> i386 int $0x80 eax eax
>> ia64 break 0x100000 r15 r10/r8
>> @@ -181,7 +181,7 @@ l l l l l l l l.
>> arch/ABI arg1 arg2 arg3 arg4 arg5 arg6 arg7
>> _
>> arm/OABI a1 a2 a3 a4 v1 v2 v3
>> -arm/EABI r1 r2 r3 r4 r5 r6 r7
>> +arm/EABI r0 r1 r2 r3 r4 r5 r6
>> blackfin R0 R1 R2 R3 R4 R5 -
>> i386 ebx ecx edx esi edi ebp -
>> ia64 r11 r9 r10 r14 r15 r13 -
>> --
>> 1.7.9.5
>
>
>
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-09 8:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 23:59 [PATCH] syscall.2: correct registers for arm/EABI Johan Erlandsson
[not found] ` <CALiXj0DSRYwxa07h3uOgk7FB8BssaWmwWmnzLYwUvtaNqSgpsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-09 7:41 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkiMpPwFR=CFGvF+-bCAwvscUFdG8HFsLZPnb50ZOdQASA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-09 8:14 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).