Changeset 623


Ignore:
Timestamp:
Jan 29, 2014, 9:33:16 AM (10 years ago)
Author:
alain
Message:

Introducing the soft_hello_giet application.

Location:
trunk/softs
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/soft_transpose_giet/Makefile

    r244 r623  
    55
    66OBJS =   reset.o \
    7         giet.o \
    8         isr.o \
    9         drivers.o \
    10         stdio.o \
    11         main.o
     7         giet.o \
     8         stdio.o \
     9         main.o
    1210
    1311CFLAGS = -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 -ggdb
     
    1917        $(DU) -D $@ > $@.txt
    2018
    21 reset.o: $(GIET)/reset.s
    22         $(AS) -g -mips32 -o $@ $<
     19reset.o: $(GIET)/reset.S hard_config.h
     20        $(CC) -I. $(CFLAGS) -c -o $@ $<
    2321        $(DU) -D $@ > $@.txt
    2422
    25 giet.o: $(GIET)/giet.s
    26         $(AS) -g -mips32 -o $@ $<
     23giet.o: $(GIET)/giet.S hard_config.h
     24        $(CC) -I. $(CFLAGS) -c -o $@ $<
    2725        $(DU) -D $@ > $@.txt
    2826
    29 isr.o: $(GIET)/isr.c
    30         $(CC) $(CFLAGS) -c -o $@ $<
     27stdio.o: $(GIET)/stdio.c hard_config.h
     28        $(CC) -I. $(CFLAGS) -c -o $@ $<
    3129        $(DU) -D $@ > $@.txt
    3230
    33 stdio.o: $(GIET)/stdio.c
    34         $(CC) $(CFLAGS) -c -o $@ $<
    35         $(DU) -D $@ > $@.txt
    36 
    37 drivers.o: $(GIET)/drivers.c
    38         $(CC) $(CFLAGS) -c -o $@ $<
    39         $(DU) -D $@ > $@.txt
    40 
    41 main.o: main.c
    42         $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $<
     31main.o: main.c hard_config.h
     32        $(CC) -I. $(CFLAGS) -I$(GIET) -c -o $@ $<
    4333        $(DU) -D $@ > $@.txt
    4434
    4535clean:
    46         rm -f *.o bin.soft *.txt core *~ proc* term* temp
     36        rm -f *.o bin.soft *.txt core term* temp
  • trunk/softs/soft_transpose_giet/ldscript

    r244 r623  
    22        File : ldscript
    33        Author : Alain Greiner
    4         Date : March 2011 
     4        Date : January 2014
    55**********************************************************/
    6 
    7 /* definition of various hardware parameters.
    8 These variables are referenced in the drivers.c file,
    9 and must be defined, even if the corresponding
    10 peripherals are not present in the architecture */
    11 
    12 NB_CLUSTERS             = 4;            /* number of clusters */
    13 NB_PROCS                = 4;            /* number of processors per cluster */
    14 NB_TASKS                = 1;            /* number of tasks per processor */
    15 NB_TIMERS               = 1;            /* max number of timers per processor */
    16 NB_LOCKS                = 8;            /* number of spin_locks */
    176
    187/* definition of the base address for all segments
     
    2110peripherals are not present in the architecture */
    2211
    23 seg_code_base   = 0x00000000;       /* le code utilisateur */
    24 seg_data_base   = 0x00100000;       /* les données utilisateur */
     12seg_reset_base  = 0x10000000;       /* le code de boot */
    2513
    26 seg_heap_base   = 0x00300000;       /* le tas utilisateur */
    27 seg_stack_base  = 0x00800000;       /* la pile utilisateur */
     14seg_kcode_base  = 0x00001000;       /* le code du système */
     15seg_kdata_base  = 0x00010000;       /* les donnees du système */
     16seg_kunc_base   = 0x00020000;       /* les données non cachées du système */
    2817
    29 seg_kcode_base  = 0x80000000;       /* le code du système */
    30 seg_kdata_base  = 0x80100000;       /* les donnees du système */
    31 seg_kunc_base   = 0x80200000;       /* les données non cachées du système */
     18seg_code_base   = 0x00030000;       /* le code utilisateur */
     19seg_data_base   = 0x00040000;       /* les données utilisateur */
    3220
    33 seg_icu_base    = 0x00F00000;       /* controleur ICU */
    34 seg_tty_base    = 0xBFF20000;       /* controleur TTY */
    35 seg_dma_base    = 0x00F30000;       /* controleur DMA */
     21seg_heap_base   = 0x00100000;       /* le tas utilisateur */
     22seg_stack_base  = 0x00400000;       /* la pile utilisateur */
    3623
    37 seg_reset_base  = 0xBFC00000;       /* le code de boot */
    38 seg_fb_base     = 0xBFD00000;       /* controleur FRAME BUFFER */
    39 seg_ioc_base    = 0xBFF10000;       /* controleur I/O */
     24seg_xcu_base    = 0xF0000000;       /* controleur XCU */
     25seg_dma_base    = 0xF1000000;       /* controleur DMA */
     26seg_tty_base    = 0xF2000000;       /* controleur TTY */
     27seg_fbf_base    = 0xF3000000;       /* controleur FBF */
     28seg_ioc_base    = 0xF4000000;       /* controleur IOC */
    4029
    41 seg_timer_base  = 0x00F00000;       /* controleur TIMER */
    42 seg_gcd_base    = 0xBFF50000;       /* controleur GCD */
    4330
    4431/* Grouping sections into segments */
  • trunk/softs/tsar_boot/include/mips32_registers.h

    r567 r623  
    5353#define CP0_EPC         $14,0
    5454#define CP0_EBASE       $15,1
     55#define CP0_PROCID      $15,1
    5556
    5657/* CP2 registers */
Note: See TracChangeset for help on using the changeset viewer.