mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update I/O Port links in hardware interrupts post
This commit is contained in:
@@ -66,7 +66,7 @@ This graphic shows the typical assignment of interrupt lines. We see that most o
|
||||
|
||||
Each controller can be configured through two [I/O ports], one “command” port and one “data” port. For the primary controller these ports are `0x20` (command) and `0x21` (data). For the secondary controller they are `0xa0` (command) and `0xa1` (data). For more information on how the PICs can be configured see the [article on osdev.org].
|
||||
|
||||
[I/O ports]: ./second-edition/posts/05-integration-tests/index.md#port-i-o
|
||||
[I/O ports]: ./second-edition/posts/04-testing/index.md#i-o-ports
|
||||
[article on osdev.org]: https://wiki.osdev.org/8259_PIC
|
||||
|
||||
### Implementation
|
||||
@@ -497,7 +497,7 @@ We now see that a `k` appears on the screen when we press a key. However, this o
|
||||
|
||||
To find out _which_ key was pressed, we need to query the keyboard controller. We do this by reading from the data port of the PS/2 controller, which is the [I/O port] with number `0x60`:
|
||||
|
||||
[I/O port]: ./second-edition/posts/05-integration-tests/index.md#port-i-o
|
||||
[I/O port]: ./second-edition/posts/04-testing/index.md#i-o-ports
|
||||
|
||||
```rust
|
||||
// in src/interrupts.rs
|
||||
|
||||
Reference in New Issue
Block a user