Changeset 26

Show
Ignore:
Timestamp:
01/11/06 13:30:26 (6 years ago)
Author:
dkaplan1
Message:

Added preprocessor directives for turning on and off parameter passing
Used for performance benchmarks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • arch/i386/kernel/callgate.c

    r25 r26  
    6666                        "popl %ds\n\t" 
    6767 
    68  
     68//#define NO_PARAMS 
    6969void *ring1_driver_helper; 
    7070void *ring2_driver_helper; 
     
    397397    regs->edi=0x13371337; 
    398398    //push parameters 
     399#ifndef NO_PARAMS    
    399400    count=argc; 
    400401    while (argc) { 
     
    414415    } 
    415416    argc=count; 
    416      
    417     //printk("Going...\n"); 
    418     //show_regs(regs); 
    419     /*if (tsk->state==TASK_STOPPED) { 
    420         printk("Waking up driver thread for first time\n"); 
    421         tsk->state=TASK_RUNNING; 
    422     }*/ 
    423     /*if (ptrbitmap & NO_WAIT) { 
    424         //increase priority 
    425         set_user_nice(tsk, -20); 
    426     } else { 
    427         set_user_nice(tsk, 0); 
    428     }*/ 
     417#endif     
    429418    wake_up_process(tsk); 
    430419    if (!(ptrbitmap & NO_WAIT)) { 
    431420        tsk->bytes_to_pop=0; 
    432421        sleep_on(&tsk->wait_driverfinish); 
     422#ifndef NO_PARAMS 
    433423        //Free any memory we allocated 
    434424        for (i=0; i<argc; i++) { 
     
    440430            regs->esp+=4; 
    441431        } 
     432#endif 
    442433        return tsk->exit_code; 
    443434    } else { 
  • .version

    r25 r26  
    1 297 
     1299