Changeset e7c42ac0 in mainline


Ignore:
Timestamp:
2011-02-25T23:42:46Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5691653
Parents:
c7f23c0
Message:

Apply sun4v fixups before actually using physmem start address.
Fix computation and reporting of memory map.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/src/main.c

    rc7f23c0 re7c42ac0  
    190190        bootinfo.memmap.zones[0].start += OBP_BIAS;
    191191        bootinfo.memmap.zones[0].size -= OBP_BIAS;
     192        bootinfo.memmap.total -= OBP_BIAS;
    192193}
    193194
     
    204205        bootinfo.physmem_start = ofw_get_physmem_start();
    205206        ofw_memmap(&bootinfo.memmap);
     207
     208        if (arch == ARCH_SUN4V)
     209                sun4v_fixups();
    206210       
    207211        void *bootinfo_pa = ofw_translate(&bootinfo);
     
    304308                sun4u_smp();
    305309       
    306         if (arch == ARCH_SUN4V)
    307                 sun4v_fixups();
    308        
    309310        printf("Booting the kernel ...\n");
    310311        jump_to_kernel(bootinfo.physmem_start | BSP_PROCESSOR, &bootinfo, subarch,
Note: See TracChangeset for help on using the changeset viewer.