Changes in / [75aa59a:80e9e5e] in mainline
- Files:
-
- 292 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r75aa59a r80e9e5e 554 554 ! CONFIG_WRITE_CORE_FILES (n/y) 555 555 556 % Include development files (headers, libraries) 557 ! [RDFMT=tmpfs] CONFIG_DEVEL_FILES (n/y) 558 556 559 % Strip binaries 557 560 ! CONFIG_STRIP_BINARIES (n/y) … … 562 565 % Barebone build with essential binaries only 563 566 ! CONFIG_BAREBONE (n/y) 567 568 % Build pcc binaries 569 ! CONFIG_PCC (n/y) 570 571 % Build binutils binaries 572 ! CONFIG_BINUTILS (n/y) 564 573 565 574 % Line debugging information -
Makefile
r75aa59a r80e9e5e 100 100 distclean: clean 101 101 rm -f $(CSCOPE).out $(COMMON_MAKEFILE) $(COMMON_HEADER) $(COMMON_HEADER_PREV) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) tools/*.pyc tools/checkers/*.pyc release/HelenOS-* 102 cd ./uspace/app/binutils/; ./distclean.sh 102 103 103 104 clean: -
boot/Makefile
r75aa59a r80e9e5e 61 61 cp "$$file" "$(DIST_PATH)/lib/" ; \ 62 62 done 63 ifeq ($(CONFIG_DEVEL_FILES), y) 64 mkdir "$(DIST_PATH)/inc/c/" 65 cp -r -L "$(USPACE_PATH)/lib/c/include/." "$(DIST_PATH)/inc/c/" 66 cat "$(USPACE_PATH)/lib/c/arch/$(UARCH)/_link.ld" | sed 's/^STARTUP(.*)$$//g' > "$(DIST_PATH)/inc/_link.ld" 67 endif 63 68 for file in $(RD_APPS) ; do \ 64 69 cp "$$file" "$(DIST_PATH)/app/" ; \ … … 94 99 rm -rf $(USPACE_PATH)/dist/drv/* 95 100 rm -f $(USPACE_PATH)/dist/lib/* 101 rm -rf $(USPACE_PATH)/dist/inc/* 96 102 rm -f $(USPACE_PATH)/dist/app/* 97 103 rm -f $(USPACE_PATH)/dist/cfg/net/* -
boot/Makefile.common
r75aa59a r80e9e5e 126 126 127 127 RD_LIBS = 128 129 ifeq ($(CONFIG_DEVEL_FILES), y) 130 RD_LIBS += \ 131 $(USPACE_PATH)/lib/c/libc.a \ 132 $(USPACE_PATH)/lib/softint/libsoftint.a \ 133 $(USPACE_PATH)/lib/softfloat/libsoftfloat.a 134 endif 128 135 129 136 ifeq ($(CONFIG_BUILD_SHARED_LIBS), y) … … 171 178 $(USPACE_PATH)/app/websrv/websrv 172 179 180 ifeq ($(CONFIG_PCC),y) 181 RD_APPS_NON_ESSENTIAL += \ 182 $(USPACE_PATH)/app/cc/cc \ 183 $(USPACE_PATH)/app/ccom/ccom \ 184 $(USPACE_PATH)/app/ccom/mkext/cc_mkext \ 185 $(USPACE_PATH)/app/cpp/cpp 186 endif 187 188 ifeq ($(CONFIG_BINUTILS),y) 189 RD_APPS_NON_ESSENTIAL += \ 190 $(USPACE_PATH)/app/binutils/bin/as \ 191 $(USPACE_PATH)/app/binutils/bin/ld 192 endif 193 173 194 ifneq ($(CONFIG_BAREBONE),y) 174 195 NET_CFG = \ -
uspace/Makefile
r75aa59a r80e9e5e 111 111 drv/bus/usb/vhc 112 112 113 ifeq ($(CONFIG_PCC),y) 114 DIRS += \ 115 app/cc \ 116 app/ccom \ 117 app/ccom/mkext \ 118 app/cpp 119 endif 120 121 ifeq ($(CONFIG_BINUTILS),y) 122 DIRS += \ 123 app/binutils 124 endif 125 113 126 ## Networking 114 127 # … … 175 188 lib/usbdev \ 176 189 lib/usbhid \ 177 lib/usbvirt 190 lib/usbvirt \ 191 lib/posix 178 192 179 193 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
r75aa59a r80e9e5e 44 44 # EXTRA_CLEAN additional cleanup targets 45 45 # 46 # POSIX_COMPAT set to 'y' to use POSIX compatibility layer 47 # 46 48 # Optionally, for a binary: 47 49 # STATIC_NEEDED set to 'y' for init binaries, will build statically … … 104 106 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint 105 107 108 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix 109 106 110 LIBBLOCK_PREFIX = $(LIB_PREFIX)/block 107 111 LIBFS_PREFIX = $(LIB_PREFIX)/fs … … 213 217 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 214 218 219 ifeq ($(POSIX_COMPAT),y) 220 CFLAGS = -I$(LIBPOSIX_PREFIX) 221 LIBS += $(LIBPOSIX_PREFIX)/libposix.a 222 endif 223 215 224 ifeq ($(COMPILER),gcc_cross) 216 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)225 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS) 217 226 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 218 227 endif 219 228 220 229 ifeq ($(COMPILER),gcc_native) 221 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)230 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS) 222 231 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 223 232 endif 224 233 225 234 ifeq ($(COMPILER),icc) 226 CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS)235 CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS) 227 236 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 228 237 endif 229 238 230 239 ifeq ($(COMPILER),clang) 231 CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS)240 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 232 241 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 233 242 endif -
uspace/app/bdsh/input.c
r75aa59a r80e9e5e 169 169 new_iostate.stdout = to; 170 170 } 171 172 rc = run_command(actual_cmd, usr, &new_iostate); 171 172 if (str_cmp(actual_cmd[0], "batch") == 0 && actual_cmd[1] != NULL) { 173 FILE *batch = fopen(actual_cmd[1], "r"); 174 if (batch == NULL) { 175 printf("Cannot open file %s\n", actual_cmd[1]); 176 rc = errno; 177 } else { 178 cliuser_t fusr; 179 fusr.name = usr->name; 180 fusr.cwd = usr->cwd; 181 fusr.prompt = usr->prompt; 182 fusr.line = malloc(INPUT_MAX + 1); 183 char *cur = fusr.line; 184 char *end = fusr.line + INPUT_MAX; 185 int c = fgetc(batch); 186 while (fusr.line != NULL) { 187 if (c == '\n' || c == EOF || cur == end) { 188 *cur = '\0'; 189 if (cur == fusr.line) { 190 /* skip empty line */ 191 rc = 0; 192 free(cur); 193 } else { 194 printf(">%s\n", fusr.line); 195 rc = process_input(&fusr); 196 /* fusr->line was freed by process_input() */ 197 } 198 if (rc == 0 && c != EOF) { 199 fusr.line = malloc(INPUT_MAX + 1); 200 cur = fusr.line; 201 end = fusr.line + INPUT_MAX; 202 } else { 203 break; 204 } 205 } else { 206 *cur++ = c; 207 } 208 c = fgetc(batch); 209 } 210 fclose(batch); 211 } 212 } else { 213 rc = run_command(actual_cmd, usr, &new_iostate); 214 } 173 215 174 216 finit_with_files: -
uspace/app/tetris/tetris.c
r75aa59a r80e9e5e 291 291 for (j = i + 1; j <= 5; j++) { 292 292 if (keys[i] == keys[j]) 293 errx(1, " duplicate command keys specified.");293 errx(1, "%s", "duplicate command keys specified."); 294 294 } 295 295 -
uspace/lib/c/arch/abs32le/include/types.h
r75aa59a r80e9e5e 51 51 typedef uint32_t size_t; 52 52 53 typedef int32_t intptr_t; 53 54 typedef uint32_t uintptr_t; 54 55 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/amd64/include/types.h
r75aa59a r80e9e5e 51 51 typedef uint64_t size_t; 52 52 53 typedef int64_t intptr_t; 53 54 typedef uint64_t uintptr_t; 54 55 typedef uint64_t atomic_count_t; -
uspace/lib/c/arch/arm32/include/types.h
r75aa59a r80e9e5e 52 52 typedef uint32_t size_t; 53 53 54 typedef int32_t intptr_t; 54 55 typedef uint32_t uintptr_t; 55 56 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/ia32/include/atomic.h
r75aa59a r80e9e5e 43 43 { 44 44 asm volatile ( 45 "lock incl % [count]\n"46 : [count]"+m" (val->count)45 "lock incl %0\n" 46 : "+m" (val->count) 47 47 ); 48 48 } … … 51 51 { 52 52 asm volatile ( 53 "lock decl % [count]\n"54 : [count]"+m" (val->count)53 "lock decl %0\n" 54 : "+m" (val->count) 55 55 ); 56 56 } … … 61 61 62 62 asm volatile ( 63 "lock xaddl % [r], %[count]\n"64 : [count]"+m" (val->count),65 [r]"+r" (r)63 "lock xaddl %1, %0\n" 64 : "+m" (val->count), 65 "+r" (r) 66 66 ); 67 67 … … 74 74 75 75 asm volatile ( 76 "lock xaddl % [r], %[count]\n"77 : [count]"+m" (val->count),78 [r]"+r" (r)76 "lock xaddl %1, %0\n" 77 : "+m" (val->count), 78 "+r" (r) 79 79 ); 80 80 -
uspace/lib/c/arch/ia32/include/ddi.h
r75aa59a r80e9e5e 44 44 45 45 asm volatile ( 46 "inb %w [port], %b[val]\n"47 : [val]"=a" (val)48 : [port]"d" (port)46 "inb %w1, %b0\n" 47 : "=a" (val) 48 : "d" (port) 49 49 ); 50 50 … … 57 57 58 58 asm volatile ( 59 "inw %w [port], %w[val]\n"60 : [val]"=a" (val)61 : [port]"d" (port)59 "inw %w1, %w0\n" 60 : "=a" (val) 61 : "d" (port) 62 62 ); 63 63 … … 70 70 71 71 asm volatile ( 72 "inl %w [port], %[val]\n"73 : [val]"=a" (val)74 : [port]"d" (port)72 "inl %w1, %0\n" 73 : "=a" (val) 74 : "d" (port) 75 75 ); 76 76 … … 81 81 { 82 82 asm volatile ( 83 "outb %b [val], %w[port]\n"84 :: [val] "a" (val), [port]"d" (port)83 "outb %b0, %w1\n" 84 :: "a" (val), "d" (port) 85 85 ); 86 86 } … … 89 89 { 90 90 asm volatile ( 91 "outw %w [val], %w[port]\n"92 :: [val] "a" (val), [port]"d" (port)91 "outw %w0, %w1\n" 92 :: "a" (val), "d" (port) 93 93 ); 94 94 } … … 97 97 { 98 98 asm volatile ( 99 "outl % [val], %w[port]\n"100 :: [val] "a" (val), [port]"d" (port)99 "outl %0, %w1\n" 100 :: "a" (val), "d" (port) 101 101 ); 102 102 } -
uspace/lib/c/arch/ia32/include/types.h
r75aa59a r80e9e5e 51 51 typedef uint32_t size_t; 52 52 53 typedef int32_t intptr_t; 53 54 typedef uint32_t uintptr_t; 54 55 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/ia64/include/types.h
r75aa59a r80e9e5e 61 61 typedef uint64_t size_t; 62 62 63 typedef int64_t intptr_t; 63 64 typedef uint64_t uintptr_t; 64 65 typedef uint64_t atomic_count_t; -
uspace/lib/c/arch/mips32/include/types.h
r75aa59a r80e9e5e 52 52 typedef uint32_t size_t; 53 53 54 typedef int32_t intptr_t; 54 55 typedef uint32_t uintptr_t; 55 56 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/ppc32/include/types.h
r75aa59a r80e9e5e 51 51 typedef uint32_t size_t; 52 52 53 typedef int32_t intptr_t; 53 54 typedef uint32_t uintptr_t; 54 55 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/sparc64/include/types.h
r75aa59a r80e9e5e 51 51 typedef uint64_t size_t; 52 52 53 typedef int64_t intptr_t; 53 54 typedef uint64_t uintptr_t; 54 55 typedef uint64_t atomic_count_t;
Note:
See TracChangeset
for help on using the changeset viewer.