FreeBSD Bugzilla – Attachment 202405 Details for
Bug 236078
science/qbox: fix build on powerpc*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
qbox.patch (text/plain), 1.65 KB, created by
Piotr Kubaj
on 2019-02-27 09:41:44 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-02-27 09:41:44 UTC
Size:
1.65 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 493948) >+++ Makefile (working copy) >@@ -21,7 +21,7 @@ > libuuid.so:misc/e2fsprogs-libuuid \ > libxerces-c.so:textproc/xerces-c3 > >-USES= gmake iconv:wchar_t localbase:ldflags >+USES= compiler:c++11-lang gmake iconv:wchar_t localbase:ldflags > USE_GITHUB= yes > GH_ACCOUNT= qboxcode > GH_PROJECT= qbox-public >Index: files/patch-readTSC.C >=================================================================== >--- files/patch-readTSC.C (nonexistent) >+++ files/patch-readTSC.C (working copy) >@@ -0,0 +1,25 @@ >+--- readTSC.C.orig 2019-02-27 09:30:27 UTC >++++ readTSC.C >+@@ -19,10 +19,22 @@ >+ long long readTSC(void) >+ { >+ union { long long complete; unsigned int part[2]; } ticks; >++#ifdef __amd64__ >+ __asm__ ("rdtsc; mov %%eax,%0;mov %%edx,%1" >+ : "=mr" (ticks.part[0]), >+ "=mr" (ticks.part[1]) >+ : /* no inputs */ >+ : "eax", "edx"); >++#elif __powerpc__ >++ unsigned int tmp; >++ __asm__ ("0:" >++ "mftbu %[hi32]\n" >++ "mftb %[lo32]\n" >++ "mftbu %[tmp]\n" >++ "cmpw %[tmp],%[hi32]\n" >++ "bne 0b\n" >++ : [hi32] "=r"(ticks.part[0]), [lo32] "=r"(ticks.part[1]), >++ [tmp] "=r"(tmp)); >++#endif >+ return ticks.complete; >+ } > >Property changes on: files/patch-readTSC.C >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236078
: 202405