Fix eternal sleep in floppysleep
This commit is contained in:
@@ -31,14 +31,12 @@ unsigned long long _start(float *init_a)
|
|||||||
fs_load(init_a, 1);
|
fs_load(init_a, 1);
|
||||||
|
|
||||||
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (start));
|
__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));
|
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (end));
|
||||||
|
|
||||||
//
|
((BOOTROM_FUNC) timer_deadline_enter)(2 * end - start - 64, ((BOOTROM_FUNC) 0x10000b924));
|
||||||
// ((BOOTROM_FUNC) timer_deadline_enter)(2 * end - start - 64, ((BOOTROM_FUNC) 0x10000b924));
|
((BOOTROM_FUNC) halt)();
|
||||||
// ((BOOTROM_FUNC) halt)();
|
|
||||||
|
|
||||||
|
__asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report));
|
||||||
// __asm__ volatile ("mrs %0, cntpct_el0" : "=r" (report));
|
return report - start;
|
||||||
return end - start;
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user