Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bootloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
bootloader
Commits
a0a7d73a
Unverified
Commit
a0a7d73a
authored
7 years ago
by
Connor Wood
Browse files
Options
Downloads
Patches
Plain Diff
Removed PIT code
parent
5edf2995
No related branches found
No related tags found
1 merge request
!2
Removed PIT code
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
x86_64/initialize.asm
+0
-35
0 additions, 35 deletions
x86_64/initialize.asm
x86_64/startup-common.asm
+0
-4
0 additions, 4 deletions
x86_64/startup-common.asm
with
0 additions
and
39 deletions
x86_64/initialize.asm
+
0
−
35
View file @
a0a7d73a
...
...
@@ -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
This diff is collapsed.
Click to expand it.
x86_64/startup-common.asm
+
0
−
4
View file @
a0a7d73a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment