Skip to contentSkip to conversation

real2.S patch

parisc-linux LaMont Jones 2 participants 2 messages Mar 13, 2004 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

Any objections to this patch? It removes a duplicated calculation, and has the added advantage of surviving my woody build environment...

lamont

Index: arch/parisc/kernel/real2.S
===================================================================
RCS file: /var/cvs/linux-2.4/arch/parisc/kernel/real2.S,v retrieving revision 1.8

arch/parisc/kernel/real2.S +2 -1
diff -u -r1.8 real2.S
@@ -32,6 +32,7 @@
 
 save_cr_space:
 	.block	REG_SZ * N_SAVED_REGS
+save_cr_end:
 
 
 /************************ 32-bit real-mode calls ***********************/
@@ -129,7 +130,7 @@
 	nop
 
 restore_control_regs:
-	load32	PA(save_cr_space+(N_SAVED_REGS*REG_SZ)), %r26
+	load32	PA(save_cr_end), %r26
 	POP_CR(%cr15, %r26)
 	POP_CR(%cr31, %r26)
 	POP_CR(%cr30, %r26)
#1 lore raw
Quoted 2 lines · LaMont Jones

Any objections to this patch? It removes a duplicated calculation, and has the added advantage of surviving my woody build environment...

Looks good to me.

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain