[arch] factor out the debug_cycle_count to arch specific code

Conflicts:

	arch/arm/ops.S

Change-Id: Id0d9baa3e669cc59822819c797ce913dba1606d6
diff --git a/platform/pc/debug.c b/platform/pc/debug.c
index 06ac263..63652d8 100644
--- a/platform/pc/debug.c
+++ b/platform/pc/debug.c
@@ -35,7 +35,7 @@
 	cputc(c);
 }
 
-int dgetc(char *c)
+int dgetc(char *c, bool wait)
 {
 	int ret =  platform_read_key(c);
 	if (ret < 0)
@@ -72,10 +72,3 @@
 {
 }
 
-uint32_t debug_cycle_count()
-{
-	uint32_t timestamp;
-	rdtscl(timestamp);
-	
-	return timestamp;
-}