Ignore:
File:
1 edited

Legend:

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

    r699f3bc rbbe4828  
    3535#include <arch/_components.h>
    3636#include <genarch/efi.h>
    37 #include <arch/sal.h>
    38 #include <arch/pal.h>
    3937#include <halt.h>
    4038#include <printf.h>
     
    119117}
    120118
    121 static void read_pal_configuration(void)
     119static void read_sal_configuration(void)
    122120{
    123         if (bootpar) {
    124                 bootinfo.freq_scale = pal_proc_freq_ratio();
    125         } else {
     121        if (!bootpar) {
    126122                /* Configure default values for simulators. */
    127123                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;
    143125        } else {
    144                 /* Configure default values for simulators. */
     126                /* TODO: read the real values from SAL */
     127                bootinfo.freq_scale = DEFAULT_FREQ_SCALE;
    145128                bootinfo.sys_freq = DEFAULT_SYS_FREQ;
    146129        }
     
    206189        read_efi_memmap();
    207190        read_sal_configuration();
    208         read_pal_configuration();
    209191       
    210192        printf("Booting the kernel ...\n");
Note: See TracChangeset for help on using the changeset viewer.