Changeset 570 for trunk/hal/x86_64
- Timestamp:
- Oct 5, 2018, 12:08:35 AM (6 years ago)
- Location:
- trunk/hal/x86_64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_remote.c
r457 r570 30 30 } 31 31 32 void hal_remote_s w(xptr_t xp, uint32_t data)32 void hal_remote_s32(xptr_t xp, uint32_t data) 33 33 { 34 34 *(uint32_t *)xp = data; 35 35 } 36 36 37 void hal_remote_s wd(xptr_t xp, uint64_t data)37 void hal_remote_s64(xptr_t xp, uint64_t data) 38 38 { 39 39 *(uint64_t *)xp = data; … … 42 42 void hal_remote_spt(xptr_t xp, void *pt) 43 43 { 44 hal_remote_s wd(xp, (uint64_t)pt);44 hal_remote_s64(xp, (uint64_t)pt); 45 45 } 46 46 … … 50 50 } 51 51 52 uint32_t hal_remote_l w(xptr_t xp)52 uint32_t hal_remote_l32(xptr_t xp) 53 53 { 54 54 return *(uint32_t *)xp; 55 55 } 56 56 57 uint64_t hal_remote_l wd(xptr_t xp)57 uint64_t hal_remote_l64(xptr_t xp) 58 58 { 59 59 return *(uint64_t *)xp; … … 62 62 void *hal_remote_lpt(xptr_t xp) 63 63 { 64 return (void *)hal_remote_l wd(xp);64 return (void *)hal_remote_l64(xp); 65 65 } 66 66 -
trunk/hal/x86_64/drivers/ioc_ata.c
r503 r570 205 205 206 206 // get command arguments and extended pointer on IOC device 207 cmd_type = hal_remote_l w( XPTR( th_cxy , &th_ptr->ioc_cmd.type ) );208 lba = hal_remote_l w( XPTR( th_cxy , &th_ptr->ioc_cmd.lba ) );209 count = hal_remote_l w( XPTR( th_cxy , &th_ptr->ioc_cmd.count ) );210 buf_xp = (xptr_t)hal_remote_l wd( XPTR( th_cxy , &th_ptr->ioc_cmd.buf_xp ) );207 cmd_type = hal_remote_l32 ( XPTR( th_cxy , &th_ptr->ioc_cmd.type ) ); 208 lba = hal_remote_l32 ( XPTR( th_cxy , &th_ptr->ioc_cmd.lba ) ); 209 count = hal_remote_l32 ( XPTR( th_cxy , &th_ptr->ioc_cmd.count ) ); 210 buf_xp = (xptr_t)hal_remote_l64( XPTR( th_cxy , &th_ptr->ioc_cmd.buf_xp ) ); 211 211 212 212 /* execute operation */ -
trunk/hal/x86_64/drivers/txt_rs232.c
r321 r570 46 46 47 47 // get command type and extended pointer on TXT device 48 uint32_t type = hal_remote_l w( XPTR( th_cxy , &th_ptr->txt_cmd.type ) );49 xptr_t dev_xp = (xptr_t)hal_remote_l wd( XPTR( th_cxy , &th_ptr->txt_cmd.dev_xp ) );48 uint32_t type = hal_remote_l32 ( XPTR( th_cxy , &th_ptr->txt_cmd.type ) ); 49 xptr_t dev_xp = (xptr_t)hal_remote_l64( XPTR( th_cxy , &th_ptr->txt_cmd.dev_xp ) ); 50 50 51 51 // get TXT device cluster and local pointer … … 54 54 55 55 // get TTY channel index 56 uint32_t channel = hal_remote_l w( XPTR( dev_cxy , &dev_ptr->channel ) );56 uint32_t channel = hal_remote_l32( XPTR( dev_cxy , &dev_ptr->channel ) ); 57 57 58 58 // for now, only channel zero … … 70 70 71 71 // get source buffer extended pointer & bytes count 72 uint32_t count = hal_remote_l w( XPTR( th_cxy , &th_ptr->txt_cmd.count ) );73 xptr_t buf_xp = hal_remote_l wd( XPTR( th_cxy , &th_ptr->txt_cmd.buf_xp ) );72 uint32_t count = hal_remote_l32 ( XPTR( th_cxy , &th_ptr->txt_cmd.count ) ); 73 xptr_t buf_xp = hal_remote_l64( XPTR( th_cxy , &th_ptr->txt_cmd.buf_xp ) ); 74 74 75 75 // loop on characters
Note: See TracChangeset
for help on using the changeset viewer.