aboutsummaryrefslogtreecommitdiff
path: root/src/machine
Commit message (Collapse)AuthorAge
* io: add serial output through port 0x3f8 (qemu)Tianhao Wang2024-06-11
| | | | | not yet wrapped with fmt macros because I want some thing stateless. (i.e. I don't want to pass `&mut self` to write_str...).
* chore: remove unused depsTianhao Wang2024-06-11
|
* mm: fix Range type and addr roundingTianhao Wang2024-06-11
| | | | Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
* mm: add stack based PMATianhao Wang2024-06-11
| | | | | | | use 8MiB reserved array to manage up to 4GiB of physical memory (4K Pages only) Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
* multiboot: docs and cleanupTianhao Wang2024-06-11
| | | | Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
* multiboot: parse mmap blocksTianhao Wang2024-06-11
| | | | Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
* multiboot: get memory info from MB infoTianhao Wang2024-06-11
| | | | Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
* multiboot: basic support for multiboot infoTianhao Wang2024-06-11
| | | | | | | | well, it's not trivial to use bios function because thanks to grub + multiboot, we are already in protected mode when the startup code takes control. Also the MB info is easier to play with than BIOS (or ACPI) Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
* keyboard: pad key translation tableTianhao Wang2024-06-11
| | | | | | | | some keys such as the Win key has larger scancode, causing out-of-bound read in the translation table. As a temp fix pad the tables with 0 up to 100 chars. Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
* fix io blocking bug in kbdctlTianhao Wang2024-06-11
|
* cgascr: refactoringTianhao Wang2024-06-11
|
* choreTianhao Wang2024-06-11
|
* formatting codeTianhao Wang2024-06-11
|
* mask keyboard interrupt while polling keyTianhao Wang2024-06-11
|
* remove plugbox moduleTianhao Wang2024-06-11
|
* cgascr: init cursor in rust codeTianhao Wang2024-06-11
|
* keyboard: implement leds and rebootTianhao Wang2024-06-11
| | | | works on qemu, untested on real machine
* fix bug in cga driverTianhao Wang2024-06-11
|
* chore: make clippy happyTianhao Wang2024-06-11
|
* PS/2 Keyboard controller: read and decode keyTianhao Wang2024-06-11
|
* PS/2 Keyboard controller: baselineTianhao Wang2024-06-11
|
* add IOPort structTianhao Wang2024-06-11
| | | | So that device IO can be be synchronized.
* keyctl: use bitflags for key modifiersTianhao Wang2024-06-11
| | | | Merge key modifier getters and setters
* make device_io a arch independent interface.Tianhao Wang2024-06-11
| | | | | In arm we will be using MMIO instead of the IO instructions. However the peripherals should use the same interface for IOs.
* basic interrupt/PIC supportTianhao Wang2024-06-11
|
* add println! and panic! macroTianhao Wang2024-02-01
| | | | | The rust lazy_static requires interior mutability. I have to include a Mutex impl (spin::Mutex). But I'd like to implement my own primitives.
* formatting code, use tab identation -- before it's too lateTianhao Wang2024-01-30
|
* minimal support for keyctrl, not completeTianhao Wang2023-03-24
|
* usable printf, with some ptr magicTianhao Wang2023-03-15
|
* add delay between IOsTianhao Wang2023-03-14
|
* CGA cursor locationTianhao Wang2023-03-14
|
* adding io portTianhao Wang2023-03-11
|
* fix linkingTianhao Wang2023-03-11
|
* a minimal working demo on bare metalTianhao Wang2023-03-10