mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[HALXBOX] Fix clock drift (#2889)
Add a new rollover table for Original Xbox (base frequency is 1.125000 MHz). This fixes potential time issues in kernel and drivers. CORE-16216
This commit is contained in:
parent
092bc78a42
commit
17c5fb8866
7 changed files with 76 additions and 24 deletions
32
hal/halx86/generic/clock.c
Normal file
32
hal/halx86/generic/clock.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Hardware Abstraction Layer
|
||||
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
||||
* PURPOSE: PIT rollover table
|
||||
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
|
||||
* Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||
*/
|
||||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <hal.h>
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
HALP_ROLLOVER HalpRolloverTable[15] =
|
||||
{
|
||||
{1197, 10032}, /* 1 ms */
|
||||
{2394, 20064},
|
||||
{3591, 30096},
|
||||
{4767, 39952},
|
||||
{5964, 49984},
|
||||
{7161, 60016},
|
||||
{8358, 70048},
|
||||
{9555, 80080},
|
||||
{10731, 89936},
|
||||
{11949, 100144},
|
||||
{13125, 110000},
|
||||
{14322, 120032},
|
||||
{15519, 130064},
|
||||
{16695, 139920},
|
||||
{17892, 149952} /* 15 ms */
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue