Changeset 699f3bc in mainline


Ignore:
Timestamp:
2011-08-15T13:23:54Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86a34d3e, 8d8eeb9
Parents:
577fe9b6
Message:

Support for calling static PAL procedures from the loader.

  • Added pal_static_call() to perform and wrap around static PAL calls.
  • Added pal_proc_freq_ratio() to read processor frequency ratio from PAL.
Location:
boot/arch/ia64
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ia64/Makefile.inc

    r577fe9b6 r699f3bc  
    4747        arch/$(BARCH)/src/sal.c \
    4848        arch/$(BARCH)/src/sal_asm.S \
     49        arch/$(BARCH)/src/pal.c \
     50        arch/$(BARCH)/src/pal_asm.S \
    4951        arch/$(BARCH)/src/putchar.c \
    5052        $(COMPS_C) \
  • boot/arch/ia64/src/main.c

    r577fe9b6 r699f3bc  
    3636#include <genarch/efi.h>
    3737#include <arch/sal.h>
     38#include <arch/pal.h>
    3839#include <halt.h>
    3940#include <printf.h>
     
    121122{
    122123        if (bootpar) {
    123                 /* TODO: read the real value from PAL */
    124                 bootinfo.freq_scale = DEFAULT_FREQ_SCALE;
     124                bootinfo.freq_scale = pal_proc_freq_ratio();
    125125        } else {
    126126                /* Configure default values for simulators. */
  • boot/arch/ia64/src/sal.c

    r577fe9b6 r699f3bc  
    3232static sal_ap_wakeup_desc_t *sal_ap_wakeup;
    3333
    34 uint64_t pal_proc = 0;
     34extern uint64_t pal_proc;
    3535
    3636uint64_t sal_proc = 0;
Note: See TracChangeset for help on using the changeset viewer.