Actually explicitly check... don't want to sleep for a whole experiment

This commit is contained in:
2020-01-21 10:28:32 -05:00
parent 420e60cf7f
commit 54e64d982e

View File

@@ -34,9 +34,12 @@ unsigned long long _start(float *init_a)
for(i = 0; i < 8; i++) check = fs_routine(); for(i = 0; i < 8; i++) check = fs_routine();
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (end)); __asm__ volatile ("mrs %0, cntpct_el0" : "=r" (end));
((BOOTROM_FUNC) timer_deadline_enter)(2 * end - start - 64, ((BOOTROM_FUNC) 0x10000b924)); if(2 * end - start - 64 > 0)
((BOOTROM_FUNC) halt)(); {
((BOOTROM_FUNC) timer_deadline_enter)(2 * end - start - 64, ((BOOTROM_FUNC) 0x10000b924));
((BOOTROM_FUNC) halt)();
}
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report)); __asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report));
return report - start; return report - start;
} }