Changeset 245 for soft/giet_vm/boot


Ignore:
Timestamp:
Jun 17, 2013, 11:38:40 PM (11 years ago)
Author:
alain
Message:

Introducing a new global vseg : seg_boot_data, in order
to clearly separate the seg_boot_code (Read-Only) and
the seg_boot_data (Read/Write?). This is mandatory,
if the boot code is stored in a real ROM.

Location:
soft/giet_vm/boot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/boot/boot.ld

    r203 r245  
    1717        *(.boot)
    1818        *(.text)
    19 
    2019        *(.rodata)
    2120        *(.rodata.*)
    22         *(.data)
    23         *(.lit8)
    24         *(.lit4)
    25         *(.sdata)
    26         *(.bss)
    27         *(COMMON)
    28         *(.sbss)
    29         *(.scommon)
     21    }
     22
     23    . = seg_boot_data_base;
     24    seg_boot_data :
     25    {
     26        *(.wdata)
    3027    }
    3128}
  • soft/giet_vm/boot/boot_init.c

    r240 r245  
    8989
    9090// Page table addresses arrays
     91__attribute__((section (".wdata")))
    9192paddr_t      boot_ptabs_paddr[GIET_NB_VSPACE_MAX];
     93
     94__attribute__((section (".wdata")))
    9295unsigned int boot_ptabs_vaddr[GIET_NB_VSPACE_MAX];
    9396
    9497// Scheduler pointers array (virtual addresses)
     98__attribute__((section (".wdata")))
    9599static_scheduler_t* boot_schedulers[NB_CLUSTERS * NB_PROCS_MAX];
    96100
    97101// Next free PT2 index array
     102__attribute__((section (".wdata")))
    98103unsigned int boot_next_free_pt2[GIET_NB_VSPACE_MAX] =
    99104{ [0 ... GIET_NB_VSPACE_MAX - 1] = 0 };
    100105
    101106// Max PT2 index
     107__attribute__((section (".wdata")))
    102108unsigned int boot_max_pt2[GIET_NB_VSPACE_MAX] =
    103109{ [0 ... GIET_NB_VSPACE_MAX - 1] = 0 };
Note: See TracChangeset for help on using the changeset viewer.