* move libffi to base/ Category
[t2sde.git] / package / www / firefox / hotfix-sparc.patch
blob4f642df2c8728218a2ed21eba765441af669e44f
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/firefox/hotfix-sparc.patch
3 # Copyright (C) 2023 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- firefox-118.0.2/xpcom/reflect/xptcall/md/unix/xptcinvoke_sparc_solaris.cpp.vanilla 2023-10-14 18:44:45.091217433 +0200
15 +++ firefox-118.0.2/xpcom/reflect/xptcall/md/unix/xptcinvoke_sparc_solaris.cpp 2023-10-14 18:57:05.548236848 +0200
16 @@ -22,7 +22,7 @@
17 uint32_t result = 0;
18 for(uint32_t i = 0; i < paramCount; i++, s++)
20 - if(s->IsPtrData())
21 + if(s->IsIndirect())
23 result++;
24 continue;
25 @@ -90,15 +90,15 @@
26 for(uint32_t i = 0; i < l_paramCount; i++, l_d++, l_s++)
28 if (regCount < 5) regCount++;
29 - if(l_s->IsPtrData())
30 + if(l_s->IsIndirect())
32 if(l_s->type == nsXPTType::T_JSVAL)
34 // On SPARC, we need to pass a pointer to HandleValue
35 - *((void**)l_d) = &l_s->ptr;
36 + *((void**)l_d) = &l_s->val.p;
37 } else
39 - *((void**)l_d) = l_s->ptr;
40 + *((void**)l_d) = l_s->val.p;
42 continue;