Blame rpm-4.4.2-no-ppc-asm.patch
|
Paul Nasrat |
eb6953 |
--- rpm-4.3.3/lib/rpmrc.c.asm 2005-09-19 13:17:02.000000000 -0400
|
|
Paul Nasrat |
eb6953 |
+++ rpm-4.3.3/lib/rpmrc.c 2005-09-19 13:17:23.000000000 -0400
|
|
Paul Nasrat |
eb6953 |
@@ -1278,27 +1278,6 @@
|
|
Paul Nasrat |
eb6953 |
}
|
|
Paul Nasrat |
eb6953 |
# endif
|
|
Paul Nasrat |
eb6953 |
|
|
Paul Nasrat |
eb6953 |
-# if defined(__linux__) && defined(__powerpc__)
|
|
Paul Nasrat |
eb6953 |
- {
|
|
Paul Nasrat |
eb6953 |
- unsigned pvr = 0;
|
|
Paul Nasrat |
eb6953 |
- __sighandler_t oldh = signal(SIGILL, mfspr_ill);
|
|
Paul Nasrat |
eb6953 |
- if (setjmp(mfspr_jmpbuf) == 0) {
|
|
Paul Nasrat |
eb6953 |
- __asm__ __volatile__ ("mfspr %0, 287" : "=r" (pvr));
|
|
Paul Nasrat |
eb6953 |
- }
|
|
Paul Nasrat |
eb6953 |
- signal(SIGILL, oldh);
|
|
Paul Nasrat |
eb6953 |
-
|
|
Paul Nasrat |
eb6953 |
- if ( pvr ) {
|
|
Paul Nasrat |
eb6953 |
- pvr >>= 16;
|
|
Paul Nasrat |
eb6953 |
- if ( pvr >= 0x40)
|
|
Paul Nasrat |
eb6953 |
- strcpy(un.machine, "ppcpseries");
|
|
Paul Nasrat |
eb6953 |
- else if ( (pvr == 0x36) || (pvr == 0x37) )
|
|
Paul Nasrat |
eb6953 |
- strcpy(un.machine, "ppciseries");
|
|
Paul Nasrat |
eb6953 |
- else
|
|
Paul Nasrat |
eb6953 |
- strcpy(un.machine, "ppc");
|
|
Paul Nasrat |
eb6953 |
- }
|
|
Paul Nasrat |
eb6953 |
- }
|
|
Paul Nasrat |
eb6953 |
-# endif
|
|
Paul Nasrat |
eb6953 |
-
|
|
Paul Nasrat |
eb6953 |
/* the uname() result goes through the arch_canon table */
|
|
Paul Nasrat |
eb6953 |
canon = lookupInCanonTable(un.machine,
|
|
Paul Nasrat |
eb6953 |
tables[RPM_MACHTABLE_INSTARCH].canons,
|