Changeset 26fb118a in mainline


Ignore:
Timestamp:
2011-07-31T19:56:54Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
577fe9b6
Parents:
666d6dc
Message:

Attempt to parse the EFI and SAL system / configuration table.

File:
1 edited

Legend:

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

    r666d6dc r26fb118a  
    3535#include <arch/_components.h>
    3636#include <genarch/efi.h>
     37#include <arch/sal.h>
    3738#include <halt.h>
    3839#include <printf.h>
     
    119120static void read_sal_configuration(void)
    120121{
    121         if (!bootpar) {
    122                 /* Configure default values for simulators. */
     122        if (bootpar && bootpar->efi_system_table) {
     123                /* TODO: read the real values from SAL */
    123124                bootinfo.freq_scale = DEFAULT_FREQ_SCALE;
    124125                bootinfo.sys_freq = DEFAULT_SYS_FREQ;
     126               
     127                efi_guid_t sal_guid = SAL_SYSTEM_TABLE_GUID;
     128                sal_system_table_header_t *sal_st;
     129               
     130                sal_st = efi_vendor_table_find(
     131                    (efi_system_table_t *) bootpar->efi_system_table, sal_guid);
     132
     133                sal_system_table_parse(sal_st);
    125134        } else {
    126                 /* TODO: read the real values from SAL */
     135                /* Configure default values for simulators. */
    127136                bootinfo.freq_scale = DEFAULT_FREQ_SCALE;
    128137                bootinfo.sys_freq = DEFAULT_SYS_FREQ;
Note: See TracChangeset for help on using the changeset viewer.