Skip to content

Commit 3ef85cc

Browse files
katietheqt-oldjosephlr
authored andcommitted
Change software interrupt to use const
1 parent 151b1e3 commit 3ef85cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instructions/interrupts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub fn int3() {
162162
#[macro_export]
163163
macro_rules! software_interrupt {
164164
($x:expr) => {{
165-
asm!("int {}", in(reg) $x, options(nomem, nostack));
165+
asm!("int {id}", id = const $x, options(nomem, nostack));
166166
}};
167167
}
168168

0 commit comments

Comments
 (0)