Ignore:
Timestamp:
Dec 10, 2015, 1:38:43 PM (9 years ago)
Author:
alain
Message:

Remove the seg_kernel_init vseg: All the kernel code is now packed
in one single seg_kernel_code vseg. The entry point for the _kernel_init()
function (from the boot code is now at vaddr = 0x80000000.
The goal is to use only one BPP per cluster for the replicated kernel code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/mapping.py

    r737 r742  
    623623        kernel_data_found    = False
    624624        kernel_code_found    = False
    625         kernel_init_found    = False
    626625        for vseg in self.globs:
    627626
     
    645644                kernel_code_size     = vseg.length
    646645                kernel_code_found    = True
    647 
    648             if ( vseg.name[0:15] == 'seg_kernel_init' ):
    649                 kernel_init_vbase    = vseg.vbase
    650                 kernel_init_size     = vseg.length
    651                 kernel_init_found    = True
    652646
    653647        # check if all required vsegs have been found
     
    672666             sys.exit()
    673667
    674         if ( kernel_init_found    == False ):
    675              print '[genmap error] in giet_vsegs()'
    676              print '    seg_kernel_init vseg missing'
    677              sys.exit()
    678 
    679668        # build string
    680669        s =  '/* Generated by genmap for %s */\n'  % self.name
     
    692681        s += 'kernel_data_vbase    = 0x%x;\n'   % kernel_data_vbase
    693682        s += 'kernel_data_size     = 0x%x;\n'   % kernel_data_size
    694         s += '\n'
    695         s += 'kernel_init_vbase    = 0x%x;\n'   % kernel_init_vbase
    696         s += 'kernel_init_size     = 0x%x;\n'   % kernel_init_size
    697683        s += '\n'
    698684
Note: See TracChangeset for help on using the changeset viewer.