- Timestamp:
- Jul 27, 2017, 10:21:51 AM (7 years ago)
- Location:
- trunk/hal/x86_64
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_drivers.c
r261 r280 50 50 /* update the PIC chdev extension */ 51 51 pic->ext.pic.enable_timer = &pic_apic_enable_timer; 52 pic->ext.pic.enable_ipi = &pic_apic_enable_ipi; 52 53 pic->ext.pic.enable_irq = &pic_apic_enable_irq; 53 54 pic->ext.pic.disable_irq = &pic_apic_disable_irq; -
trunk/hal/x86_64/core/hal_special.c
r234 r280 51 51 { 52 52 return rdtsc(); 53 } 54 55 inline reg_t hal_get_sr() 56 { 57 return 0; 53 58 } 54 59 -
trunk/hal/x86_64/drivers/ioc_ata.c
r269 r280 208 208 209 209 // get command arguments and extended pointer on IOC device 210 cmd_type = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.ioc.type ) );211 lba = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.ioc.lba ) );212 count = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.ioc.count ) );213 buf_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr-> command.ioc.buf_xp ) );210 cmd_type = hal_remote_lw ( XPTR( th_cxy , &th_ptr->ioc_cmd.type ) ); 211 lba = hal_remote_lw ( XPTR( th_cxy , &th_ptr->ioc_cmd.lba ) ); 212 count = hal_remote_lw ( XPTR( th_cxy , &th_ptr->ioc_cmd.count ) ); 213 buf_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr->ioc_cmd.buf_xp ) ); 214 214 215 215 /* execute operation */ -
trunk/hal/x86_64/drivers/pic_apic.c
r208 r280 141 141 } 142 142 143 void pic_apic_enable_ipi() 144 { 145 x86_panic((char *)__func__); 146 } 147 143 148 void pic_apic_send_ipi(cxy_t cxy, lid_t lid) 144 149 { -
trunk/hal/x86_64/drivers/pic_apic.h
r208 r280 25 25 #include <hal_types.h> 26 26 27 void pic_apic_init( chdev_t * pic ); 28 void pic_apic_extend_init( uint32_t * xcu_base ); 29 void pic_apic_bind_irq( lid_t lid, 30 chdev_t * src_chdev ); 31 void pic_apic_enable_irq( lid_t lid, 32 xptr_t src_chdev_xp ); 33 void pic_apic_disable_irq( lid_t lid, 34 xptr_t src_chdev_xp ); 35 void pic_apic_enable_timer( uint32_t period ); 36 37 void pic_apic_send_ipi( cxy_t cxy, 38 lid_t lid ); 27 void pic_apic_init(chdev_t *pic); 28 void pic_apic_extend_init(uint32_t *xcu_base); 29 void pic_apic_bind_irq(lid_t lid, chdev_t *src_chdev); 30 void pic_apic_enable_irq(lid_t lid, xptr_t src_chdev_xp); 31 void pic_apic_disable_irq(lid_t lid, xptr_t src_chdev_xp); 32 void pic_apic_enable_timer(uint32_t period); 33 void pic_apic_enable_ipi(); 34 void pic_apic_send_ipi(cxy_t cxy, lid_t lid); 39 35 40 36 #endif /* _PIC_APIC_H_ */ -
trunk/hal/x86_64/drivers/txt_rs232.c
r247 r280 46 46 47 47 // get command type and extended pointer on TXT device 48 uint32_t type = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.txt.type ) );49 xptr_t dev_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr-> command.txt.dev_xp ) );48 uint32_t type = hal_remote_lw ( XPTR( th_cxy , &th_ptr->txt_cmd.type ) ); 49 xptr_t dev_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr->txt_cmd.dev_xp ) ); 50 50 51 51 // get TXT device cluster and local pointer … … 77 77 78 78 // get source buffer extended pointer & bytes count 79 uint32_t count = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.txt.count ) );80 xptr_t buf_xp = hal_remote_lwd( XPTR( th_cxy , &th_ptr-> command.txt.buf_xp ) );79 uint32_t count = hal_remote_lw ( XPTR( th_cxy , &th_ptr->txt_cmd.count ) ); 80 xptr_t buf_xp = hal_remote_lwd( XPTR( th_cxy , &th_ptr->txt_cmd.buf_xp ) ); 81 81 82 82 // loop on characters
Note: See TracChangeset
for help on using the changeset viewer.