Changeset 18b6a88 in mainline for uspace/lib/c
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- Location:
- uspace/lib/c
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/mips32/include/libarch/tls.h
r8ebe212 r18b6a88 69 69 tp += MIPS_TP_OFFSET + sizeof(tcb_t); 70 70 71 asm volatile ("add $27, %0, $0" : : "r" (tp)); /* Move tls to K1 */71 asm volatile ("add $27, %0, $0" : : "r" (tp)); /* Move tls to K1 */ 72 72 } 73 73 74 static inline tcb_t * 74 static inline tcb_t *__tcb_get(void) 75 75 { 76 void * 76 void *retval; 77 77 78 asm volatile ("add %0, $27, $0" : "=r"(retval));78 asm volatile ("add %0, $27, $0" : "=r" (retval)); 79 79 80 80 return (tcb_t *)(retval - MIPS_TP_OFFSET - sizeof(tcb_t)); -
uspace/lib/c/arch/sparc64/include/libarch/syscall.h
r8ebe212 r18b6a88 60 60 61 61 asm volatile ( 62 63 64 65 66 62 "ta %7\n" 63 : "=r" (a1) 64 : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "r" (a5), "r" (a6), 65 "i" (id) 66 : "memory" 67 67 ); 68 68 -
uspace/lib/c/generic/adt/odict.c
r8ebe212 r18b6a88 75 75 printf("[%p/%c", cur, cur->color == odc_red ? 'r' : 'b'); 76 76 if (cur->a != NULL || cur->b != NULL) { 77 putchar(' ' 77 putchar(' '); 78 78 odict_print_tree(cur->a); 79 79 putchar(','); … … 254 254 if (cur->a == NULL) { 255 255 odict_link_child_a(odlink, cur); 256 256 break; 257 257 } 258 258 cur = cur->a; … … 923 923 b->b->up = a; 924 924 925 /* Swap links going out of A and out of B */ 926 n = a->up; a->up = b->up; b->up = n; 927 n = a->a; a->a = b->a; b->a = n; 928 n = a->b; a->b = b->b; b->b = n; 929 c = a->color; a->color = b->color; b->color = c; 925 /* 926 * Swap links going out of A and out of B 927 */ 928 n = a->up; 929 a->up = b->up; 930 b->up = n; 931 932 n = a->a; 933 a->a = b->a; 934 b->a = n; 935 936 n = a->b; 937 a->b = b->b; 938 b->b = n; 939 940 c = a->color; 941 a->color = b->color; 942 b->color = c; 930 943 931 944 /* When A and B are adjacent, fix self-loops that might have arisen */ -
uspace/lib/c/generic/fibril_synch.c
r8ebe212 r18b6a88 354 354 355 355 errno_t 356 356 fibril_condvar_wait_timeout(fibril_condvar_t *fcv, fibril_mutex_t *fm, 357 357 suseconds_t timeout) 358 358 { -
uspace/lib/c/include/assert.h
r8ebe212 r18b6a88 64 64 65 65 #ifndef NDEBUG 66 66 #define assert(expr) ((expr) ? (void) 0 : __helenos_assert_abort(#expr, __FILE__, __LINE__)) 67 67 #else 68 68 #define assert(expr) ((void) 0) 69 69 #endif 70 70 … … 74 74 75 75 #ifndef NDEBUG 76 76 #define safe_assert(expr) ((expr) ? (void) 0 : __helenos_assert_quick_abort(#expr, __FILE__, __LINE__)) 77 77 #else 78 78 #define safe_assert(expr) ((void) 0) 79 79 #endif 80 80
Note:
See TracChangeset
for help on using the changeset viewer.