Changeset 581


Ignore:
Timestamp:
Jun 4, 2015, 1:13:29 PM (9 years ago)
Author:
laurent
Message:

Adding ocean application, some mathematics functions and distributed locks

Location:
soft/giet_vm
Files:
49 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r580 r581  
    1111#ARCH      ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob
    1212ARCH       ?= ../../../tsar/platforms/tsar_generic_iob
    13 X_SIZE    ?= 2
    14 Y_SIZE    ?= 2
     13X_SIZE    ?= 1
     14Y_SIZE    ?= 1
    1515NB_PROCS  ?= 4
    1616NB_TTYS   ?= 1
     
    2020
    2121
    22 .PHONY: map.bin build clean
     22.PHONY: clean map.bin build
    2323
    2424### FAT parameters definition for Disk image
     
    244244        mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc
    245245        mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc
     246        mcopy -o -i $(DISK_IMAGE) applications/display/lena.raw ::/misc
    246247        mcopy -o -i $(DISK_IMAGE) map.bin ::/
    247248### Copy bootloader into sector 2 of disk image
     
    268269        mmd -o -i $(DISK_IMAGE) ::/misc
    269270        mmd -o -i $(DISK_IMAGE) ::/home
    270         mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc
    271         mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc
    272         mcopy -o -i $(DISK_IMAGE) applications/display/lena.raw ::/misc
     271#       mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc
     272#       mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc
     273#       mcopy -o -i $(DISK_IMAGE) applications/display/lena.raw ::/misc
    273274
    274275### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld
    275 map.bin hard_config.h giet_vsegs.ld: $(ARCH)/arch.py  applications/$(APP)/$(APP).py
     276map.bin hard_config.h giet_vsegs.ld: $(ARCH)/arch.py  applications/$(APP)/$(APP).py $(DISK_IMAGE)
    276277        giet_python/genmap --arch=$(ARCH)     \
    277278                       --x=$(X_SIZE)      \
     
    284285                       --$(APP)           \
    285286                       --xml=.
    286         mcopy -o -i $(DISK_IMAGE) map.bin ::/
     287#       mcopy -o -i $(DISK_IMAGE) map.bin ::/
    287288
    288289### drivers compilation
     
    435436### boot compilation
    436437### Copy bootloader into sector 2 of disk image
    437 build/boot:
    438         mkdir $@
    439438
    440439build/boot/boot.elf: $(BOOT_OBJS)            \
     440                     $(DISK_IMAGE)           \
    441441                     giet_boot/boot.ld       \
    442442                     build/drivers/libdrivers.a | build/boot
     
    460460### kernel compilation
    461461build/kernel/kernel.elf: $(KERNEL_OBJS)        \
     462                         $(DISK_IMAGE)         \
    462463                         giet_kernel/kernel.ld \
    463464                         build/drivers/libdrivers.a
     
    465466        $(DU) -D $@ > $@.txt   
    466467        mmd -o -i $(DISK_IMAGE) ::/build/kernel || true
    467         mcopy -o -i $(DISK_IMAGE) $@ ::/build/kernel
     468#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/kernel
    468469
    469470build/kernel/%.o: giet_kernel/%.c    \
     
    536537########################################
    537538### display application compilation
    538 build/display/display.elf: $(DISPLAY_OBJS) applications/display/display.ld hard_config.h
     539build/display/display.elf: $(DISPLAY_OBJS) applications/display/display.ld hard_config.h $(DISK_IMAGE)
    539540        $(LD) -o $@ -T applications/display/display.ld $(DISPLAY_OBJS)
    540541        $(DU) -D $@ > $@.txt
    541542        mmd -o -i $(DISK_IMAGE) ::/build/display || true
    542         mcopy -o -i $(DISK_IMAGE) $@ ::/build/display
     543#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/display
    543544
    544545build/display/main.o: applications/display/main.c hard_config.h
     
    547548########################################
    548549### router compilation
    549 build/router/router.elf: $(ROUTER_OBJS) applications/router/router.ld hard_config.h
     550build/router/router.elf: $(ROUTER_OBJS) applications/router/router.ld hard_config.h $(DISK_IMAGE)
    550551        $(LD) -o $@ -T applications/router/router.ld $(ROUTER_OBJS)
    551552        $(DU) -D $@ > $@.txt
    552553        mmd -o -i $(DISK_IMAGE) ::/build/router || true
    553         mcopy -o -i $(DISK_IMAGE) $@ ::/build/router
     554#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/router
    554555
    555556build/router/main.o: applications/router/main.c hard_config.h
     
    558559########################################
    559560### hello compilation
    560 build/hello/hello.elf: $(HELLO_OBJS) applications/hello/hello.ld hard_config.h
     561build/hello/hello.elf: $(HELLO_OBJS) applications/hello/hello.ld hard_config.h $(DISK_IMAGE)
    561562        $(LD) -o $@ -T applications/hello/hello.ld $(HELLO_OBJS)
    562563        $(DU) -D $@ > $@.txt
    563564        mmd -o -i $(DISK_IMAGE) ::/build/hello || true
    564         mcopy -o -i $(DISK_IMAGE) $@ ::/build/hello
     565#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/hello
    565566
    566567build/hello/main.o: applications/hello/main.c hard_config.h
     
    569570########################################
    570571### pgcd compilation
    571 build/pgcd/pgcd.elf: $(PGCD_OBJS) applications/pgcd/pgcd.ld hard_config.h
     572build/pgcd/pgcd.elf: $(PGCD_OBJS) applications/pgcd/pgcd.ld hard_config.h $(DISK_IMAGE)
    572573        $(LD) -o $@ -T applications/pgcd/pgcd.ld $(PGCD_OBJS)
    573574        $(DU) -D $@ > $@.txt
    574575        mmd -o -i $(DISK_IMAGE) ::/build/pgcd || true
    575         mcopy -o -i $(DISK_IMAGE) $@ ::/build/pgcd
     576#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/pgcd
    576577
    577578build/pgcd/main.o: applications/pgcd/main.c hard_config.h
     
    580581########################################
    581582### gameoflife compilation
    582 build/gameoflife/gameoflife.elf: $(GAMEOFLIFE_OBJS) applications/gameoflife/gameoflife.ld
     583build/gameoflife/gameoflife.elf: $(GAMEOFLIFE_OBJS) applications/gameoflife/gameoflife.ld $(DISK_IMAGE)
    583584        $(LD) -o $@ -T applications/gameoflife/gameoflife.ld $(GAMEOFLIFE_OBJS)
    584585        $(DU) -D $@ > $@.txt
    585586        mmd -o -i $(DISK_IMAGE) ::/build/gameoflife || true
    586         mcopy -o -i $(DISK_IMAGE) $@ ::/build/gameoflife
     587#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/gameoflife
    587588
    588589build/gameoflife/main.o: applications/gameoflife/main.c
     
    591592########################################
    592593### dhrystone compilation
    593 build/dhrystone/dhrystone.elf: $(DHRYSTONE_OBJS) applications/dhrystone/dhrystone.ld hard_config.h
     594build/dhrystone/dhrystone.elf: $(DHRYSTONE_OBJS) applications/dhrystone/dhrystone.ld hard_config.h $(DISK_IMAGE)
    594595        $(LD) -o $@ -T applications/dhrystone/dhrystone.ld $(DHRYSTONE_OBJS)
    595596        $(DU) -D $@ > $@.txt
    596597        mmd -o -i $(DISK_IMAGE) ::/build/dhrystone || true
    597         mcopy -o -i $(DISK_IMAGE) $@ ::/build/dhrystone
     598#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/dhrystone
    598599
    599600build/dhrystone/dhry_1.o: applications/dhrystone/dhry_1.c hard_config.h
     
    605606########################################
    606607### sort compilation
    607 build/sort/sort.elf: $(SORT_OBJS) applications/sort/sort.ld hard_config.h
     608build/sort/sort.elf: $(SORT_OBJS) applications/sort/sort.ld hard_config.h $(DISK_IMAGE)
    608609        $(LD) -o $@ -T applications/sort/sort.ld $(SORT_OBJS)
    609610        $(DU) -D $@ > $@.txt
    610611        mmd -o -i $(DISK_IMAGE) ::/build/sort || true
    611         mcopy -o -i $(DISK_IMAGE) $@ ::/build/sort
    612 
    613 build/sort/main.o: applications/sort/main.c
     612#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/sort
     613
     614build/sort/main.o: applications/sort/main.c hard_config.h
    614615        $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
    615616
    616617########################################
    617618### transpose compilation
    618 build/transpose/transpose.elf: $(TRANSPOSE_OBJS) applications/transpose/transpose.ld hard_config.h
     619build/transpose/transpose.elf: $(TRANSPOSE_OBJS) applications/transpose/transpose.ld hard_config.h $(DISK_IMAGE)
    619620        $(LD) -o $@ -T applications/transpose/transpose.ld $(TRANSPOSE_OBJS)
    620621        $(DU) -D $@ > $@.txt
    621622        mmd -o -i $(DISK_IMAGE) ::/build/transpose || true
    622         mcopy -o -i $(DISK_IMAGE) $@ ::/build/transpose
    623 
    624 build/transpose/main.o: applications/transpose/main.c
     623#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/transpose
     624
     625build/transpose/main.o: applications/transpose/main.c hard_config.h
    625626        $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
    626627
    627628########################################
    628629### convol compilation
    629 build/convol/convol.elf: $(CONVOL_OBJS) applications/convol/convol.ld hard_config.h
     630build/convol/convol.elf: $(CONVOL_OBJS) applications/convol/convol.ld hard_config.h $(DISK_IMAGE)
    630631        $(LD) -o $@ -T applications/convol/convol.ld $(CONVOL_OBJS)
    631632        $(DU) -D $@ > $@.txt
    632633        mmd -o -i $(DISK_IMAGE) ::/build/convol || true
    633         mcopy -o -i $(DISK_IMAGE) $@ ::/build/convol
    634 
    635 build/convol/main.o: applications/convol/main.c
     634#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/convol
     635
     636build/convol/main.o: applications/convol/main.c hard_config.h
    636637        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
    637638
    638639########################################
    639640### classif compilation
    640 build/classif/classif.elf: $(CLASSIF_OBJS) applications/classif/classif.ld hard_config.h
     641build/classif/classif.elf: $(CLASSIF_OBJS) applications/classif/classif.ld hard_config.h $(DISK_IMAGE)
    641642        $(LD) -o $@ -T applications/classif/classif.ld $(CLASSIF_OBJS)
    642643        $(DU) -D $@ > $@.txt
    643644        mmd -o -i $(DISK_IMAGE) ::/build/classif || true
    644         mcopy -o -i $(DISK_IMAGE) $@ ::/build/classif
    645 
    646 build/classif/main.o: applications/classif/main.c
     645#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/classif
     646
     647build/classif/main.o: applications/classif/main.c hard_config.h
    647648        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
    648649
    649650########################################
    650651### coproc compilation
    651 build/coproc/coproc.elf: $(COPROC_OBJS) applications/coproc/coproc.ld hard_config.h
     652build/coproc/coproc.elf: $(COPROC_OBJS) applications/coproc/coproc.ld hard_config.h $(DISK_IMAGE)
    652653        $(LD) -o $@ -T applications/coproc/coproc.ld $(COPROC_OBJS)
    653654        $(DU) -D $@ > $@.txt
    654655        mmd -o -i $(DISK_IMAGE) ::/build/coproc || true
    655         mcopy -o -i $(DISK_IMAGE) $@ ::/build/coproc
     656#       mcopy -o -i $(DISK_IMAGE) $@ ::/build/coproc
    656657
    657658build/coproc/main.o: applications/coproc/main.c
  • soft/giet_vm/giet_libs/stdio.c

    r580 r581  
    375375               
    376376                vald -= (double)intp;
    377                 decp = (unsigned int)(vald * 100000000);
     377                decp = (unsigned int)(vald * 1000000000);
    378378               
    379379                for(i = 0; i < 10; i++)
Note: See TracChangeset for help on using the changeset viewer.