fix(timer): fixed warning about implict casting int to UInt64
This commit is contained in:
@@ -10,5 +10,5 @@ void TimerReset(UInt64 interval) {
|
||||
UInt64 frequency;
|
||||
__asm__ volatile ("mrs %0, cntfrq_el0" : "=r"(frequency));
|
||||
__asm__ volatile ("msr cntv_tval_el0, %0" :: "r"(frequency /interval));
|
||||
__asm__ volatile ("msr cntv_ctl_el0, %0" :: "r" (1));
|
||||
__asm__ volatile ("msr cntv_ctl_el0, %0" :: "r"((UInt64)1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user