Delay call to timer_setup() until after the xxx_platform_setup() calls so that the pmtimer can be detected first. Most modern machines will have a pmtimer and calibrating the timestamp counter is frequently unnecessary.
Signed-off-by: Kevin O'Connor <[email protected]> --- src/post.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/post.c b/src/post.c index 8cb7b7c..6803585 100644 --- a/src/post.c +++ b/src/post.c @@ -168,13 +168,15 @@ platform_hardware_setup(void) pic_setup(); thread_setup(); mathcp_setup(); - timer_setup(); - clock_setup(); // Platform specific setup qemu_platform_setup(); coreboot_platform_setup(); + // Setup timers and periodic clock interrupt + timer_setup(); + clock_setup(); + // Initialize TPM tpm_setup(); } -- 1.9.3 _______________________________________________ SeaBIOS mailing list [email protected] http://www.seabios.org/mailman/listinfo/seabios
