-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: documente ISA/AT buses I/O Port map
- Loading branch information
Showing
14 changed files
with
277 additions
and
32 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
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
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,25 @@ | ||
extern kernel_start | ||
extern kernel_end | ||
extern kernel_size | ||
|
||
pmm_check_page_free: | ||
push ebp | ||
mov ebp, esp | ||
|
||
|
||
leave | ||
ret | ||
|
||
pmm_setup_from_multiboot_mmap: | ||
push ebp | ||
mov ebp, esp | ||
push edi | ||
push esi | ||
push ebx | ||
|
||
mov eax, [esi + mb_info.mmap_addr] | ||
pop ebx | ||
pop esi | ||
pop edi | ||
leave | ||
ret |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
;; File: cmos.s | ||
;; Real/Time Clock/CMOS RAM | ||
;; | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x00 - 0x0D | *Real-time clock information | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x0E | *Diagnostic status byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x0F | *Shutdown status byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x10 | Diskette drive type byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x12 | Fixed disk type byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x14 | Equipment byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x15 | Low base memory byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x16 | High base memory byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x17 | Low expansion memory byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x18 | High expansion memory byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x19 | Disk C extended byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x1A | Disk D extended byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x2E - 0x2F | CMOS checksum | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x30 | *Low expansion memory byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x31 | *High expansion memory byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x32 | *Date century byte | | ||
;; > +-------------+------------------------------+ | ||
;; > | 0x33 | *Flags | | ||
;; > +-------------+------------------------------+ | ||
|
||
CMOS_RTC equ 0x00 | ||
|
||
RTC_SECONDS equ 0x00 | ||
RTC_SECOND_ALRM equ 0x01 | ||
RTC_MINUTES equ 0x02 | ||
RTC_MINUTE_ALRM equ 0x03 | ||
RTC_HOURS equ 0x04 | ||
RTC_HOUR_ALRM equ 0x05 | ||
RTC_WEEKDAY equ 0x06 | ||
RTC_DATE_OF_MONTH equ 0x07 | ||
RTC_MONTH equ 0x08 | ||
RTC_YEAR equ 0x09 | ||
RTC_STATUS_REGA equ 0x0A | ||
RTC_STATUS_REGB equ 0x0B | ||
RTC_STATUS_REGC equ 0x0C | ||
RTC_STATUS_REGD equ 0x0D | ||
|
||
STATUS_REGA_UIP equ (1 << 7) | ||
|
||
STATUS_REGB_PIE equ (1 << 6) | ||
STATUS_REGB_AIE equ (1 << 5) | ||
STATUS_REGB_UIE equ (1 << 4) | ||
STATUS_REGB_SQWE equ (1 << 3) | ||
STATUS_REGB_DM equ (1 << 2) | ||
STATUS_REGB_24H equ (1 << 1) | ||
STATUS_REGB_DSE equ (1 << 0) | ||
|
||
CMOS_CENTURY equ 0x32 | ||
|
||
|
||
|
||
|
||
|
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,54 @@ | ||
File: IBM PC/AT | ||
|
||
About: I/O Address Map | ||
|
||
> +---------------+-------------------------+ | ||
> | 0x000 - 0x01F | DMA controller 1 | | ||
> +---------------+-------------------------+ | ||
> | 0x020 - 0x03F | 8259A, Primary | | ||
> +---------------+-------------------------+ | ||
> | 0x040 - 0x05F | Timer | | ||
> +---------------+-------------------------+ | ||
> | 0x060 - 0x06F | Keyboard | | ||
> +---------------+-------------------------+ | ||
> | 0x070 - 0x07F | CMOS | | ||
> +---------------+-------------------------+ | ||
> | 0x080 - 0x09F | DMA page register | | ||
> +---------------+-------------------------+ | ||
> | 0x0A0 - 0x0BF | 8259A, Secondary | | ||
> +---------------+-------------------------+ | ||
> | 0x0C0 - 0x0DF | DMA controller 2 | | ||
> +---------------+-------------------------+ | ||
> | 0x0F0 | Clear Math Coprocessor | | ||
> +---------------+-------------------------+ | ||
> | 0x0F1 | Reset Math Coprocessor | | ||
> +---------------+-------------------------+ | ||
> | 0x0F8 - 0x0FF | Math Coprocessor | | ||
> +---------------+-------------------------+ | ||
> | 0x1F0 - 0x1F8 | Fixed Disk | | ||
> +---------------+-------------------------+ | ||
> | 0x200 - 0x207 | Game I/O | | ||
> +---------------+-------------------------+ | ||
> | 0x278 - 0x27F | Parallel printer port 2 | | ||
> +---------------+-------------------------+ | ||
> | 0x2F8 - 0x2FF | Serial port 2 | | ||
> +---------------+-------------------------+ | ||
> | 0x300 - 0x31F | Prototype card | | ||
> +---------------+-------------------------+ | ||
> | 0x360 - 0x363 | PC Network (low) | | ||
> +---------------+-------------------------+ | ||
> | 0x368 - 0x36B | PC Network (high) | | ||
> +---------------+-------------------------+ | ||
> | 0x378 - 0x37F | Parallel printer port 1 | | ||
> +---------------+-------------------------+ | ||
> | 0x380 - 0x38F | SDLC, bisynchronous 2 | | ||
> +---------------+-------------------------+ | ||
> | 0x3B0 - 0x3BF | Monochrome Display | | ||
> +---------------+-------------------------+ | ||
> | 0x3D0 - 0x3DF | Color Monitor Adapter | | ||
> +---------------+-------------------------+ | ||
> | 0x3F0 - 0x3F7 | Diskette controller | | ||
> +---------------+-------------------------+ | ||
> | 0x3F8 - 0x3FF | Serial port 1 | | ||
> +---------------+-------------------------+ | ||
|
Empty file.
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,15 @@ | ||
;; File: pit.s | ||
;; Programmable Interval Timer (8253/8254) | ||
|
||
PIT_CHAN_0 equ 0x40 | ||
PIT_CHAN_1 equ 0x41 | ||
PIT_CHAN_2 equ 0x42 | ||
PIT_CMD equ 0x43 | ||
|
||
CMD_CHANNEL_1 equ (0x1 << 6) | ||
CMD_CHANNEL_2 equ (0x2 << 6) | ||
CMD_READ_BACK equ (0x3 << 6) | ||
CMD_ACCESS_LO equ (0x1 << 4) | ||
CMD_ACCESS_HI equ (0x2 << 4) | ||
CMD_ACCESS_LO_HI equ (0x3 << 4) | ||
|
File renamed without changes.
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 |
---|---|---|
@@ -1,10 +1,3 @@ | ||
struc lang_entry | ||
.code: resb 2 | ||
.data: resd 1 | ||
.next: resd 1 | ||
endstruc | ||
%include "i18n/lang.inc" | ||
|
||
struc msg_table | ||
.hello_world: resd 1 | ||
.cpu_exceptions: resd 32 | ||
endstruc | ||
extern msg_en |
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,10 @@ | ||
struc lang_entry | ||
.code: resb 2 | ||
.data: resd 1 | ||
.next: resd 1 | ||
endstruc | ||
|
||
struc msg_table | ||
.hello_world: resd 1 | ||
.cpu_exceptions: resd 32 | ||
endstruc |
Oops, something went wrong.