Changes in / [010be476:7da90cd] in mainline
- Location:
- uspace
- Files:
-
- 1 added
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.c
r010be476 r7da90cd 51 51 #include <macros.h> 52 52 #include <mem.h> 53 #include <malloc.h> 54 #include <stdio.h> 53 55 #include <sys/typefmt.h> 54 56 #include <stacktrace.h> -
uspace/lib/c/Makefile
r010be476 r7da90cd 113 113 generic/arg_parse.c \ 114 114 generic/sort.c \ 115 generic/stats.c 115 generic/stats.c \ 116 generic/assert.c \ 116 117 117 118 SOURCES = \ -
uspace/lib/c/arch/ia32/include/config.h
r010be476 r7da90cd 36 36 #define LIBC_ia32_CONFIG_H_ 37 37 38 #define PAGE_WIDTH 12 39 #define PAGE_SIZE (1 << PAGE_WIDTH) 38 #define PAGE_WIDTH 12 39 #define PAGE_SIZE (1 << PAGE_WIDTH) 40 41 #define USER_ADDRESS_SPACE_START_ARCH UINT32_C(0x00000000) 42 #define USER_ADDRESS_SPACE_END_ARCH UINT32_C(0x7fffffff) 40 43 41 44 #endif -
uspace/lib/c/arch/ia32/include/ddi.h
r010be476 r7da90cd 37 37 #include <libarch/types.h> 38 38 39 #define IO_SPACE_BOUNDARY 39 #define IO_SPACE_BOUNDARY ((void *) (64 * 1024)) 40 40 41 41 static inline uint8_t pio_read_8(ioport8_t *port) -
uspace/lib/c/arch/ia32/include/faddr.h
r010be476 r7da90cd 38 38 #include <libarch/types.h> 39 39 40 #define FADDR(fptr) 40 #define FADDR(fptr) ((uintptr_t) (fptr)) 41 41 42 42 #endif -
uspace/lib/c/arch/ia32/include/fibril.h
r010be476 r7da90cd 42 42 * panic sooner or later 43 43 */ 44 #define SP_DELTA (12)44 #define SP_DELTA 12 45 45 46 46 #define context_set(c, _pc, stack, size, ptls) \ … … 51 51 (c)->ebp = 0; \ 52 52 } while (0) 53 54 /* We include only registers that must be preserved 53 54 /* 55 * We include only registers that must be preserved 55 56 * during function call 56 57 */ -
uspace/lib/c/arch/ia32/src/stacktrace.c
r010be476 r7da90cd 35 35 */ 36 36 37 #include <libarch/config.h> 37 38 #include <sys/types.h> 38 39 #include <bool.h> 39 40 40 #include <stacktrace.h> 41 41 42 #define FRAME_OFFSET_FP_PREV 43 #define FRAME_OFFSET_RA 42 #define FRAME_OFFSET_FP_PREV 0 43 #define FRAME_OFFSET_RA 4 44 44 45 45 bool stacktrace_fp_valid(stacktrace_t *st, uintptr_t fp) 46 46 { 47 47 (void) st; 48 return fp != 0;48 return (fp != 0) && (fp <= USER_ADDRESS_SPACE_END_ARCH); 49 49 } 50 50 -
uspace/lib/c/generic/async.c
r010be476 r7da90cd 102 102 #include <arch/barrier.h> 103 103 #include <bool.h> 104 #include <stdlib.h> 105 #include <malloc.h> 104 106 #include "private/async.h" 105 107 -
uspace/lib/c/generic/async_sess.c
r010be476 r7da90cd 105 105 #include <errno.h> 106 106 #include <assert.h> 107 #include <async.h> 107 108 #include "private/async_sess.h" 108 109 -
uspace/lib/c/generic/errno.c
r010be476 r7da90cd 36 36 #include <fibril.h> 37 37 38 int _errno; 38 static fibril_local int fibril_errno; 39 40 int *__errno(void) 41 { 42 return &fibril_errno; 43 } 39 44 40 45 /** @} -
uspace/lib/c/generic/fibril_synch.c
r010be476 r7da90cd 43 43 #include <stacktrace.h> 44 44 #include <stdlib.h> 45 #include <stdio.h> 45 46 #include "private/async.h" 46 47 -
uspace/lib/c/generic/malloc.c
r010be476 r7da90cd 44 44 #include <mem.h> 45 45 #include <futex.h> 46 #include <stdlib.h> 46 47 #include <adt/gcdlcm.h> 47 48 #include "private/malloc.h" -
uspace/lib/c/generic/stacktrace.c
r010be476 r7da90cd 61 61 stacktrace_prepare(); 62 62 stacktrace_print_fp_pc(stacktrace_fp_get(), stacktrace_pc_get()); 63 63 64 /* 64 65 * Prevent the tail call optimization of the previous call by 65 66 * making it a non-tail call. 66 67 */ 67 (void) stacktrace_fp_get(); 68 69 printf("-- end of stack trace --\n"); 68 70 } 69 71 -
uspace/lib/c/include/assert.h
r010be476 r7da90cd 40 40 * 41 41 * If NDEBUG is not set, the assert() macro 42 * evaluates expr and if it is false prints 42 * evaluates expr and if it is false prints 43 43 * error message and terminate program. 44 44 * … … 47 47 */ 48 48 49 #include <stdio.h>50 #include <stdlib.h>51 52 49 #ifndef NDEBUG 53 50 54 51 #define assert(expr) \ 55 52 do { \ 56 if (!(expr)) { \ 57 printf("Assertion failed (%s) at file '%s', " \ 58 "line %d.\n", #expr, __FILE__, __LINE__); \ 59 abort(); \ 60 } \ 53 if (!(expr)) \ 54 assert_abort(#expr, __FILE__, __LINE__); \ 61 55 } while (0) 62 56 … … 67 61 #endif /* NDEBUG */ 68 62 63 extern void assert_abort(const char *, const char *, unsigned int) 64 __attribute__((noreturn)); 65 69 66 #endif 70 67 -
uspace/lib/c/include/errno.h
r010be476 r7da90cd 39 39 #include <fibril.h> 40 40 41 #define errno _errno41 #define errno (*(__errno())) 42 42 43 extern int _errno;43 extern int *__errno(void) __attribute__((const)); 44 44 45 45 #define EMFILE (-18) -
uspace/lib/c/include/fibril_synch.h
r010be476 r7da90cd 36 36 #define LIBC_FIBRIL_SYNCH_H_ 37 37 38 #include <async.h>39 38 #include <fibril.h> 40 39 #include <adt/list.h> 41 40 #include <libarch/tls.h> 42 41 #include <sys/time.h> 42 #include <bool.h> 43 43 44 44 typedef struct { 45 fibril_owner_info_t oi; /*Keep this the first thing. */45 fibril_owner_info_t oi; /**< Keep this the first thing. */ 46 46 int counter; 47 47 link_t waiters; … … 64 64 65 65 typedef struct { 66 fibril_owner_info_t oi; /*Keep this the first thing. */66 fibril_owner_info_t oi; /**< Keep this the first thing. */ 67 67 unsigned writers; 68 68 unsigned readers; -
uspace/srv/devman/devman.c
r010be476 r7da90cd 39 39 #include <devmap.h> 40 40 #include <str_error.h> 41 #include <stdio.h> 41 42 42 43 #include "devman.h" -
uspace/srv/fs/fat/fat_fat.c
r010be476 r7da90cd 47 47 #include <assert.h> 48 48 #include <fibril_synch.h> 49 #include <malloc.h> 49 50 #include <mem.h> 50 51 -
uspace/srv/fs/fat/fat_idx.c
r010be476 r7da90cd 44 44 #include <assert.h> 45 45 #include <fibril_synch.h> 46 #include <malloc.h> 46 47 47 48 /** Each instance of this type describes one interval of freed VFS indices. */ -
uspace/srv/fs/fat/fat_ops.c
r010be476 r7da90cd 55 55 #include <sys/mman.h> 56 56 #include <align.h> 57 #include <malloc.h> 57 58 58 59 #define FAT_NODE(node) ((node) ? (fat_node_t *) (node)->data : NULL) -
uspace/srv/hw/netif/ne2000/dp8390.c
r010be476 r7da90cd 53 53 #include <byteorder.h> 54 54 #include <errno.h> 55 #include <stdio.h> 55 56 #include <libarch/ddi.h> 56 57 #include <net/packet.h> -
uspace/srv/ns/clonable.c
r010be476 r7da90cd 78 78 if (list_empty(&cs_req)) { 79 79 /* There was no pending connection request. */ 80 printf( NAME ": Unexpected clonable server.\n");80 printf("%s: Unexpected clonable server.\n", NAME); 81 81 ipc_answer_0(callid, EBUSY); 82 82 return; -
uspace/srv/ns/service.c
r010be476 r7da90cd 35 35 #include <assert.h> 36 36 #include <errno.h> 37 #include <stdio.h> 38 #include <malloc.h> 37 39 #include "service.h" 38 40 #include "ns.h" -
uspace/srv/ns/task.c
r010be476 r7da90cd 39 39 #include <stdio.h> 40 40 #include <macros.h> 41 #include <malloc.h> 41 42 #include "task.h" 42 43 #include "ns.h"
Note:
See TracChangeset
for help on using the changeset viewer.