-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some more explanation on what the purpose of everything is
- Loading branch information
1 parent
6ddeb92
commit 8f2570d
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# How to use the APIC | ||
|
||
## src/main.rs | ||
|
||
In the example provided we will be using a dynamic memory mapping. This is for exemplification only and can be changed | ||
with your own implementation of the memory mapper. | ||
|
||
## src/apic.rs | ||
|
||
Here we create an `AcpiHandlerImpl` that implements the `AcpiHandler` trait from the `apic` crate. | ||
We have also added an enum with all the APIC registers from | ||
the [OS Dev Wiki](https://wiki.osdev.org/APIC) | ||
The main functions of the file are: | ||
|
||
- Init the Local APIC | ||
- Init the IO APIC | ||
- Map the APIC | ||
|
||
## src/frame_allocator.rs | ||
|
||
This implements a basic frame allocator based on the [blog post](https://os.phil-opp.com/heap-allocation/) | ||
|
||
## src/gdt.rs | ||
|
||
Implements a basic Global Descriptor Table based on | ||
the [blog post](https://os.phil-opp.com/double-fault-exceptions/#the-global-descriptor-table/) as well as ensures that | ||
all segment registers are written, including `ss` and `ds`. | ||
|
||
## src/idt.rs | ||
Implements a basic Interrupt Descriptor Table based on the [blog post](https://os.phil-opp.com/hardware-interrupts/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters