Merge pull request #52 from birth-software/minor-fix-to-static-builds
Minor fix to static builds
This commit is contained in:
commit
0f42decbf3
@ -1515,6 +1515,7 @@ may_be_unused fn u64 os_timer_get()
|
|||||||
|
|
||||||
may_be_unused fn void calibrate_cpu_timer()
|
may_be_unused fn void calibrate_cpu_timer()
|
||||||
{
|
{
|
||||||
|
#ifndef SILENT
|
||||||
#if LINK_LIBC
|
#if LINK_LIBC
|
||||||
// clock_getres(CLOCK_MONOTONIC, &cpu_resolution);
|
// clock_getres(CLOCK_MONOTONIC, &cpu_resolution);
|
||||||
#else
|
#else
|
||||||
@ -1535,6 +1536,7 @@ may_be_unused fn void calibrate_cpu_timer()
|
|||||||
u64 cpu_elapsed = cpu_end - cpu_start;
|
u64 cpu_elapsed = cpu_end - cpu_start;
|
||||||
cpu_frequency = os_frequency * cpu_elapsed / os_elapsed;
|
cpu_frequency = os_frequency * cpu_elapsed / os_elapsed;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
fn u8* reserve(u64 size)
|
fn u8* reserve(u64 size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user