1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00

- Enable on amd64 [1].

- Take maintainership due to maintainer timeouts [2].

Submitted by:	Andriy Gapon <avg@icyb.net.ua> [1]
Approved by:	portmgr (linimon) [2]
This commit is contained in:
Stanislav Sedov 2008-09-03 23:22:12 +00:00
parent 21dd0fcf29
commit 2b749601ae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=219801
2 changed files with 18 additions and 2 deletions

View File

@ -12,10 +12,10 @@ CATEGORIES= sysutils
MASTER_SITES= http://www.codemonkey.org.uk/projects/x86info/
EXTRACT_SUFX= .tgz
MAINTAINER= erik@smluc.org
MAINTAINER= stas@FreeBSD.org
COMMENT= Utility to display information about the systems x86 processor(s)
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS= i386 amd64
PLIST_FILES= bin/x86info
MAN1= x86info.1
MAKE_ARGS= CFLAGS="${CFLAGS}"

View File

@ -0,0 +1,16 @@
--- bench/benchmarks.c.orig 2008-09-04 03:03:34.000000000 +0400
+++ bench/benchmarks.c 2008-09-04 03:04:55.000000000 +0400
@@ -21,8 +21,13 @@
#endif
TIME(asm volatile("cpuid": : :"ax", "dx", "cx", "bx"), "cpuid");
+#ifdef __i386__
TIME(asm volatile("addl $1,0(%esp)"), "addl");
TIME(asm volatile("lock ; addl $1,0(%esp)"), "locked add");
+#elif defined(__amd64__)
+ TIME(asm volatile("addl $1,0(%rsp)"), "addl");
+ TIME(asm volatile("lock ; addl $1,0(%rsp)"), "locked add");
+#endif
TIME(asm volatile("bswap %0" : "=r" (tmp) : "0" (tmp)), "bswap");
}