Changeset 50b3d30 in mainline for boot/arch/ia64/loader/main.c


Ignore:
Timestamp:
2008-11-30T21:35:13Z (16 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c716d94
Parents:
1baec4b
Message:

IA64: repair similators support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ia64/loader/main.c

    r1baec4b r50b3d30  
    4545}
    4646
     47#define DEFAULT_MEMORY_BASE 0x4000000
     48#define DEFAULT_MEMORY_SIZE 0x4000000
     49#define DEFAULT_LEGACY_IO_BASE 0x00000FFFFC000000
     50#define DEFAULT_LEGACY_IO_SIZE 0x4000000
     51
     52#define DEFAULT_FREQ_SCALE 0x0000000100000001 // 1/1
     53#define DEFAULT_SYS_FREQ 100000000 //100MHz
     54
    4755
    4856#ifdef REVISION
     
    7987
    8088
    81 
    8289        version_print();
    8390
     
    93100                printf(" %P: %s image (size %d bytes)\n", components[i].start,
    94101                    components[i].name, components[i].size);
     102
     103        if(!bootinfo->hello_configured)
     104        {
     105                /*
     106                 * Load configuration defaults for simulators
     107                 */
     108                 bootinfo->memmap_items=0;
     109                 
     110                 bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_MEMORY_BASE;
     111                 bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_MEMORY_SIZE;
     112                 bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_FREE_MEM;
     113                 bootinfo->memmap_items++;
     114
     115                 bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_LEGACY_IO_BASE;
     116                 bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_LEGACY_IO_SIZE;
     117                 bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_IO_PORTS;
     118                 bootinfo->memmap_items++;
     119                 
     120                 bootinfo->freq_scale = DEFAULT_FREQ_SCALE;
     121                 bootinfo->sys_freq = DEFAULT_SYS_FREQ;
     122                 
     123        }
     124
    95125
    96126
Note: See TracChangeset for help on using the changeset viewer.