Ignore:
Timestamp:
Jun 27, 2017, 10:24:13 AM (7 years ago)
Author:
alain
Message:

Fix bug in kernel_init, and reduce size of remote_fifo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bootloader_tsar/boot.c

    r50 r68  
    586586          boot_info->kernel_code_end : boot_info->kernel_data_end;
    587587
    588     // Get the number of pages reserved to kernel segments
    589     rsvd_pages = ( (end & CONFIG_PPM_PAGE_MASK) == 0 ) ?
     588    // Set number of pages occupied by the kernel code
     589    boot_info->pages_offset = ( (end & CONFIG_PPM_PAGE_MASK) == 0 ) ?
    590590                 (end >> CONFIG_PPM_PAGE_SHIFT) : (end >> CONFIG_PPM_PAGE_SHIFT) + 1;
    591591
    592     // set the kernel code "reserved zonz"
    593     boot_info->rsvd_nr = 1;
    594     boot_info->rsvd[0].first_page = 0;
    595     boot_info->rsvd[0].npages     = rsvd_pages;
     592    // No "reserved zones" for the TSAR architecture
     593    boot_info->rsvd_nr = 0;
    596594
    597595#if DEBUG_BOOT_INFO
Note: See TracChangeset for help on using the changeset viewer.