From: Jim Meyering Date: Fri, 22 Dec 2000 22:44:30 +0000 (+0000) Subject: (isaac_seed_machdep) [_ARCH_PPC]: Disable the code X-Git-Tag: FILEUTILS-4_0_34~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a18604b2e3b351d259753448311cae92b5adc8d;p=thirdparty%2Fcoreutils.git (isaac_seed_machdep) [_ARCH_PPC]: Disable the code that would use the PPC mfspr `asm' code. --- diff --git a/src/shred.c b/src/shred.c index 9c1262fb85..7d7374550e 100644 --- a/src/shred.c +++ b/src/shred.c @@ -779,7 +779,7 @@ isaac_seed_finish (struct isaac_state *s) #define ISAAC_SEED(s,x) isaac_seed_data (s, &(x), sizeof (x)) -#if __GNUC__ >= 2 && (__i386__ || __alpha__ || _ARCH_PPC) +#if __GNUC__ >= 2 && (__i386__ || __alpha__) /* * Many processors have very-high-resolution timer registers, * The timer registers can be made inaccessible, so we have to deal with the @@ -815,6 +815,8 @@ isaac_seed_machdep (struct isaac_state *s) __asm__ __volatile__ ("rpcc %0" : "=r" (t)); # endif # if _ARCH_PPC + /* Code not used because this instruction is available only on first- + generation PPCs and evokes a SIGBUS on some Linux 2.4 kernels. */ word32 t; __asm__ __volatile__ ("mfspr %0,22" : "=r" (t)); # endif @@ -833,12 +835,12 @@ isaac_seed_machdep (struct isaac_state *s) } } -#else /* !(__i386__ || __alpha__ || _ARCH_PPC) */ +#else /* !(__i386__ || __alpha__) */ /* Do-nothing stub */ # define isaac_seed_machdep(s) (void) 0 -#endif /* !(__i386__ || __alpha__ || _ARCH_PPC) */ +#endif /* !(__i386__ || __alpha__) */ /*