10000 Fix: wrong masking in ERDP (#132) · rust-osdev/xhci@8541937 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8541937

Browse files
authored
Fix: wrong masking in ERDP (#132)
1 parent 4ea4f10 commit 8541937

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Fixed
1212
- Outdated code example in `README.md` is fixed.
1313
- Removed all the use of deprecated code.
14+
- Wrong masking in `EventRingDequeuePointerRegister::event_ring_dequeue_pointer` is fixed.
1415

1516
## 0.8.2 - 2021-05-13
1617
### Removed

src/registers/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl EventRingDequeuePointerRegister {
197197
/// Returns the address of the current Event Ring Dequeue Pointer.
198198
#[must_use]
199199
pub fn event_ring_dequeue_pointer(self) -> u64 {
200-
self.0 & 0b1111
200+
self.0 & !0b1111
201201
}
202202

203203
/// Sets the address of the current Event Ring Dequeue Pointer. It must be 16 byte aligned.

0 commit comments

Comments
 (0)
0