Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: client/deps/iotools/iotools.arm.patch

Issue 1616002: GPIO button test (Closed)
Patch Set: Tested on proto machine, fix typo, iotools unpacking Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/deps/iotools/iotools-1.2.tar.gz ('k') | client/site_tests/hardware_GPIOSwitches/control » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/iotools/iotools.arm.patch
diff --git a/client/deps/iotools/iotools.arm.patch b/client/deps/iotools/iotools.arm.patch
new file mode 100644
index 0000000000000000000000000000000000000000..058f749288c4fa50a06083dd0a6e869884bb9fb6
--- /dev/null
+++ b/client/deps/iotools/iotools.arm.patch
@@ -0,0 +1,35 @@
+diff -Naur misc.c misc.c
+--- misc.c 2008-08-07 09:50:29.000000000 -0700
++++ misc.c 2010-04-05 12:06:14.000000000 -0700
+@@ -96,8 +96,11 @@
+ rdtsc(int argc, const char *argv[], const struct cmd_info *info)
+ {
+ unsigned long long tsc;
+-
++#ifdef __arm__
++ tsc = 0;
++#else
+ rdtscll(tsc);
++#endif
+ printf("0x%016llx\n", tsc);
+
+ return 0;
+@@ -110,14 +113,16 @@
+ if (set_cpu_affinity(cpu) < 0) {
+ return -1;
+ }
+-
++#ifdef __arm__
++ return -1;
++#else
+ asm volatile (
+ "cpuid\n\t"
+ : "=a" (data[0]), "=b" (data[1]), "=c" (data[2]), "=d" (data[3])
+ : "0" (function), "2" (index)
+ : "memory"
+ );
+-
++#endif
+ return 0;
+ }
+
« no previous file with comments | « client/deps/iotools/iotools-1.2.tar.gz ('k') | client/site_tests/hardware_GPIOSwitches/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698