Ignore:
Timestamp:
Jul 12, 2017, 8:12:41 PM (7 years ago)
Author:
alain
Message:

Redefine the PIC device API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/thread.c

    r185 r188  
    3434#include <process.h>
    3535#include <scheduler.h>
    36 #include <dev_icu.h>
     36#include <dev_pic.h>
    3737#include <core.h>
    3838#include <list.h>
     
    718718    thread_block( target , THREAD_BLOCKED_GLOBAL );
    719719
    720     // send an IPI to reschedule the target thread core.
    721     dev_icu_send_ipi( local_cxy , target->core->lid );
     720    // send an IPI to schedule the target thread core.
     721    dev_pic_send_ipi( local_cxy , target->core->lid );
    722722}
    723723
     
    739739        idle_dmsg("\n[INFO] %s : core[%x][%d] wake up at cycle %d\n",
    740740                    __FUNCTION__ , local_cxy , lid , hal_get_cycles() );
    741 
    742                 // acknowledge IRQ
    743         dev_icu_irq_handler();
    744741
    745742        // force scheduling
Note: See TracChangeset for help on using the changeset viewer.