Ignore:
Timestamp:
Jan 20, 2016, 10:15:22 AM (9 years ago)
Author:
alain
Message:

Use the giet_fat_mmap() syscall to implement the cat command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/shell/shell.py

    r712 r768  
    3434    heap_size  = 0x00001000     # 4 Kbytes
    3535
     36    mmap_base  = 0x70000000
     37    mmap_size  = 0x10000000     # 256 Mbytes (unmapped)
     38
    3639    # create vspace
    3740    vspace = mapping.addVspace( name = 'shell', startname = 'shell_data' , active = True )
     
    5760    mapping.addVseg( vspace, 'shell_heap', heap_base, heap_size,
    5861                     'C_WU', vtype = 'BUFFER', x = xmap , y = ymap , pseg = 'RAM',
     62                     local = False )
     63
     64    # mmap vseg           
     65    mapping.addVseg( vspace, 'shell_mmap', mmap_base, mmap_size,
     66                     'C_WU', vtype = 'MMAP', x = xmap , y = ymap , pseg = 'RAM',
    5967                     local = False )
    6068
Note: See TracChangeset for help on using the changeset viewer.