diff --git a/common/main.c b/common/main.c
index b145f85..8cdfb8b 100644
--- a/common/main.c
+++ b/common/main.c
@@ -225,6 +225,7 @@ static inline
 int abortboot(int bootdelay)
 {
 	int abort = 0;
+	unsigned long ts;
 
 #ifdef CONFIG_MENUPROMPT
 	printf(CONFIG_MENUPROMPT);
@@ -248,11 +249,13 @@ int abortboot(int bootdelay)
 #endif
 
 	while ((bootdelay > 0) && (!abort)) {
-		int i;
+		int i, j;
 
 		--bootdelay;
 		/* delay 100 * 10ms */
-		for (i=0; !abort && i<100; ++i) {
+		j = 100;
+		for (i = 0; !abort && i < j; ++i) {
+			ts = get_timer(0);
 			if (tstc()) {	/* we got a key press	*/
 				abort  = 1;	/* don't auto boot	*/
 				bootdelay = 0;	/* no more delay	*/
@@ -263,7 +266,11 @@ int abortboot(int bootdelay)
 # endif
 				break;
 			}
-			udelay(10000);
+			ts = get_timer(ts);
+			if (ts < 10)
+				mdelay(10 - ts);
+			else
+				j = 1000 / (int) ts;
 		}
 
 		printf("\b\b\b%2d ", bootdelay);
