Changeset c7bbf029 in mainline
- Timestamp:
- 2011-04-21T15:45:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7da90cd
- Parents:
- d161715
- Location:
- uspace
- Files:
-
- 1 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.c
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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/src/stacktrace.c
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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/stacktrace.c
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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/srv/devman/devman.c
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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
rd161715 rc7bbf029 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.