File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
tests/rust_guests/simpleguest/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use crate::interrupt_entry::{
2626pub ( crate ) struct IdtEntry {
2727 offset_low : u16 , // Lower 16 bits of handler address
2828 selector : u16 , // code segment selector in GDT
29- ist : u8 , // Interrupt Stack Table offset
29+ interrupt_stack_table_offset : u8 , // Interrupt Stack Table offset
3030 type_attr : u8 , // Gate type and flags
3131 offset_mid : u16 , // Middle 16 bits of handler address
3232 offset_high : u32 , // High 32 bits of handler address
@@ -38,7 +38,7 @@ impl IdtEntry {
3838 Self {
3939 offset_low : ( handler & 0xFFFF ) as u16 ,
4040 selector : 0x08 , // Kernel Code Segment
41- ist : 0 , // No IST used
41+ interrupt_stack_table_offset : 0 , // No IST used
4242 type_attr : 0x8E ,
4343 // 0x8E = 10001110b
4444 // 1 00 0 1110
Original file line number Diff line number Diff line change @@ -638,7 +638,9 @@ fn log_message(function_call: &FunctionCall) -> Result<Vec<u8>> {
638638}
639639
640640fn trigger_exception ( _: & FunctionCall ) -> Result < Vec < u8 > > {
641- unsafe { core:: arch:: asm!( "ud2" ) ; } // trigger an undefined instruction exception
641+ unsafe {
642+ core:: arch:: asm!( "ud2" ) ;
643+ } // trigger an undefined instruction exception
642644 Ok ( get_flatbuffer_result_from_void ( ) )
643645}
644646
You can’t perform that action at this time.
0 commit comments