[OpenBIOS] [PATCH 1/5] SPARC64: fixup 100Hz timer interval

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun May 4 19:29:39 CEST 2014


As we are attempting to emulate a 100MHz CPU, then in order to get a 100Hz
timer interrupt the cycle interval needs to be 1MHz and not 10MHz.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
 openbios-devel/arch/sparc64/entry.S   |    2 +-
 openbios-devel/arch/sparc64/vectors.S |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbios-devel/arch/sparc64/entry.S b/openbios-devel/arch/sparc64/entry.S
index 33632b1..d03128a 100644
--- a/openbios-devel/arch/sparc64/entry.S
+++ b/openbios-devel/arch/sparc64/entry.S
@@ -17,7 +17,7 @@
 
 #define PROM_ADDR 0x1fff0000000
 #define CFG_ADDR  0x1fe02000510
-#define HZ        10 * 1000 * 1000
+#define HZ        1 * 1000 * 1000
 #define TICK_INT_DIS 0x8000000000000000
 
         .globl	entry, _entry
diff --git a/openbios-devel/arch/sparc64/vectors.S b/openbios-devel/arch/sparc64/vectors.S
index 0e65475..600043a 100644
--- a/openbios-devel/arch/sparc64/vectors.S
+++ b/openbios-devel/arch/sparc64/vectors.S
@@ -30,7 +30,7 @@
 #define PROM_ADDR 0x1fff0000000
 #define SER_ADDR 0x1fe020003f8
 #define TICK_INT_DIS 0x8000000000000000
-#define TICK_INTERVAL 10*1000*1000
+#define TICK_INTERVAL 1*1000*1000
 
         .section ".text.vectors", "ax"
         .align 16384
-- 
1.7.10.4




More information about the OpenBIOS mailing list