fix comment in Light-weight-syscall code
Helge Deller
maintainerPATCH 1/1 fix comment in Light-weight-syscall code
The comment for the lws-atomic system call userspace helper function mentions r22 and r23 as input registers, but I couldn't find any usage of those registers in the code.
This patch fixes this and corrects another small typo as well.
arch/parisc/kernel/syscall.S +2 -2
@@ -368,11 +368,11 @@ tracesys_sigexit: Light-weight-syscall code r20 - lws number - r26,r25,r24,r23,r22 - Input registers + r26,r25,r24 - Input registers r28 - Function return register r21 - Error code. - Scracth: Any of the above that aren't being + Scratch: Any of the above that aren't being currently used, including r1. Return pointer: r31 (Not usable)
Quoted 7 lines · Helge Deller
The comment for the lws-atomic system call userspace helper function mentions r22 and r23 as input registers, but I couldn't find any usage of those registers in the code.
This patch fixes this and corrects another small typo as well.Signed-off-by Helge Deller <[email protected]>
If Carlos thinks this is OK, it's OK by me.
Quoted 4 lines · Helge Deller
The comment for the lws-atomic system call userspace helper function mentions r22 and r23 as input registers, but I couldn't find any usage of those registers in the code.
This patch fixes this and corrects another small typo as well.
That's the LWS syscall ABI. It has 5 argument registers, 1 return register, 1 error code register, and 1 lws number register.
Cheers,
Carlos.
Quoted 9 lines · Carlos O'Donell
Quoted 4 lines · Helge Deller
The comment for the lws-atomic system call userspace helper function mentions r22 and r23 as input registers, but I couldn't find any usage of those registers in the code.
This patch fixes this and corrects another small typo as well.That's the LWS syscall ABI. It has 5 argument registers, 1 return register, 1 error code register, and 1 lws number register.
Yeah, but I think what Helge is asking is, if there's no plans to ever add more, or more arguments, can he change it to be 3 args?
r, Kyle
Quoted 7 lines · Kyle McMartin
Quoted 6 lines · Carlos O'Donell
Quoted 4 lines · Helge Deller
The comment for the lws-atomic system call userspace helper function mentions r22 and r23 as input registers, but I couldn't find any usage of those registers in the code.
This patch fixes this and corrects another small typo as well.
Quoted 6 lines
Quoted 3 lines
That's the LWS syscall ABI. It has 5 argument registers, 1 return register, 1 error code register, and 1 lws number register.
Yeah, but I think what Helge is asking is, if there's no plans to ever add more, or more arguments, can he change it to be 3 args?
No, I'm not OK with it, I think we should keep the extra two argument registers for future use.
I've been talking to Helge about this. Once we lose those registers they are gone from the ABI forever, and if we need some fixup, or an additional arg in the future, it will be hard to handle.
Cheers,
Carlos.