ref: e4ce6aadac9e1de8d5ea625e9680d24cabce0e1a
parent: 08c1622b0d8de92c2650d7b0338d9abf20985827
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 20 17:34:41 EST 2020
kernel: handle tos and per process pcycle counters in port/ we might as well handle the per process cycle counter in the portable part instead of duplicating the code in every arch and have inconsistent implementations. we now have a portable kenter() and kexit() function, that is ment to be used in trap/syscall from user, which updates the counters. some kernels missed initializing Mach.cyclefreq.