access to a shared variable from different cores
An example of sharing global variables between different cores
? .my_lock = 0;
? .my_counter = 0;spinlock_lock(&.my_lock);
.my_counter = .my_counter + 1;
printf("NtCreateFile syscall (0x0055) is called %llx times\n", .my_counter);
spinlock_unlock(&.my_lock);Last updated