Skip to content

Commit d8edd3f

Browse files
authored
Merge pull request #363 from rust-osdev/macro
Remove software_interrupt! macro
2 parents c739493 + cfd24c7 commit d8edd3f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/instructions/interrupts.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,6 @@ pub fn int3() {
133133
}
134134
}
135135

136-
/// Generate a software interrupt by invoking the `int` instruction.
137-
///
138-
/// This currently needs to be a macro because the `int` argument needs to be an
139-
/// immediate. This macro will be replaced by a generic function when support for
140-
/// const generics is implemented in Rust.
141-
#[macro_export]
142-
macro_rules! software_interrupt {
143-
($x:expr) => {{
144-
asm!("int {id}", id = const $x, options(nomem, nostack));
145-
}};
146-
}
147-
148136
/// Generate a software interrupt by invoking the `int` instruction.
149137
///
150138
/// ## Safety

0 commit comments

Comments
 (0)