Changeset 482


Ignore:
Timestamp:
Jan 1, 2015, 8:35:26 PM (9 years ago)
Author:
alain
Message:

The GIET_NIC_BUFSIZE, GIET_NIC_NBUFS, and GIET_NIC_TIMEOUT have been removed from the hiet_config.h file.

Location:
soft/giet_vm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r463 r482  
    1010# Parameters definition
    1111ARCH      ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob
    12 X_SIZE    ?= 1
    13 Y_SIZE    ?= 1
    14 NB_PROCS  ?= 4
     12X_SIZE    ?= 8
     13Y_SIZE    ?= 4
     14NB_PROCS  ?= 2
    1515NB_TTYS   ?= 1
    1616FBF_WIDTH ?= 128
     
    4444
    4545### Objects to be linked for kernel.elf
    46 KERNEL_OBJS  = build/common/utils.o        \
    47                build/common/locks.o        \
     46KERNEL_OBJS  = build/common/utils.o         \
     47               build/common/locks.o         \
    4848               build/common/tty0.o          \
    49                build/common/vmem.o         \
    50                build/fat32/fat32.o         \
    51                build/kernel/giet.o         \
    52                build/kernel/switch.o       \
    53                build/kernel/ctx_handler.o  \
    54                build/kernel/exc_handler.o  \
    55                build/kernel/sys_handler.o  \
    56                build/kernel/irq_handler.o  \
     49               build/common/vmem.o          \
     50               build/common/kernel_malloc.o \
     51               build/fat32/fat32.o          \
     52               build/kernel/giet.o          \
     53               build/kernel/switch.o        \
     54               build/kernel/ctx_handler.o   \
     55               build/kernel/exc_handler.o   \
     56               build/kernel/sys_handler.o   \
     57               build/kernel/irq_handler.o   \
    5758               build/kernel/kernel_init.o
    5859
    5960### Objects to be linked for boot.elf
    60 BOOT_OBJS    = build/common/utils.o        \
    61                build/common/locks.o        \
     61BOOT_OBJS    = build/common/utils.o         \
     62               build/common/locks.o         \
    6263               build/common/tty0.o          \
    63                build/common/pmem.o         \
    64                build/common/vmem.o         \
    65                build/fat32/fat32.o         \
    66                build/kernel/ctx_handler.o  \
    67                build/kernel/switch.o       \
    68                build/boot/boot.o           \
     64               build/common/pmem.o          \
     65               build/common/vmem.o          \
     66               build/common/kernel_malloc.o \
     67               build/fat32/fat32.o          \
     68               build/kernel/ctx_handler.o   \
     69               build/kernel/switch.o        \
     70               build/boot/boot.o            \
    6971               build/boot/boot_entry.o
    7072
     
    363365        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
    364366
     367build/common/kernel_malloc.o: giet_common/kernel_malloc.c \
     368                     giet_common/kernel_malloc.h \
     369                     hard_config.h      \
     370                     giet_config.h
     371        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
     372
    365373########################
    366374### boot compilation
  • soft/giet_vm/giet_config.h

    r475 r482  
    4646/* software parameters */
    4747
    48 #define GIET_ELF_BUFFER_SIZE     0x80000    /* buffer for .elf files in seg_boot_data */
     48#define GIET_ELF_BUFFER_SIZE     0x80000    /* buffer for .elf files (seg_boot_data) */
    4949#define GIET_IDLE_TASK_PERIOD    0x10000000 /* Idle Task message period */
    5050#define GIET_OPEN_FILES_MAX      16         /* max simultaneously open files */
    5151#define GIET_NB_VSPACE_MAX       16         /* max number of virtual spaces */
    52 #define GIET_TICK_VALUE          0x00100000 /* context switch period (number of cycles) */
     52#define GIET_TICK_VALUE          0x00100000 /* context switch period (cycles) */
    5353#define GIET_USE_IOMMU           0          /* IOMMU activated when non zero */
    5454#define GIET_NO_HARD_CC          0          /* No hard cache coherence when non zero */
    55 #define GIET_NIC_NBUFS           2          /* Number of buffers for the NIC chbuf */
    56 #define GIET_NIC_NFAKE           6          /* Number of fake buffers (for chbuf alignment) */
    57 #define GIET_NIC_BUFSIZE         4096       /* Buffer size for the NIC chbuf */
    58 #define GIET_NIC_TIMEOUT         100        /* Max number of iterations for chbuf access */
    5955#define GIET_NIC_MAC4            0x12345678 /* 32 LSB bits of the MAC address */
    6056#define GIET_NIC_MAC2            0xBEBE     /* 16 MSB bits of the MAC address */
    61 #define GIET_LOCK_MAX_TICKET     1000000    /* max ticket value for the queueing locks */
     57#define GIET_LOCK_MAX_TICKET     1000000    /* max ticket value for queueing locks */
    6258
    6359#endif
  • soft/giet_vm/hard_config.h

    r463 r482  
    1 /* Generated by genmap for tsar_iob_1_1_4_1_128_classif */
     1/* Generated by genmap for tsar_iob_8_4_2_1_128_classif */
    22
    33#ifndef HARD_CONFIG_H
     
    66/* General platform parameters */
    77
    8 #define X_SIZE                 1
    9 #define Y_SIZE                 1
     8#define X_SIZE                 8
     9#define Y_SIZE                 4
    1010#define X_WIDTH                4
    1111#define Y_WIDTH                4
     
    1313#define X_IO                   0
    1414#define Y_IO                   0
    15 #define NB_PROCS_MAX           4
     15#define NB_PROCS_MAX           2
    1616#define IRQ_PER_PROCESSOR      4
    1717#define RESET_ADDRESS          0xbfc00000
    18 #define NB_TOTAL_PROCS         4
     18#define NB_TOTAL_PROCS         64
    1919
    2020/* Peripherals */
     
    2222#define NB_TTY_CHANNELS        1
    2323#define NB_IOC_CHANNELS        1
    24 #define NB_NIC_CHANNELS        2
    25 #define NB_CMA_CHANNELS        4
     24#define NB_NIC_CHANNELS        1
     25#define NB_CMA_CHANNELS        2
    2626#define NB_TIM_CHANNELS        0
    27 #define NB_DMA_CHANNELS        4
     27#define NB_DMA_CHANNELS        2
    2828
    2929#define USE_XCU                1
     
    4545
    4646#define SEG_RAM_BASE           0x0
    47 #define SEG_RAM_SIZE           0x4000000
     47#define SEG_RAM_SIZE           0x1000000
    4848
    4949#define SEG_CMA_BASE           0xb6000000
    50 #define SEG_CMA_SIZE           0x4000
     50#define SEG_CMA_SIZE           0x2000
    5151
    5252#define SEG_DMA_BASE           0xb1000000
Note: See TracChangeset for help on using the changeset viewer.