Changes in / [2166728:368ee04] in mainline


Ignore:
Files:
4 added
4 deleted
21 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    r2166728 r368ee04  
    6868                cp "$$file" "$(DIST_PATH)/app/" ; \
    6969        done
     70        for file in $(RD_DATA) ; do \
     71                cp "$$file" "$(DIST_PATH)/" ; \
     72        done
    7073ifeq ($(CONFIG_PCUT_TESTS),y)
    7174        echo "echo Running all tests..." >"$(DIST_PATH)/test/run_all"
     
    8487        echo "</ul></body></html>" >>"$(DIST_PATH)/test/test.html"
    8588endif
    86 
     89       
    8790ifeq ($(CONFIG_PCUT_SELF_TESTS),y)
    8891        echo "echo Running all PCUT self-tests..." >"$(DIST_PATH)/test/run_pcut"
     
    102105        echo "</ul></body></html>" >>"$(DIST_PATH)/test/pcut.html"
    103106endif
    104 
     107       
    105108        for drv in $(RD_DRVS) ; do \
    106109                drv_dir="`dirname "$$drv"`" ; \
     
    135138clean_dist:
    136139        rm -f $(INITRD).img $(COMPS_H) $(COMPS_C) $(LINK) $(LINK).comp *.co
     140        find $(USPACE_PATH)/dist -mindepth 1 -maxdepth 1 -type f -exec rm \{\} \;
    137141        rm -f $(USPACE_PATH)/dist/srv/*
    138142        rm -rf $(USPACE_PATH)/dist/drv/*
  • boot/Makefile.common

    r2166728 r368ee04  
    237237        $(USPACE_PATH)/app/bdsh/test-bdsh
    238238
     239RD_DATA_ESSENTIAL = \
     240        $(USPACE_PATH)/app/bdsh/demo.txt
     241
     242RD_DATA_NON_ESSENTIAL = \
     243        $(USPACE_PATH)/app/modplay/demo.xm \
     244        $(USPACE_PATH)/app/viewer/logo.tga
     245
    239246
    240247COMPONENTS = \
     
    254261RD_DRVS = $(RD_DRVS_ESSENTIAL)
    255262RD_DRVS_FW = $(RD_DRVS_FW_ESSENTIAL)
     263RD_DATA = $(RD_DATA_ESSENTIAL)
    256264else
    257265RD_SRVS = $(RD_SRVS_ESSENTIAL) $(RD_SRVS_NON_ESSENTIAL)
     
    259267RD_DRVS = $(RD_DRVS_ESSENTIAL) $(RD_DRVS_NON_ESSENTIAL)
    260268RD_DRVS_FW = $(RD_DRVS_FW_ESSENTIAL) $(RD_DRVS_FW_NON_ESSENTIAL)
     269RD_DATA = $(RD_DATA_ESSENTIAL) $(RD_DATA_NON_ESSENTIAL)
    261270endif
    262271
  • boot/arch/amd64/Makefile.inc

    r2166728 r368ee04  
    6666        $(USPACE_PATH)/app/wavplay/wavplay
    6767
     68RD_DATA_NON_ESSENTIAL += \
     69        $(USPACE_PATH)/app/wavplay/demo.wav
     70
    6871BOOT_OUTPUT = $(ROOT_PATH)/image.iso
    6972PREBUILD = $(INITRD).img
  • boot/arch/arm32/include/types.h

    r2166728 r368ee04  
    4545typedef uint32_t pfn_t;
    4646
     47typedef int32_t ptrdiff_t;
     48
    4749typedef struct {
    4850        /** Address where the task was placed. */
  • boot/arch/ia64/include/types.h

    r2166728 r368ee04  
    4040typedef uint64_t uintptr_t;
    4141
     42typedef int64_t ptrdiff_t;
     43
    4244typedef struct {
    4345        void *addr;
  • boot/arch/mips32/include/types.h

    r2166728 r368ee04  
    3737typedef uint32_t uintptr_t;
    3838
     39typedef int32_t ptrdiff_t;
     40
    3941typedef struct {
    4042        /** Address where the task was placed. */
  • boot/arch/ppc32/include/types.h

    r2166728 r368ee04  
    3838typedef int32_t native_t;
    3939
     40typedef int32_t ptrdiff_t;
     41
    4042typedef struct {
    4143        void *addr;
  • boot/arch/riscv64/include/types.h

    r2166728 r368ee04  
    3737typedef uint64_t uintptr_t;
    3838
     39typedef int64_t ptrdiff_t;
     40
    3941typedef struct {
    4042        void *start;
  • boot/arch/sparc64/include/types.h

    r2166728 r368ee04  
    3838typedef int64_t native_t;
    3939
     40typedef int64_t ptrdiff_t;
     41
    4042typedef struct {
    4143        void *addr;
  • boot/generic/src/printf_core.c

    r2166728 r368ee04  
    605605                       
    606606                        switch (uc) {
    607                         /** @todo Unimplemented qualifiers:
    608                          *        t ptrdiff_t - ISO C 99
    609                          */
     607                        case 't':
     608                                /* ptrdiff_t */
     609                                if (sizeof(ptrdiff_t) == sizeof(int32_t))
     610                                        qualifier = PrintfQualifierInt;
     611                                else
     612                                        qualifier = PrintfQualifierLongLong;
     613                                i = nxt;
     614                                uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
     615                                break;
    610616                        case 'h':
    611617                                /* Char or short */
  • defaults/mips32/Makefile.config

    r2166728 r368ee04  
    4444CONFIG_HID_OUT = generic
    4545
    46 # Barebone build with essential binaries only 
     46# Barebone build with essential binaries only
    4747CONFIG_BAREBONE = y
  • defaults/mips32/malta-be/Makefile.config

    r2166728 r368ee04  
    11# Machine type
    2 MACHINE = bmalta 
     2MACHINE = bmalta
  • defaults/mips32/malta-le/Makefile.config

    r2166728 r368ee04  
    11# Machine type
    2 MACHINE = lmalta 
     2MACHINE = lmalta
  • kernel/generic/include/typedefs.h

    r2166728 r368ee04  
    6161typedef volatile uint32_t ioport32_t;
    6262
     63typedef native_t ptrdiff_t;
     64
    6365#ifdef __32_BITS__
    6466
  • kernel/generic/src/printf/printf_core.c

    r2166728 r368ee04  
    733733                       
    734734                        switch (uc) {
    735                         /** @todo Unimplemented qualifiers:
    736                          *        t ptrdiff_t - ISO C 99
    737                          */
     735                        case 't':
     736                                /* ptrdiff_t */
     737                                if (sizeof(ptrdiff_t) == sizeof(int32_t))
     738                                        qualifier = PrintfQualifierInt;
     739                                else
     740                                        qualifier = PrintfQualifierLongLong;
     741                                i = nxt;
     742                                uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
     743                                break;
    738744                        case 'h':
    739745                                /* Char or short */
  • kernel/test/print/print2.c

    r2166728 r368ee04  
    5252        TPRINTF("Real output:     [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21);
    5353       
     54        char ch[12];
     55        ptrdiff_t d, neg_d;
     56       
     57        d = &ch[0] - &ch[12];
     58        neg_d = (unsigned)(-d);
     59        TPRINTF("Testing printf(\"%%td %%tu %%tx %%ti %%to\", d, neg_d, neg_d, d, neg_d):\n");
     60        TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n");
     61        TPRINTF("Real output:     [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d);
     62       
    5463        sysarg_t nat = UINTN_C(0x12345678);
    5564       
  • tools/autotool.py

    r2166728 r368ee04  
    925925                # Platform-specific utilities
    926926                if ((config['BARCH'] == "amd64") or (config['BARCH'] == "ia32") or (config['BARCH'] == "ppc32") or (config['BARCH'] == "sparc64")):
    927                         common['GENISOIMAGE'] = check_app_alternatives(["mkisofs", "genisoimage", "xorriso"], ["--version"], "ISO 9660 creation utility", "usually part of genisoimage")
     927                        common['GENISOIMAGE'] = check_app_alternatives(["genisoimage", "mkisofs", "xorriso"], ["--version"], "ISO 9660 creation utility", "usually part of genisoimage")
    928928                        if common['GENISOIMAGE'] == 'xorriso':
    929929                                common['GENISOIMAGE'] += ' -as genisoimage'
  • uspace/app/modplay/Makefile

    r2166728 r368ee04  
    3737        -I$(LIBHOUND_PREFIX)/include \
    3838        -I$(LIBPCM_PREFIX)/include
     39
    3940BINARY = modplay
    4041
  • uspace/app/tester/print/print2.c

    r2166728 r368ee04  
    5353        TPRINTF("Real output:     [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21);
    5454       
     55        char ch[12];
     56        ptrdiff_t d, neg_d;
     57       
     58        d = &ch[0] - &ch[12];
     59        neg_d = (unsigned)(-d);
     60        TPRINTF("Testing printf(\"%%td %%tu %%tx %%ti %%to\", d, neg_d, neg_d, d, neg_d):\n");
     61        TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n");
     62        TPRINTF("Real output:     [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d);
     63       
    5564        return NULL;
    5665}
  • uspace/lib/c/generic/io/printf_core.c

    r2166728 r368ee04  
    14481448                       
    14491449                        switch (uc) {
    1450                         /** @todo Unimplemented qualifiers:
    1451                          *        t ptrdiff_t - ISO C 99
    1452                          */
     1450                        case 't':
     1451                                /* ptrdiff_t */
     1452                                if (sizeof(ptrdiff_t) == sizeof(int32_t))
     1453                                        qualifier = PrintfQualifierInt;
     1454                                else
     1455                                        qualifier = PrintfQualifierLongLong;
     1456                                i = nxt;
     1457                                uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
     1458                                break;
    14531459                        case 'h':
    14541460                                /* Char or short */
  • version

    r2166728 r368ee04  
    3636
    3737VERSION = 0
    38 PATCHLEVEL = 6
     38PATCHLEVEL = 7
    3939SUBLEVEL = 0
    4040
     
    4545endif
    4646
    47 NAME = Elastic Horse
    48 COPYRIGHT = Copyright (c) 2001-2016 HelenOS project
     47NAME = Parabolic Potassium
     48COPYRIGHT = Copyright (c) 2001-2017 HelenOS project
Note: See TracChangeset for help on using the changeset viewer.