mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
Stage 10
This commit is contained in:
8
cleonos/c/apps/elfrunner_kmain.c
Normal file
8
cleonos/c/apps/elfrunner_kmain.c
Normal file
@@ -0,0 +1,8 @@
|
||||
typedef unsigned long long u64;
|
||||
|
||||
static u64 clks_local_counter = 0ULL;
|
||||
|
||||
u64 cleonos_kelf_entry(u64 tick, u64 run_count) {
|
||||
clks_local_counter += (run_count ^ tick) & 0xFFULL;
|
||||
return clks_local_counter;
|
||||
}
|
||||
Reference in New Issue
Block a user