Changeset 72
- Timestamp:
- Jun 27, 2017, 10:56:25 AM (7 years ago)
- Location:
- trunk/hal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_remote.h
r69 r72 78 78 * @ return read value 79 79 ****************************************************************************************/ 80 charhal_remote_lb( xptr_t xp );80 uint8_t hal_remote_lb( xptr_t xp ); 81 81 82 82 /***************************************************************************************** -
trunk/hal/tsar_mips32/core/hal_remote.c
r62 r72 27 27 //////////////////////////////// 28 28 void hal_remote_sb( xptr_t xp, 29 chardata )29 uint8_t data ) 30 30 { 31 31 uint32_t ptr = (uint32_t)GET_PTR( xp ); … … 90 90 91 91 //////////////////////////////// 92 charhal_remote_lb( xptr_t xp )92 uint8_t hal_remote_lb( xptr_t xp ) 93 93 { 94 94 char data; -
trunk/hal/x86_64/core/hal_init.c
r70 r72 27 27 #include <hal_lapic.h> 28 28 #include <hal_internal.h> 29 #include <hal_remote.h> 29 30 30 31 #include <memcpy.h> … … 175 176 176 177 x86_printf("-> mytest = %z\n", mytest); 178 177 179 size_t *myptr = (void *)CLUSTER_MIN_VA(0) + XPTR(0, &mytest); 178 *myptr = 1;179 x86_printf("-> mytest = %z\n", mytest);180 hal_remote_sb((xptr_t)myptr, 1); 181 x86_printf("-> mytest = %z\n", hal_remote_lb((xptr_t)myptr)); 180 182 181 183 init_bootinfo(&btinfo); -
trunk/hal/x86_64/core/hal_remote.c
r69 r72 29 29 uint8_t data ) 30 30 { 31 x86_panic((char *)__func__);31 *(uint8_t *)xp = data; 32 32 } 33 33 … … 35 35 uint32_t data ) 36 36 { 37 x86_panic((char *)__func__);37 *(uint32_t *)xp = data; 38 38 } 39 39 … … 41 41 uint64_t data ) 42 42 { 43 x86_panic((char *)__func__);43 *(uint64_t *)xp = data; 44 44 } 45 45 … … 50 50 } 51 51 52 charhal_remote_lb( xptr_t xp )52 uint8_t hal_remote_lb( xptr_t xp ) 53 53 { 54 x86_panic((char *)__func__); 55 return 0; 54 return *(uint8_t *)xp; 56 55 } 57 56 58 57 uint32_t hal_remote_lw( xptr_t xp ) 59 58 { 60 x86_panic((char *)__func__); 61 return 0; 59 return *(uint32_t *)xp; 62 60 } 63 61 64 62 uint64_t hal_remote_lwd( xptr_t xp ) 65 63 { 66 x86_panic((char *)__func__); 67 return 0; 64 return *(uint64_t *)xp; 68 65 } 69 66
Note: See TracChangeset
for help on using the changeset viewer.