freebsd-dev/sys/i386/include
Poul-Henning Kamp d1b40f007d i386/i386/tsc.c was repo-copied from i386/isa/clock.c.
Remove all the stuff that does not relate to the TSC.

Change the calibration to use DELAY(1000000) rather than trying to check
it against the CMOS RTC, this drastically increases precision:

Using 25 samples on a Athlon 700MHz UP machine I find:

                stddev          min          max        average
CMOS             22200 Hz    -74980 Hz     34301 Hz   704928721 Hz
DELAY             1805 Hz     -1984 Hz      2678 Hz   704937583 Hz

(The difference between the two averages is not statistically significant.)

expressed in PPM of the frequency:
                stddev          min          max
CMOS             31.49 PPM  -106.37 PPM    48.66 PPM
DELAY             2.56 PPM     2.81 PPM     3.80 PPM

This code will not be used until a followup commit to sys/isa/clock.c
and sys/pc98/pc98/clock.c which will only happen after some field testing.
2003-02-05 09:20:40 +00:00
..
pc Removed bits related to MBRs now that they have a proper home in 2002-10-02 03:29:00 +00:00
_inttypes.h Since printf(3) now supports the `j' conversion specifier, use that 2002-06-30 05:48:03 +00:00
_limits.h Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
_stdint.h Create a new header <machine/_stdint.h> for storing MD parts of 2002-07-29 17:41:23 +00:00
_types.h Use long long to indicate 64bitness in #ifdef lint. 2002-10-01 14:07:18 +00:00
acpica_machdep.h Resolve conflicts arising from the ACPI CA 20020725 import. 2002-07-30 19:35:32 +00:00
apic.h Nuke CHEAP_TPR stuff, including LOPRIO_LEVEL (bogus) and ALLHWI_LEVEL 2003-01-23 01:03:34 +00:00
apicreg.h Nuke CHEAP_TPR stuff, including LOPRIO_LEVEL (bogus) and ALLHWI_LEVEL 2003-01-23 01:03:34 +00:00
apm_bios.h
apm_segments.h
asc_ioctl.h
asm.h PIC_GOTOFF is OBE. 2002-09-23 07:27:45 +00:00
asmacros.h Silence preprocessor warning, No need to use CONCAT with "," and "word". 2002-06-01 20:22:33 +00:00
atomic.h Add a knob to turn on and off the CMPXCHG instruction on > i386 IA32 systems. 2002-10-14 19:33:12 +00:00
bootinfo.h
bus_at386.h Warnings and lint-assisting fixes; mark unused function parameters as 2002-07-15 13:25:15 +00:00
bus_dma.h Implement bus_dmamem_alloc_size() and bus_dmamem_free_size() as 2003-01-29 07:25:27 +00:00
bus_memio.h
bus_pc98.h Remove unneeded ## for GCC 3.1 2002-05-21 12:50:20 +00:00
bus_pio.h
bus.h
cdk.h
clock.h i386/i386/tsc.c was repo-copied from i386/isa/clock.c. 2003-02-05 09:20:40 +00:00
comstats.h
cpu.h Make get_cyclecount() use binuptime() when no tsc is available: it is cheaper. 2003-02-05 08:55:10 +00:00
cpufunc.h Create inlines for ltr(sel), lldt(sel), lidt(addr) rather than 2002-09-22 04:45:21 +00:00
cputypes.h Move a prototype to the least wrong place. 2002-08-02 18:45:43 +00:00
critical.h Remove the critmode sysctl - the new method for critical_enter/exit (already 2002-07-10 20:15:58 +00:00
cronyx.h
db_machdep.h
dvcfg.h
elf.h Move the definition of ElfN_Hashelt to common headers. The only platform 2002-05-30 08:32:18 +00:00
endian.h Be careful not to define GCC-specific optimizations in the non-GCC 2002-09-23 04:32:17 +00:00
exec.h
float.h Use the correct values for LDBL_*. Libc doesn't completely support 2002-10-25 07:02:52 +00:00
floatingpoint.h o Move the contents of <machine/floatingpoint.h> over to 2003-01-19 06:01:33 +00:00
frame.h
gsc.h
i4b_cause.h
i4b_debug.h
i4b_ioctl.h add support properly displaying and logging incoming telephone numbers (MSNs) 2002-08-12 07:53:55 +00:00
i4b_rbch_ioctl.h
i4b_tel_ioctl.h
i4b_trace.h
ieeefp.h o Move the contents of <machine/floatingpoint.h> over to 2003-01-19 06:01:33 +00:00
if_wl_wavelan.h Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
in_cksum.h Fix several bugs in the i386 asm statements used to speed up Internet 2002-06-22 22:35:53 +00:00
ioctl_bt848.h
ioctl_ctx.h
ioctl_meteor.h
kse.h Add files that are new for KSE. 2002-06-29 07:04:59 +00:00
legacyvar.h Add a new legacy(4) device driver for use on machines that do not have 2002-09-23 15:50:06 +00:00
limits.h Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
md_var.h - Move enable_sse()'s prototype to machine/md_var.h. 2003-01-22 18:18:45 +00:00
mpapic.h
mptable.h Split statclock into statclock and profclock, and made the method for driving 2003-02-03 17:53:15 +00:00
mtpr.h
mutex.h
npx.h At great personal risk, add a __packed and __aligned(x) define that 2002-09-23 05:55:10 +00:00
param.h Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
pcaudioio.h
pcb_ext.h
pcb.h 1.Fix smp race between kernel vm86 BIOS calling and userland vm86 mode code, 2002-11-07 01:34:23 +00:00
pci_cfgreg.h Add a function pci_probe_route_table() that returns true if our PCI BIOS 2002-09-06 22:15:44 +00:00
pcpu.h A more lint friendly #ifdef lint section. 2002-10-01 14:01:58 +00:00
pcvt_ioctl.h
pecoff_machdep.h
perfmon.h
physio_proc.h
pmap.h o Introduce pmap_page_is_mapped(). Its purpose is to obsolete 2002-08-05 03:40:28 +00:00
privatespace.h
proc.h Note that the sched_lock protects md_ldt of struct mdproc. 2002-10-25 20:06:16 +00:00
profile.h Fix a declaration that is actually supposed to be a macro definition. 2002-09-25 13:46:23 +00:00
psl.h
ptrace.h
reg.h Properly parenthesize the DBREG_DRX macro's variables to allow for 2002-11-07 22:42:31 +00:00
reloc.h
resource.h
runq.h Move the "- 1" into the RQB_FFS(mask) macro itself so that 2002-06-20 06:21:20 +00:00
segments.h Remove BDE_DEBUGGER. 2003-01-28 19:05:44 +00:00
setjmp.h Fix namespace issues by using visibility conditionals from 2002-10-05 05:47:56 +00:00
sigframe.h Split 4.x and 5.x signal handling so that we can keep 4.x signal 2002-10-25 19:10:58 +00:00
signal.h Align the FPU state in the ucontext and sigcontext to 16 bytes 2002-12-02 19:58:55 +00:00
smapi.h A driver for the System Management Application Program 2003-01-17 08:10:18 +00:00
smp.h Split statclock into statclock and profclock, and made the method for driving 2003-02-03 17:53:15 +00:00
smptests.h Clean up some junk defines, and GC the TPR options. 2003-01-23 01:04:27 +00:00
speaker.h Very minor whitespace/style nit. 2002-10-23 10:14:30 +00:00
specialreg.h Bah, add in a missing space char I noticed when MFC'ing this. 2003-01-22 17:26:18 +00:00
spigot.h
stdarg.h Fix for non-GCC compilers. 2002-11-27 16:28:18 +00:00
sysarch.h There is no need for start/num to be signed in i386_ldt_args. 2002-09-28 20:42:04 +00:00
trap.h
tss.h Delete a whole bunch of compatability defines that we dont use anymore. 2002-09-23 05:04:05 +00:00
ucontext.h Align the FPU state in the ucontext and sigcontext to 16 bytes 2002-12-02 19:58:55 +00:00
varargs.h Add conditionals to allow va_list to be defined in other headers. 2002-10-06 22:02:06 +00:00
vm86.h 1.Fix smp race between kernel vm86 BIOS calling and userland vm86 mode code, 2002-11-07 01:34:23 +00:00
vmparam.h
wtio.h