- Timestamp:
- 2012-09-07T15:05:43Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8776c46
- Parents:
- c6b601b (diff), 60d931d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace
- Files:
-
- 4 added
- 6 edited
- 21 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/Makefile
rc6b601b r3451129 29 29 30 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBEXT2_PREFIX)/libext2.a $(LIBBLOCK_PREFIX)/libblock.a 32 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) -I$(LIBEXT2_PREFIX) 31 LIBS = $(LIBEXT2_PREFIX)/libext2.a $(LIBBLOCK_PREFIX)/libblock.a $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a 32 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) -I$(LIBEXT2_PREFIX) -I$(LIBSOFTFLOAT_PREFIX) 33 33 BINARY = tester 34 34 … … 48 48 fault/fault2.c \ 49 49 fault/fault3.c \ 50 float/float1.c \ 51 float/softfloat1.c \ 50 52 vfs/vfs1.c \ 51 53 ipc/ping_pong.c \ … … 59 61 hw/misc/virtchar1.c \ 60 62 hw/serial/serial1.c \ 61 libext2/libext2_1.c63 ext2/ext2_1.c 62 64 63 65 include $(USPACE_PREFIX)/Makefile.common -
uspace/app/tester/ext2/ext2_1.c
rc6b601b r3451129 51 51 } 52 52 53 const char *test_ libext2_1(void)53 const char *test_ext2_1(void) 54 54 { 55 55 ext2_superblock_t *fake1; 56 56 57 TPRINTF("Testing libext2 superblock getters...\n");57 TPRINTF("Testing ext2 superblock getters...\n"); 58 58 TPRINTF("Simple test for correct position and byte order\n"); 59 59 -
uspace/app/tester/ext2/ext2_1.def
rc6b601b r3451129 1 1 { 2 " libext2_1",2 "ext2_1", 3 3 "Superblock getters test", 4 &test_ libext2_1,4 &test_ext2_1, 5 5 true 6 6 }, -
uspace/app/tester/tester.c
rc6b601b r3451129 58 58 #include "fault/fault2.def" 59 59 #include "fault/fault3.def" 60 #include "float/float1.def" 61 #include "float/softfloat1.def" 60 62 #include "vfs/vfs1.def" 61 63 #include "ipc/ping_pong.def" … … 68 70 #include "hw/serial/serial1.def" 69 71 #include "hw/misc/virtchar1.def" 70 #include " libext2/libext2_1.def"72 #include "ext2/ext2_1.def" 71 73 {NULL, NULL, NULL, false} 72 74 }; -
uspace/app/tester/tester.h
rc6b601b r3451129 91 91 extern const char *test_fault2(void); 92 92 extern const char *test_fault3(void); 93 extern const char *test_float1(void); 94 extern const char *test_softfloat1(void); 93 95 extern const char *test_vfs1(void); 94 96 extern const char *test_ping_pong(void); … … 101 103 extern const char *test_serial1(void); 102 104 extern const char *test_virtchar1(void); 103 extern const char *test_ libext2_1(void);105 extern const char *test_ext2_1(void); 104 106 extern const char *test_devman1(void); 105 107 extern const char *test_devman2(void); -
uspace/lib/c/arch/arm32/Makefile.common
rc6b601b r3451129 28 28 # 29 29 30 GCC_CFLAGS += -ffixed-r9 -mtp=soft -fno-omit-frame-pointer -ma rch=$(subst _,-,$(PROCESSOR))30 GCC_CFLAGS += -ffixed-r9 -mtp=soft -fno-omit-frame-pointer -mapcs-frame -march=$(subst _,-,$(PROCESSOR)) 31 31 32 32 ENDIANESS = LE -
uspace/lib/fs/libfs.c
rc6b601b r3451129 631 631 async_answer_0(rid, rc); 632 632 } else { 633 aoff64_t size = ops->size_get(fn); 634 async_answer_5(rid, fs_handle, 635 service_id, 636 ops->index_get(fn), 637 LOWER32(size), 638 UPPER32(size), 639 ops->lnkcnt_get(fn)); 640 (void) ops->node_put(fn); 633 (void) ops->node_put(cur); 634 cur = fn; 635 goto out_with_answer; 641 636 } 642 637 } else … … 715 710 async_answer_0(rid, rc); 716 711 } else { 717 aoff64_t size = ops->size_get(fn); 718 async_answer_5(rid, fs_handle, 719 service_id, 720 ops->index_get(fn), 721 LOWER32(size), 722 UPPER32(size), 723 ops->lnkcnt_get(fn)); 724 (void) ops->node_put(fn); 712 (void) ops->node_put(cur); 713 cur = fn; 714 goto out_with_answer; 725 715 } 726 716 } else -
uspace/lib/softfloat/Makefile
rc6b601b r3451129 29 29 30 30 USPACE_PREFIX = ../.. 31 EXTRA_CFLAGS = -Iinclude32 31 LIBRARY = libsoftfloat 33 32 34 33 SOURCES = \ 35 generic/add.c \36 generic/common.c \37 generic/comparison.c \38 generic/conversion.c \39 generic/div.c \40 generic/mul.c \41 generic/other.c \42 generic/softfloat.c \43 generic/sub.c34 softfloat.c \ 35 common.c \ 36 add.c \ 37 sub.c \ 38 div.c \ 39 mul.c \ 40 comparison.c \ 41 conversion.c \ 42 other.c 44 43 45 44 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/softfloat/add.c
rc6b601b r3451129 34 34 */ 35 35 36 #include <sftypes.h>37 #include <add.h>38 #include <comparison.h>39 #include <common.h>36 #include "sftypes.h" 37 #include "add.h" 38 #include "comparison.h" 39 #include "common.h" 40 40 41 41 /** Add two single-precision floats with the same sign. -
uspace/lib/softfloat/common.c
rc6b601b r3451129 34 34 */ 35 35 36 #include <sftypes.h>37 #include <common.h>36 #include "sftypes.h" 37 #include "common.h" 38 38 39 39 /* Table for fast leading zeroes counting. */ … … 57 57 }; 58 58 59 /** 59 /** 60 60 * Take fraction shifted by 10 bits to the left, round it, normalize it 61 61 * and detect exceptions … … 75 75 while ((cexp > 0) && (cfrac) && 76 76 (!(cfrac & (FLOAT64_HIDDEN_BIT_MASK << (64 - FLOAT64_FRACTION_SIZE - 1))))) { 77 cexp--; 77 cexp--; 78 78 cfrac <<= 1; 79 79 /* TODO: fix underflow */ … … 110 110 ++cexp; 111 111 cfrac >>= 1; 112 } 112 } 113 113 114 114 /* check overflow */ -
uspace/lib/softfloat/common.h
rc6b601b r3451129 37 37 #define __COMMON_H__ 38 38 39 #include <sftypes.h>39 #include "sftypes.h" 40 40 41 41 extern float64 finish_float64(int32_t, uint64_t, char); -
uspace/lib/softfloat/comparison.c
rc6b601b r3451129 34 34 */ 35 35 36 #include <sftypes.h>37 #include <comparison.h>38 #include <common.h>36 #include "sftypes.h" 37 #include "comparison.h" 38 #include "common.h" 39 39 40 40 /** -
uspace/lib/softfloat/conversion.c
rc6b601b r3451129 34 34 */ 35 35 36 #include <sftypes.h>37 #include <conversion.h>38 #include <comparison.h>39 #include <common.h>36 #include "sftypes.h" 37 #include "conversion.h" 38 #include "comparison.h" 39 #include "common.h" 40 40 41 41 float64 float32_to_float64(float32 a) -
uspace/lib/softfloat/div.c
rc6b601b r3451129 34 34 */ 35 35 36 #include <sftypes.h>37 #include <add.h>38 #include <div.h>39 #include <comparison.h>40 #include <mul.h>41 #include <common.h>36 #include "sftypes.h" 37 #include "add.h" 38 #include "div.h" 39 #include "comparison.h" 40 #include "mul.h" 41 #include "common.h" 42 42 43 43 /** Divide two single-precision floats. -
uspace/lib/softfloat/mul.c
rc6b601b r3451129 34 34 */ 35 35 36 #include <sftypes.h>37 #include <mul.h>38 #include <comparison.h>39 #include <common.h>36 #include "sftypes.h" 37 #include "mul.h" 38 #include "comparison.h" 39 #include "common.h" 40 40 41 41 /** Multiply two single-precision floats. -
uspace/lib/softfloat/softfloat.c
rc6b601b r3451129 36 36 */ 37 37 38 #include <softfloat.h> 39 #include <sftypes.h> 40 41 #include <add.h> 42 #include <sub.h> 43 #include <mul.h> 44 #include <div.h> 45 46 #include <conversion.h> 47 #include <comparison.h> 48 #include <other.h> 38 #include "softfloat.h" 39 #include "sftypes.h" 40 #include "add.h" 41 #include "sub.h" 42 #include "mul.h" 43 #include "div.h" 44 #include "conversion.h" 45 #include "comparison.h" 46 #include "other.h" 49 47 50 48 /* Arithmetic functions */ … … 1277 1275 } 1278 1276 1277 int __aeabi_f2iz(float a) 1278 { 1279 return __fixsfsi(a); 1280 } 1281 1279 1282 int __aeabi_d2iz(double a) 1280 1283 { … … 1300 1303 { 1301 1304 return __ltdf2(a, b); 1305 } 1306 1307 int __aeabi_dcmpeq(double a, double b) 1308 { 1309 return __eqdf2(a, b); 1310 } 1311 1312 float __aeabi_fadd(float a, float b) 1313 { 1314 return __addsf3(a, b); 1315 } 1316 1317 float __aeabi_fsub(float a, float b) 1318 { 1319 return __subsf3(a, b); 1320 } 1321 1322 float __aeabi_fmul(float a, float b) 1323 { 1324 return __mulsf3(a, b); 1325 } 1326 1327 float __aeabi_fdiv(float a, float b) 1328 { 1329 return __divsf3(a, b); 1302 1330 } 1303 1331 -
uspace/lib/softfloat/softfloat.h
rc6b601b r3451129 207 207 extern double __aeabi_ui2d(unsigned int); 208 208 extern unsigned int __aeabi_d2uiz(double); 209 210 extern int __aeabi_f2iz(float); 209 211 extern int __aeabi_d2iz(double); 210 212 … … 212 214 extern int __aeabi_dcmpgt(double, double); 213 215 extern int __aeabi_dcmplt(double, double); 216 extern int __aeabi_dcmpeq(double, double); 217 218 extern float __aeabi_fadd(float, float); 219 extern float __aeabi_fsub(float, float); 220 extern float __aeabi_fmul(float, float); 221 extern float __aeabi_fdiv(float, float); 214 222 215 223 extern double __aeabi_dadd(double, double); -
uspace/lib/softfloat/sub.c
rc6b601b r3451129 34 34 */ 35 35 36 #include <sftypes.h>37 #include <sub.h>38 #include <comparison.h>39 #include <common.h>36 #include "sftypes.h" 37 #include "sub.h" 38 #include "comparison.h" 39 #include "common.h" 40 40 41 41 /** Subtract two single-precision floats with the same sign.
Note:
See TracChangeset
for help on using the changeset viewer.