Changeset 688


Ignore:
Timestamp:
Jan 13, 2021, 12:57:17 AM (4 years ago)
Author:
alain
Message:

cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boot/tsar_mips32/boot.c

    r653 r688  
    33 *
    44 * Authors :   Vu Son  (2016)
    5  *             Alain Greiner (2016,2017,2018,2019)
     5 *             Alain Greiner (2016,2017,2018,2019,2020)
    66 *
    77 * Copyright (c) UPMC Sorbonne Universites
     
    369369    boot_info->paddr_width  = header->paddr_width;
    370370    boot_info->io_cxy       = header->io_cxy;
     371    boot_info->sys_clk      = header->sys_clk;
    371372
    372373    // Initialize kernel segments from global variables
     
    531532            {
    532533                // set number of physical memory pages
    533                 boot_info->pages_nr   = device->size >> CONFIG_PPM_PAGE_SHIFT;
     534                boot_info->pages_nr   = device->size >> CONFIG_PPM_PAGE_ORDER;
    534535
    535536#if DEBUG_BOOT_INFO
     
    600601    // compute number of physical pages occupied by the kernel code
    601602    boot_info->pages_offset = ( (end & CONFIG_PPM_PAGE_MASK) == 0 ) ?
    602                  (end >> CONFIG_PPM_PAGE_SHIFT) : (end >> CONFIG_PPM_PAGE_SHIFT) + 1;
     603                 (end >> CONFIG_PPM_PAGE_ORDER) : (end >> CONFIG_PPM_PAGE_ORDER) + 1;
    603604
    604605    // no reserved zones for TSAR architecture
Note: See TracChangeset for help on using the changeset viewer.