[klibc] Fix invalid operands compile error in parisc/crt0.S

Kyle McMartin kyle at parisc-linux.org
Fri Dec 2 23:10:51 PST 2005

The iitlbp instruction needs the space register explicitly
specified with newer toolchains. Specify sr0, but it doesn't
really matter as the insn is just used to crash the program.

Signed-off-by: Kyle McMartin <kyle at parisc-linux.org>

diff --git a/klibc/arch/parisc/crt0.S b/klibc/arch/parisc/crt0.S
index fb0bd37..7adc6c4 100644
--- a/klibc/arch/parisc/crt0.S
+++ b/klibc/arch/parisc/crt0.S
@@ -29,6 +29,6 @@ _start: 
         bl	__libc_init,%r2
 /* break miserably if we ever return */
-        iitlbp	%r0,(%r0) /* illegal instruction */
+        iitlbp	%r0,(%sr0,%r0) /* illegal instruction */

More information about the klibc mailing list