This structure is mapped read-only into user address space
| 18 | |
| 19 | /// This structure is mapped read-only into user address space |
| 20 | pub struct KernelInfo { |
| 21 | pub pit_ticks: u64, // Number of PIT ticks since restart |
| 22 | pub last_tsc: u64, // TSC value at last pit_ticks update |
| 23 | pub tsc_per_pit: u64, // Change in TSC ticks per PIT tick |
| 24 | } |
| 25 | |
| 26 | /// The virtual address of the KernelInfo struct |
| 27 | const KERNELINFO_VIRTADDR: u64 = 0x4fff000; |
nothing calls this directly
no outgoing calls
no test coverage detected