Changes in boot/arch/ia64/src/main.c [699f3bc:bbe4828] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ia64/src/main.c
r699f3bc rbbe4828 35 35 #include <arch/_components.h> 36 36 #include <genarch/efi.h> 37 #include <arch/sal.h>38 #include <arch/pal.h>39 37 #include <halt.h> 40 38 #include <printf.h> … … 119 117 } 120 118 121 static void read_ pal_configuration(void)119 static void read_sal_configuration(void) 122 120 { 123 if (bootpar) { 124 bootinfo.freq_scale = pal_proc_freq_ratio(); 125 } else { 121 if (!bootpar) { 126 122 /* Configure default values for simulators. */ 127 123 bootinfo.freq_scale = DEFAULT_FREQ_SCALE; 128 } 129 } 130 131 static void read_sal_configuration(void) 132 { 133 if (bootpar && bootpar->efi_system_table) { 134 efi_guid_t sal_guid = SAL_SYSTEM_TABLE_GUID; 135 sal_system_table_header_t *sal_st; 136 137 sal_st = efi_vendor_table_find( 138 (efi_system_table_t *) bootpar->efi_system_table, sal_guid); 139 140 sal_system_table_parse(sal_st); 141 142 bootinfo.sys_freq = sal_base_clock_frequency(); 124 bootinfo.sys_freq = DEFAULT_SYS_FREQ; 143 125 } else { 144 /* Configure default values for simulators. */ 126 /* TODO: read the real values from SAL */ 127 bootinfo.freq_scale = DEFAULT_FREQ_SCALE; 145 128 bootinfo.sys_freq = DEFAULT_SYS_FREQ; 146 129 } … … 206 189 read_efi_memmap(); 207 190 read_sal_configuration(); 208 read_pal_configuration();209 191 210 192 printf("Booting the kernel ...\n");
Note:
See TracChangeset
for help on using the changeset viewer.