From: | "Lars Wendler (polynomial-c)" <polynomial-c@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo commit in src/patchsets/mozilla-thunderbird/3.1.1: 1003-fix_sparc_build.patch |
Date: | Sat, 31 Jul 2010 21:03:24 |
Message-Id: | 20100731201545.1DCCA2CC0B@corvid.gentoo.org |
1 | polynomial-c 10/07/31 20:15:45 |
2 | |
3 | Added: 1003-fix_sparc_build.patch |
4 | Log: |
5 | Sparc patch as per request from armin76. |
6 | |
7 | Revision Changes Path |
8 | 1.1 src/patchsets/mozilla-thunderbird/3.1.1/1003-fix_sparc_build.patch |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/mozilla-thunderbird/3.1.1/1003-fix_sparc_build.patch?rev=1.1&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/mozilla-thunderbird/3.1.1/1003-fix_sparc_build.patch?rev=1.1&content-type=text/plain |
12 | |
13 | Index: 1003-fix_sparc_build.patch |
14 | =================================================================== |
15 | --- comm-1.9.2/mozilla/js/src/nanojit/CodeAlloc.cpp |
16 | +++ comm-1.9.2/mozilla/js/src/nanojit/CodeAlloc.cpp |
17 | @@ -247,8 +247,20 @@ |
18 | #endif |
19 | |
20 | #ifdef AVMPLUS_SPARC |
21 | +#ifdef __linux__ // bugzilla 502369 |
22 | +void sync_instruction_memory(caddr_t v, u_int len) |
23 | +{ |
24 | + caddr_t end = v + len; |
25 | + caddr_t p = v; |
26 | + while (p < end) { |
27 | + asm("flush %0" : : "r" (p)); |
28 | + p += 32; |
29 | + } |
30 | +} |
31 | +#else |
32 | extern "C" void sync_instruction_memory(caddr_t v, u_int len); |
33 | #endif |
34 | +#endif |
35 | |
36 | #if defined NANOJIT_IA32 || defined NANOJIT_X64 |
37 | // intel chips have dcache/icache interlock |