Skip to content

remove non-functional code in ia64_leave_syscall

Chen, Kenneth W linux-ia64 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/6] remove non-functional code in ia64_leave_syscall

In syscall leave path, cr.ifs gets the value direct from the cover instruction. We never want to restore cr.ifs from the pt_regs. The setting of p9 in ia64_leave_syscall is spurious and unnecessary. (in the later part, it is reset to 0). This patch cleans up the code.

arch/ia64/kernel/entry.S renamed from arch/ia64/kernel/entry.S.orig +0 -1
@@ -739,7 +739,6 @@ ENTRY(ia64_leave_syscall)
 	;;
 	invala			// M0|1 invalidate ALAT
 	rsm psr.i | psr.ic	// M2   turn off interrupts and interruption collection
-	cmp.eq p9,p0=r0,r0	// A    set p9 to indicate that we should restore cr.ifs
 
 	ld8 r29=[r2],16		// M0|1 load cr.ipsr
 	ld8 r28=[r3],16		// M0|1 load cr.iip