Kernel/x86 - Add flag to set PIT to larges possible divisor
authorJohn Hodge <[email protected]>
Sun, 9 Feb 2014 01:36:50 +0000 (09:36 +0800)
committerJohn Hodge <[email protected]>
Sun, 9 Feb 2014 01:36:50 +0000 (09:36 +0800)
KernelLand/Kernel/arch/x86/proc.c

index 2869c3c..dac26c9 100644 (file)
 #define DEBUG_DISABLE_DOUBLEFAULT      1
 #define DEBUG_VERY_SLOW_PERIOD 0
 #define DEBUG_NOPREEMPT        1
+#define DISABLE_PIT    0
 
 // === CONSTANTS ===
 // Base is 1193182
 #define TIMER_BASE      1193182
-#if DEBUG_VERY_SLOW_PERIOD
+#if DISABLE_PIT
+# define TIMER_DIVISOR 0xFFFF
+#elif DEBUG_VERY_SLOW_PERIOD
 # define TIMER_DIVISOR 1193    //~10Hz switch, with 10 quantum = 1s per thread
 #else
 # define TIMER_DIVISOR 11932   //~100Hz

UCC git Repository :: git.ucc.asn.au