Changeset 2b70a6e in mainline for boot/arch/ia64/loader/main.c
- Timestamp:
- 2009-01-03T16:18:32Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8ce14e3
- Parents:
- 8b4d6cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ia64/loader/main.c
r8b4d6cb r2b70a6e 45 45 } 46 46 47 #define DEFAULT_MEMORY_BASE 48 #define DEFAULT_MEMORY_SIZE 49 #define DEFAULT_LEGACY_IO_BASE 50 #define DEFAULT_LEGACY_IO_SIZE 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 51 52 #define DEFAULT_FREQ_SCALE 0x0000000100000001 // 1/1 53 #define DEFAULT_SYS_FREQ 100000000 //100MHz 54 52 #define DEFAULT_FREQ_SCALE 0x0000000100000001 /* 1/1 */ 53 #define DEFAULT_SYS_FREQ 100000000 /* 100MHz */ 55 54 56 55 #ifdef REVISION … … 69 68 static void version_print(void) 70 69 { 71 printf("HelenOS IA64 Bootloader\nRelease %s%s%s\nCopyright (c) 2006 HelenOS project\n", release, revision, timestamp); 70 printf("HelenOS IA64 Bootloader\nRelease %s%s%s\n" 71 "Copyright (c) 2006 HelenOS project\n", release, revision, 72 timestamp); 72 73 } 73 74 74 75 void bootstrap(void) 75 76 { 76 77 77 int ii; 78 79 80 bootinfo_t *bootinfo=&binfo; 81 82 83 78 bootinfo_t *bootinfo = &binfo; 84 79 85 80 version_print(); 86 81 87 88 82 init_components(components); 89 83 … … 97 91 components[i].name, components[i].size); 98 92 99 if(!bootinfo->hello_configured) 100 { 93 if (!bootinfo->hello_configured) { 101 94 /* 102 * Load configuration defaults for simulators 95 * Load configuration defaults for simulators. 103 96 */ 104 bootinfo->memmap_items =0;97 bootinfo->memmap_items = 0; 105 98 106 bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_MEMORY_BASE; 107 bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_MEMORY_SIZE; 108 bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_FREE_MEM; 99 bootinfo->memmap[bootinfo->memmap_items].base = 100 DEFAULT_MEMORY_BASE; 101 bootinfo->memmap[bootinfo->memmap_items].size = 102 DEFAULT_MEMORY_SIZE; 103 bootinfo->memmap[bootinfo->memmap_items].type = 104 EFI_MEMMAP_FREE_MEM; 109 105 bootinfo->memmap_items++; 110 106 111 bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_LEGACY_IO_BASE; 112 bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_LEGACY_IO_SIZE; 113 bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_IO_PORTS; 107 bootinfo->memmap[bootinfo->memmap_items].base = 108 DEFAULT_LEGACY_IO_BASE; 109 bootinfo->memmap[bootinfo->memmap_items].size = 110 DEFAULT_LEGACY_IO_SIZE; 111 bootinfo->memmap[bootinfo->memmap_items].type = 112 EFI_MEMMAP_IO_PORTS; 114 113 bootinfo->memmap_items++; 115 114 116 115 bootinfo->freq_scale = DEFAULT_FREQ_SCALE; 117 116 bootinfo->sys_freq = DEFAULT_SYS_FREQ; 118 119 117 } 120 121 122 118 123 119 bootinfo->taskmap.count = 0; 124 120 for (i = 0; i < COMPONENTS; i++) { 125 126 121 if (i > 0) { 127 bootinfo->taskmap.tasks[bootinfo->taskmap.count].addr = components[i].start; 128 bootinfo->taskmap.tasks[bootinfo->taskmap.count].size = components[i].size; 122 bootinfo->taskmap.tasks[bootinfo->taskmap.count].addr = 123 components[i].start; 124 bootinfo->taskmap.tasks[bootinfo->taskmap.count].size = 125 components[i].size; 129 126 bootinfo->taskmap.count++; 130 127 } … … 132 129 133 130 jump_to_kernel(bootinfo); 134 135 136 131 } 137 132
Note:
See TracChangeset
for help on using the changeset viewer.