Changeset 200


Ignore:
Timestamp:
Jul 13, 2017, 1:39:46 PM (7 years ago)
Author:
alain
Message:

bloup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_pic.c

    r190 r200  
    6666{
    6767    // get pointer on PIC chdev
    68     chdev_t * pic = (chdev_t *)GET_PTR( chdev_dir.pic );
     68    chdev_t * pic_ptr = (chdev_t *)GET_PTR( chdev_dir.pic );
     69    cxy_t     pic_cxy = GET_CXY( chdev_dir.pic );
     70
     71    // get pointer on extend_init function
     72    pic_init_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.extend_init ) );
    6973
    7074    // call relevant driver function
    71     pic->ext.pic.extend_init( lapic_base );
     75    f( lapic_base );
    7276}
    7377
     
    9195
    9296    // call relevant driver function
    93     pic->ext.pic.enable_irq( src_chdev );
     97    pic->ext.pic.enable_irq( lid , src_chdev );
    9498}
    9599
     
    102106
    103107    // call relevant driver function
    104     pic->ext.pic.disable_irq( src_chdev );
     108    pic->ext.pic.disable_irq( lid , src_chdev );
    105109}
    106110
Note: See TracChangeset for help on using the changeset viewer.