/[packages]/cauldron/rpm/current/SOURCES/rpm-4.4.2.3-rc1-transmeta-crusoe-is-686.patch
ViewVC logotype

Contents of /cauldron/rpm/current/SOURCES/rpm-4.4.2.3-rc1-transmeta-crusoe-is-686.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 343 - (show annotations) (download)
Sat Jan 8 00:05:19 2011 UTC (13 years, 3 months ago) by tmb
File size: 739 byte(s)
imported package rpm
1 From 5f7b4a3de6aea5c575c9cf5c92fbfe02bf0e70ce Mon Sep 17 00:00:00 2001
2 From: unknown author <cooker@mandrivalinux.org>
3 Date: Mon, 5 Jan 2009 13:29:57 +0000
4 Subject: [PATCH 34/35] transmeta crusoe is 686
5
6 ---
7 lib/rpmrc.c | 5 +++++
8 1 files changed, 5 insertions(+), 0 deletions(-)
9
10 diff --git a/lib/rpmrc.c b/lib/rpmrc.c
11 index 12d1275..476f45e 100644
12 --- a/lib/rpmrc.c
13 +++ b/lib/rpmrc.c
14 @@ -847,6 +847,11 @@ static inline int RPMClass(void)
15
16 sigaction(SIGILL, &oldsa, NULL);
17
18 +#define USER686 ((1<<4) | (1<<8) | (1<<15))
19 + /* Transmeta Crusoe CPUs say that their CPU family is "5" but they have enough features for i686. */
20 + if(cpu == 5 && (cap & USER686) == USER686)
21 + return 6;
22 +
23 if (cpu < 6)
24 return cpu;
25
26 --
27 1.6.1.3
28

  ViewVC Help
Powered by ViewVC 1.1.30