Changeset 29

Show
Ignore:
Timestamp:
06/07/06 14:55:06 (6 years ago)
Author:
dkaplan1
Message:

schedule() now goes through a call gate like all other kernel calls

Files:

Legend:

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

    r28 r29  
    466466                goto gp_in_kernel; 
    467467 
    468         //printk("data at 67: %x\n%x\n", *(((unsigned long*)idt_table)+2*67),*(((unsigned long*)idt_table)+2*67+1)); 
    469         //set_system_gate(67, &benchmark_handler); 
    470468  if ((regs->xcs & 3)!=3) { 
    471469      //driver thread 
  • include/asm-i386/dapi.h

    r28 r29  
    287287make_wrap0(mod_get_jiffies, unsigned long) 
    288288make_wrap1(signal_pending, int, struct task_struct *)      
     289make_void_wrap0(schedule)     
    289290make_void_wrap2(do_benchmark, unsigned long, unsigned long); 
    290      
    291291//this must be done using the old method 
    292292//It's complicated, but basically so the registers are where they should be  
    293293//on the stack 
    294 static inline void schedule(void) { 
     294/*static inline void schedule(void) { 
    295295    asm("movl $286, %eax\n\t" 
    296296            "int $0x80\n\t" 
    297297       ); 
    298 } 
     298}*/ 
    299299 
    300300//Self-documenting 
  • .version

    r27 r29  
    1 301 
     1304