Skip to content

Commit

Permalink
wip: update docs for ICR reg
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Jan 18, 2024
1 parent fcb2d18 commit 4d30bd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/labs/0x02/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ impl XApic {
self.write(0x310, 0); // set ICR 0x310
const BCAST: u32 = 1 << 19;
const INIT: u32 = 5 << 8;
const LEVEL: u32 = 1 << 15;
self.write(0x300, BCAST | INIT | LEVEL); // set ICR 0x300
const TMLV: u32 = 1 << 15; // TM = 1, LV = 0
self.write(0x300, BCAST | INIT | TMLV); // set ICR 0x300
const DS: u32 = 1 << 12;
while self.read(0x300) & DS != 0 {} // wait for delivery status
```
Expand Down

0 comments on commit 4d30bd5

Please sign in to comment.