Changeset 68 for trunk/tools


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.

Location:
trunk/tools/bootloader_tsar
Files:
2 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
  • trunk/tools/bootloader_tsar/boot_config.h

    r50 r68  
    77
    88// Debug options
    9 #define DEBUG_BOOT_INFO     1
     9#define DEBUG_BOOT_INFO     0
    1010#define DEBUG_BOOT_ELF      0
    1111#define DEBUG_BOOT_IOC      0
Note: See TracChangeset for help on using the changeset viewer.