File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1123,6 +1123,7 @@ pub enum ExceptionVector {
1123
1123
Security = 0x1E ,
1124
1124
}
1125
1125
1126
+ #[ cfg( all( feature = "instructions" , feature = "abi_x86_interrupt" ) ) ]
1126
1127
#[ macro_export]
1127
1128
/// Set a general handler in an [`InterruptDescriptorTable`].
1128
1129
/// ```
@@ -1175,6 +1176,7 @@ macro_rules! set_general_handler {
1175
1176
} } ;
1176
1177
}
1177
1178
1179
+ #[ cfg( all( feature = "instructions" , feature = "abi_x86_interrupt" ) ) ]
1178
1180
#[ macro_export]
1179
1181
#[ doc( hidden) ]
1180
1182
/// We can't loop in macros, but we can use recursion.
@@ -1196,6 +1198,7 @@ macro_rules! set_general_handler_recursive_bits {
1196
1198
} ;
1197
1199
}
1198
1200
1201
+ #[ cfg( all( feature = "instructions" , feature = "abi_x86_interrupt" ) ) ]
1199
1202
#[ macro_export]
1200
1203
#[ doc( hidden) ]
1201
1204
macro_rules! set_general_handler_entry {
@@ -1337,6 +1340,7 @@ mod test {
1337
1340
assert_eq ! ( size_of:: <InterruptDescriptorTable >( ) , 256 * 16 ) ;
1338
1341
}
1339
1342
1343
+ #[ cfg( all( feature = "instructions" , feature = "abi_x86_interrupt" ) ) ]
1340
1344
#[ test]
1341
1345
fn default_handlers ( ) {
1342
1346
fn general_handler (
You can’t perform that action at this time.
0 commit comments