MCPcopy Create free account
hub / github.com/F-Stack/f-stack / piix_get_timecount

Function piix_get_timecount

freebsd/i386/i386/mp_clock.c:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 "");
87
88static unsigned
89piix_get_timecount(struct timecounter *tc)
90{
91 unsigned u1, u2, u3;
92
93 u2 = inl(piix_timecounter_address);
94 u3 = inl(piix_timecounter_address);
95 do {
96 u1 = u2;
97 u2 = u3;
98 u3 = inl(piix_timecounter_address);
99 } while (u1 > u2 || u2 > u3);
100 return (u2);
101}
102
103static int
104piix_probe(device_t dev)

Callers

nothing calls this directly

Calls 1

inlFunction · 0.50

Tested by

no test coverage detected