Skip to contentSkip to conversation

fix comment in Light-weight-syscall code

PATCH In review Helge Deller 3 participants 5 messages Jul 10, 2008 – Jul 11, 2008 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 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
index 69b6eeb..ae45262 100644
@@ -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)
#1 lore raw
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.

If Carlos thinks this is OK, it's OK by me.

#2 lore raw
In reply to Helge Deller
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.

#3 lore raw
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

#4 lore raw
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.