Changeset 577fe9b6 in mainline for boot/arch/ia64/include/sal.h


Ignore:
Timestamp:
2011-08-07T22:09:26Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
699f3bc
Parents:
26fb118a
Message:

Support for calling SAL procedures from the loader.

  • Added sal_call() to perform and wrap around calls to SAL.
  • Added sal_base_clock_frequency() to read the system base frequency.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ia64/include/sal.h

    r26fb118a r577fe9b6  
    3232#include <arch/types.h>
    3333#include <typedefs.h>
     34
     35/*
     36 * Essential SAL procedures' IDs
     37 */
     38#define SAL_FREQ_BASE   0x1000012
    3439
    3540typedef struct {
     
    103108extern void sal_system_table_parse(sal_system_table_header_t *);
    104109
     110extern uint64_t sal_base_clock_frequency(void);
     111
     112#define sal_call_1_1(id, arg1, ret1) \
     113        sal_call((id), (arg1), 0, 0, 0, 0, 0, 0, (ret1), NULL, NULL)
     114
     115extern uint64_t sal_call(uint64_t, uint64_t, uint64_t, uint64_t, uint64_t,
     116    uint64_t, uint64_t, uint64_t, uint64_t *, uint64_t *, uint64_t *);
     117
    105118#endif
Note: See TracChangeset for help on using the changeset viewer.