From a0a7d73a053d50434835bda0ccbb132839adb5ce Mon Sep 17 00:00:00 2001
From: Connor Wood <connorwood71@gmail.com>
Date: Fri, 14 Jul 2017 20:22:11 +0100
Subject: [PATCH] Removed PIT code

---
 x86_64/initialize.asm     | 35 -----------------------------------
 x86_64/startup-common.asm |  4 ----
 2 files changed, 39 deletions(-)

diff --git a/x86_64/initialize.asm b/x86_64/initialize.asm
index 90a42d4..e0ac449 100644
--- a/x86_64/initialize.asm
+++ b/x86_64/initialize.asm
@@ -18,38 +18,3 @@ initialize:
     or ax, 0000011000000000b
     mov cr4, eax
     ret
-
-;PIT Frequency
-;If using nanoseconds, to minimize drift, one should find a frequency as close to an integer nanosecond value in wavelength
-;Divider    Hz                                Nanoseconds                            Properties
-;2685        444.38795779019242706393        2250286.00003631746492922946        Best For Context Switching
-;5370        222.19397889509621353196        4500572.00007263492985856020
-;21029       56.73981961418358774390         17624306.99991199998882825455
-;23714       50.31549576902532962244         19874592.99994831745375667118
-;26399       45.19798729749864262535         22124878.99998463491868476373
-;29084       41.02536331545408701233         24375165.00002095238361424615
-;31769       37.55804925136663623868         26625451.00005726984854313455
-;34454       34.63115071302799868423         28875737.00009358731347639618
-;50113       23.80982313305263437963         41999471.99993295237244784676
-;52798       22.59899364874932131267         44249757.99996926983737931766
-;55483       21.50535599492937776736         46500044.00000558730230583335        Lowest Drift
-;58168       20.51268165772704350616         48750330.00004190476724037528
-;60853       19.60760630809765610021         51000616.00007822223218031738
-
-.pit:
-    ;initialize the PIT
-    mov ax, 2685 ;this is the divider for the PIT
-    out 0x40, al
-    rol ax, 8
-    out 0x40, al
-    ;DISABLED ;enable rtc interrupt
-    ;mov al, 0xB
-    ;out 0x70, al
-    ;rol ax, 8
-    ;in al, 0x71
-    ;rol ax, 8
-    ;out 0x70, al
-    ;rol ax, 8
-    ;or al, 0x40
-    ;out 0x71, al
-    ret
diff --git a/x86_64/startup-common.asm b/x86_64/startup-common.asm
index fb29d7f..5fd0834 100644
--- a/x86_64/startup-common.asm
+++ b/x86_64/startup-common.asm
@@ -41,10 +41,6 @@ startup:
     call printrm
     call initialize.sse
 
-    mov si, init_pit_msg
-    call printrm
-    call initialize.pit
-
     mov si, startup_arch_msg
     call printrm
 
-- 
GitLab