Changeset 525


Ignore:
Timestamp:
Mar 10, 2015, 3:25:31 PM (9 years ago)
Author:
alain
Message:

Introducing the coproc application in the Makefile.

Location:
soft/giet_vm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r510 r525  
    1010# Parameters definition
    1111ARCH      ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob
    12 X_SIZE    ?= 4
    13 Y_SIZE    ?= 4
     12X_SIZE    ?= 2
     13Y_SIZE    ?= 2
    1414NB_PROCS  ?= 4
    1515NB_TTYS   ?= 1
    1616FBF_WIDTH ?= 128
    17 APP       ?= sort
     17APP       ?= classif
    1818
    1919
     
    139139                build/libs/user_lock.o
    140140
     141### Objects to be linked for coproc.elf
     142COPROC_OBJS = build/coproc/main.o \
     143              build/libs/stdio.o
     144
    141145CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \
    142146                 -fno-delete-null-pointer-checks
     
    171175     build/transpose/transpose.elf   \
    172176     build/convol/convol.elf         \
    173      build/router/router.elf         \
    174177     build/classif/classif.elf       \
     178     build/coproc/coproc.elf         \
    175179     $(DISK_IMAGE)                   
    176180         
     
    178182        mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel
    179183        mcopy -o -i $(DISK_IMAGE) build/display/display.elf ::/build/display
     184        mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello
     185        mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd
     186        mcopy -o -i $(DISK_IMAGE) build/router/router.elf ::/build/router
     187        mcopy -o -i $(DISK_IMAGE) build/dhrystone/dhrystone.elf ::/build/dhrystone
     188        mcopy -o -i $(DISK_IMAGE) build/gameoflife/gameoflife.elf ::/build/gameoflife
    180189        mcopy -o -i $(DISK_IMAGE) build/sort/sort.elf ::/build/sort
    181190        mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose
    182191        mcopy -o -i $(DISK_IMAGE) build/convol/convol.elf ::/build/convol
    183192        mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif
    184         mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello
    185         mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd
    186         mcopy -o -i $(DISK_IMAGE) build/router/router.elf ::/build/router
    187         mcopy -o -i $(DISK_IMAGE) build/gameoflife/gameoflife.elf ::/build/gameoflife
    188         mcopy -o -i $(DISK_IMAGE) build/dhrystone/dhrystone.elf ::/build/dhrystone
     193        mcopy -o -i $(DISK_IMAGE) build/coproc/coproc.elf ::/build/coproc
    189194        mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc
    190195        mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc
     
    203208        mmd -o -i $(DISK_IMAGE) ::/build/kernel
    204209        mmd -o -i $(DISK_IMAGE) ::/build/display
     210        mmd -o -i $(DISK_IMAGE) ::/build/hello
     211        mmd -o -i $(DISK_IMAGE) ::/build/pgcd 
     212        mmd -o -i $(DISK_IMAGE) ::/build/router
     213        mmd -o -i $(DISK_IMAGE) ::/build/dhrystone
     214        mmd -o -i $(DISK_IMAGE) ::/build/gameoflife
    205215        mmd -o -i $(DISK_IMAGE) ::/build/sort 
    206216        mmd -o -i $(DISK_IMAGE) ::/build/transpose
    207217        mmd -o -i $(DISK_IMAGE) ::/build/convol
    208218        mmd -o -i $(DISK_IMAGE) ::/build/classif
    209         mmd -o -i $(DISK_IMAGE) ::/build/hello
    210         mmd -o -i $(DISK_IMAGE) ::/build/pgcd 
    211         mmd -o -i $(DISK_IMAGE) ::/build/router
    212         mmd -o -i $(DISK_IMAGE) ::/build/gameoflife
    213         mmd -o -i $(DISK_IMAGE) ::/build/dhrystone
     219        mmd -o -i $(DISK_IMAGE) ::/build/coproc
    214220        mmd -o -i $(DISK_IMAGE) ::/misc
    215221        dd if=$(DISK_IMAGE) of=temp.dmg count=65536
     
    555561
    556562build/classif/main.o: applications/classif/main.c
     563        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
     564
     565########################################
     566### coproc compilation
     567build/coproc/coproc.elf: $(COPROC_OBJS) applications/coproc/coproc.ld hard_config.h
     568        $(LD) -o $@ -T applications/coproc/coproc.ld $(COPROC_OBJS)
     569        $(DU) -D $@ > $@.txt
     570
     571build/coproc/main.o: applications/coproc/main.c
    557572        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
    558573
     
    579594        rm -rf build/convol/*
    580595        rm -rf build/classif/*
     596        rm -rf build/coproc/*
    581597        rm -rf $(DISK_IMAGE)
  • soft/giet_vm/giet_config.h

    r482 r525  
    1 /********************************************************************************/
    2 /*      File : giet_config.h                                                        */
    3 /*      Author : Alain Greiner                                                      */
    4 /*      Date : 26/03/2013                                                           */
    5 /********************************************************************************/
    6 /*      Define various configuration parameters for the GIET                                */
    7 /********************************************************************************/
     1/****************************************************************************/
     2/*      File : giet_config.h                                                    */
     3/*      Author : Alain Greiner                                                  */
     4/*      Date : 26/03/2013                                                       */
     5/****************************************************************************/
     6/*      Define various configuration parameters for the GIET                            */
     7/****************************************************************************/
    88
    99#ifndef _GIET_VM_CONFIG_H
     
    1515/* Debug parameters */
    1616
    17 #define BOOT_DEBUG_MAPPING       0          /* trace map_info checking */
    18 #define BOOT_DEBUG_PT            0          /* trace page tables initialisation */
    19 #define BOOT_DEBUG_VOBJS         0          /* trace vobjs initialisation */
    20 #define BOOT_DEBUG_SCHED         0          /* trace schedulers initialisation */
    21 #define BOOT_DEBUG_PERI          0          /* trace peripherals initialisation */
    22 #define BOOT_DEBUG_ELF           0          /* trace .elf files loading */
     17#define BOOT_DEBUG_MAPPING        0         /* map_info checking */
     18#define BOOT_DEBUG_PT             0         /* page tables initialisation */
     19#define BOOT_DEBUG_SCHED          0         /* schedulers initialisation */
     20#define BOOT_DEBUG_PERI           0         /* peripherals initialisation */
     21#define BOOT_DEBUG_ELF            0         /* .elf files loading */
    2322
    24 #define GIET_DEBUG_INIT          0          /* trace kernel initialisation */
     23#define GIET_DEBUG_INIT           0         /* kernel initialisation */
    2524
    26 #define GIET_DEBUG_FAT           0          /* trace fat accesses */
    27 #define GIET_DEBUG_SIMPLE_LOCK   0          /* trace kernel simple_lock accesses */
    28 #define GIET_DEBUG_SPIN_LOCK     0          /* trace kernel spin_lock accesses */
    29 #define GIET_DEBUG_SBT_LOCK      0          /* trace kernel sbt_lock accesses */
    30 #define GIET_DEBUG_SYS_MALLOC    0          /* trace kernel malloc accesses */
    31 #define GIET_DEBUG_SWITCH        0          /* trace context switchs  */
    32 #define GIET_DEBUG_IRQS          0          /* trace interrupts */
    33 #define GIET_DEBUG_IOC_DRIVER    0          /* trace IOC accesses */
    34 #define GIET_DEBUG_TTY_DRIVER    0          /* trace TTY accesses */
    35 #define GIET_DEBUG_DMA_DRIVER    0          /* trace DMA accesses */
    36 #define GIET_DEBUG_NIC           0          /* trace NIC accesses */
    37 #define GIET_DEBUG_FBF_CMA       0          /* trace FBF_CMA accesses */
     25#define GIET_DEBUG_FAT            0         /* fat access */
     26#define GIET_DEBUG_SIMPLE_LOCK    0         /* kernel simple lock access */
     27#define GIET_DEBUG_SPIN_LOCK      0         /* kernel spin lock access */
     28#define GIET_DEBUG_SQT_LOCK       0         /* kernel SQT lock access */
     29#define GIET_DEBUG_SIMPLE_BARRIER 0         /* kernel simple barrier access */
     30#define GIET_DEBUG_SQT_BARRIER    0         /* kernel SQT barrier access */
     31#define GIET_DEBUG_SYS_MALLOC     0         /* kernel malloc access */
     32#define GIET_DEBUG_SWITCH         0         /* context switchs  */
     33#define GIET_DEBUG_IRQS           0         /* interrupts */
     34#define GIET_DEBUG_IOC_DRIVER     0         /* IOC access */
     35#define GIET_DEBUG_TTY_DRIVER     0         /* TTY access */
     36#define GIET_DEBUG_DMA_DRIVER     0         /* DMA access */
     37#define GIET_DEBUG_NIC            0         /* NIC access */
     38#define GIET_DEBUG_FBF_CMA        0         /* FBF_CMA access */
     39#define GIET_DEBUG_COPROC         0         /* coprocessor access */
    3840
    39 #define GIET_DEBUG_USER_MALLOC   0          /* trace malloc library */
    40 #define GIET_DEBUG_USER_BARRIER  0          /* trace barrier library */
    41 #define GIET_DEBUG_USER_MWMR     0          /* trace mwmr library */
    42 #define GIET_DEBUG_USER_LOCK     0          /* trace user locks access */
     41#define GIET_DEBUG_USER_MALLOC    0         /* malloc library */
     42#define GIET_DEBUG_USER_BARRIER   0         /* barrier library */
     43#define GIET_DEBUG_USER_MWMR      0         /* mwmr library */
     44#define GIET_DEBUG_USER_LOCK      0         /* user locks access */
    4345
    4446#define CONFIG_SRL_VERBOSITY TRACE
     
    4648/* software parameters */
    4749
    48 #define GIET_ELF_BUFFER_SIZE     0x80000    /* buffer for .elf files (seg_boot_data) */
     50#define GIET_ELF_BUFFER_SIZE     0x80000    /* buffer for .elf files */
    4951#define GIET_IDLE_TASK_PERIOD    0x10000000 /* Idle Task message period */
    5052#define GIET_OPEN_FILES_MAX      16         /* max simultaneously open files */
     
    5254#define GIET_TICK_VALUE          0x00100000 /* context switch period (cycles) */
    5355#define GIET_USE_IOMMU           0          /* IOMMU activated when non zero */
    54 #define GIET_NO_HARD_CC          0          /* No hard cache coherence when non zero */
     56#define GIET_NO_HARD_CC          0          /* No hard cache coherence */
    5557#define GIET_NIC_MAC4            0x12345678 /* 32 LSB bits of the MAC address */
    5658#define GIET_NIC_MAC2            0xBEBE     /* 16 MSB bits of the MAC address */
    57 #define GIET_LOCK_MAX_TICKET     1000000    /* max ticket value for queueing locks */
    5859
    5960#endif
Note: See TracChangeset for help on using the changeset viewer.