Ignore:
Timestamp:
Oct 1, 2015, 4:09:25 PM (9 years ago)
Author:
alain
Message:

Adapt the following application to the POSIX threads API

  • convol
  • classif
  • raycast
  • coproc
  • display
  • gameoflife
  • transpose
  • shell
Location:
soft/giet_vm/applications/display
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/display/Makefile

    r589 r708  
     1
     2CC = mipsel-unknown-elf-gcc
     3AS = mipsel-unknown-elf-as
     4LD = mipsel-unknown-elf-ld
     5DU = mipsel-unknown-elf-objdump
     6AR = mipsel-unknown-elf-ar
    17
    28APP_NAME = display
    39
    4 OBJS= main.o
     10OBJS= display.o
    511
    612LIBS= -L../../build/libs -luser
  • soft/giet_vm/applications/display/display.py

    r644 r708  
    1818    x_width   = mapping.x_width
    1919    y_width   = mapping.y_width
     20
     21    # define thread placement
     22    x = 0
     23    y = 0
     24    p = 2
    2025
    2126    # define vsegs base & size
     
    5863
    5964    # task
    60     mapping.addTask( vspace, 'disp', 0, 0, 0, 1, 'disp_stack', 'disp_heap', 0 )
     65    mapping.addThread( vspace, 'display',
     66                       True,               # is_main
     67                       x, y, p,
     68                       'disp_stack',
     69                       'disp_heap',
     70                       0 )                 # startid
    6171
    6272    # extend mapping name
Note: See TracChangeset for help on using the changeset viewer.