Skip to content

Commit b87ecd0

Browse files
committed
Make Entry::handler_addr() a public method.
1 parent 0e1587b commit b87ecd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/structures/idt.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,9 @@ impl<F> Entry<F> {
735735
&mut self.options
736736
}
737737

738+
/// Returns the virtual address of this IDT entry's handler function as a `u64`.
738739
#[inline]
739-
fn handler_addr(&self) -> u64 {
740+
pub fn handler_addr(&self) -> u64 {
740741
self.pointer_low as u64
741742
| (self.pointer_middle as u64) << 16
742743
| (self.pointer_high as u64) << 32

0 commit comments

Comments
 (0)