@@ -29,8 +29,8 @@ use crate::guest_logger::init_logger;
2929use  crate :: host_function_call:: { outb,  OutBAction } ; 
3030use  crate :: idtr:: load_idt; 
3131use  crate :: { 
32-     __security_cookie,  HEAP_ALLOCATOR ,  MIN_STACK_ADDRESS ,  OS_PAGE_SIZE ,   OUTB_PTR , 
33-     OUTB_PTR_WITH_CONTEXT ,   P_PEB ,   RUNNING_MODE , 
32+     __security_cookie,  HEAP_ALLOCATOR ,  MIN_STACK_ADDRESS ,  OUTB_PTR ,   OUTB_PTR_WITH_CONTEXT ,   P_PEB , 
33+     RUNNING_MODE , 
3434} ; 
3535
3636#[ inline( never) ]  
@@ -77,7 +77,7 @@ static INIT: Once = Once::new();
7777// Note: entrypoint cannot currently have a stackframe >4KB, as that will invoke __chkstk on msvc 
7878//       target without first having setup global `RUNNING_MODE` variable, which __chkstk relies on. 
7979#[ no_mangle]  
80- pub  extern  "win64"  fn  entrypoint ( peb_address :  u64 ,  seed :  u64 ,  ops :   u64 ,   max_log_level :  u64 )  { 
80+ pub  extern  "win64"  fn  entrypoint ( peb_address :  u64 ,  seed :  u64 ,  max_log_level :  u64 )  { 
8181    if  peb_address == 0  { 
8282        panic ! ( "PEB address is null" ) ; 
8383    } 
@@ -142,8 +142,6 @@ pub extern "win64" fn entrypoint(peb_address: u64, seed: u64, ops: u64, max_log_
142142                . expect ( "Failed to access HEAP_ALLOCATOR" ) 
143143                . init ( heap_start,  heap_size) ; 
144144
145-             OS_PAGE_SIZE  = ops as  u32 ; 
146- 
147145            ( * peb_ptr) . guest_function_dispatch_ptr  = dispatch_function as  usize  as  u64 ; 
148146
149147            reset_error ( ) ; 
0 commit comments