Changeset d4475a44 in mainline
- Timestamp:
- 2018-07-08T17:58:56Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 914c693
- Parents:
- 6abff2a8
- Location:
- uspace/lib/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/arm32/include/libarch/tls.h
r6abff2a8 rd4475a44 60 60 static inline void __tcb_set(tcb_t *tcb) 61 61 { 62 char *tls = (char*) tcb;62 uint8_t *tls = (uint8_t *) tcb; 63 63 tls += sizeof(tcb_t) + ARM_TP_OFFSET; 64 64 asm volatile ( … … 77 77 static inline tcb_t *__tcb_get(void) 78 78 { 79 char*ret;79 uint8_t *ret; 80 80 asm volatile ( 81 81 "mov %0, r9" -
uspace/lib/c/arch/mips32/include/libarch/tls.h
r6abff2a8 rd4475a44 46 46 #define CONFIG_TLS_VARIANT_1 47 47 48 #include <libc.h> 49 48 50 /* 49 51 * I did not find any specification (neither MIPS nor PowerPC), but … … 67 69 static inline void __tcb_set(tcb_t *tcb) 68 70 { 69 char *tp = (char*) tcb;71 uint8_t *tp = (uint8_t *) tcb; 70 72 tp += MIPS_TP_OFFSET + sizeof(tcb_t); 71 73 … … 75 77 static inline tcb_t *__tcb_get(void) 76 78 { 77 char*retval;79 uint8_t *retval; 78 80 79 81 asm volatile ("add %0, $27, $0" : "=r" (retval)); -
uspace/lib/c/arch/ppc32/include/libarch/tls.h
r6abff2a8 rd4475a44 38 38 #define CONFIG_TLS_VARIANT_1 39 39 40 #include <libc.h> 41 40 42 #define PPC_TP_OFFSET 0x7000 41 43 … … 46 48 static inline void __tcb_set(tcb_t *tcb) 47 49 { 48 char *tp = (char*) tcb;50 uint8_t *tp = (uint8_t *) tcb; 49 51 tp += PPC_TP_OFFSET + sizeof(tcb_t); 50 52 … … 58 60 static inline tcb_t *__tcb_get(void) 59 61 { 60 char*retval;62 uint8_t *retval; 61 63 62 64 asm volatile ( … … 65 67 ); 66 68 67 return (tcb_t *) (retval - PPC_TP_OFFSET - sizeof(tcb_t));69 return (tcb_t *) (retval - PPC_TP_OFFSET - sizeof(tcb_t)); 68 70 } 69 71 -
uspace/lib/c/include/adt/list.h
r6abff2a8 rd4475a44 40 40 #include <stdbool.h> 41 41 #include <stddef.h> 42 #include <stdint.h> 42 43 #include <trace.h> 43 44 … … 421 422 422 423 list_remove(tmp); 423 return (void *) (((char*) tmp) - offset);424 return (void *) (((uint8_t *) tmp) - offset); 424 425 } 425 426
Note:
See TracChangeset
for help on using the changeset viewer.