diff --git a/qiboot/src/drivers/glamo-mmc.c b/qiboot/src/drivers/glamo-mmc.c index 4f2f530..a031d0b 100644 --- a/qiboot/src/drivers/glamo-mmc.c +++ b/qiboot/src/drivers/glamo-mmc.c @@ -64,15 +64,6 @@ int mmc_read(unsigned long src, u8 *dst, int size); }) - -int q; - -void udelay(int n) -{ - while (n--) - q+=n * q; -} - static void glamo_reg_write(u16 val, u16 reg) { diff --git a/qiboot/src/utils.c b/qiboot/src/utils.c index ffc1368..ffca1f5 100644 --- a/qiboot/src/utils.c +++ b/qiboot/src/utils.c @@ -213,3 +213,11 @@ void *malloc(size_t size) void free(void *ptr) { } + +int q; + +void udelay(int n) +{ + while (n--) + q+=n * q; +}