Fix eternal sleep in floppysleep

This commit is contained in:
2020-01-21 10:27:50 -05:00
parent b1bf2daa2f
commit 420e60cf7f

View File

@@ -31,14 +31,12 @@ unsigned long long _start(float *init_a)
fs_load(init_a, 1);
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (start));
for(i = 0; i < 1; i++) check = fs_routine();
for(i = 0; i < 8; i++) check = fs_routine();
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (end));
//
// ((BOOTROM_FUNC) timer_deadline_enter)(2 * end - start - 64, ((BOOTROM_FUNC) 0x10000b924));
// ((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));
return end - start;
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report));
return report - start;
}