iPXE
Macros | Functions
bios_mp.h File Reference

BIOS multiprocessor API implementation. More...

#include <ipxe/io.h>

Go to the source code of this file.

Macros

#define MPAPI_PREFIX_pcbios   __pcbios_
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static __attribute__ ((always_inline)) mp_addr_t MPAPI_INLINE(pcbios
 Calculate address as seen by a multiprocessor function. More...
 
static mp_address (void *address)
 Calculate address as seen by a multiprocessor function. More...
 

Detailed Description

BIOS multiprocessor API implementation.

Definition in file bios_mp.h.

Macro Definition Documentation

◆ MPAPI_PREFIX_pcbios

#define MPAPI_PREFIX_pcbios   __pcbios_

Definition at line 17 of file bios_mp.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ __attribute__()

static __attribute__ ( (always_inline)  )
inlinestatic

Calculate address as seen by a multiprocessor function.

Parameters
addressAddress in boot processor address space
Return values
addressAddress in application processor address space

◆ mp_address()

static mp_address ( void *  address)

Calculate address as seen by a multiprocessor function.

Parameters
addressAddress in normal iPXE address space
Return values
addressAddress in application processor address space

Definition at line 27 of file bios_mp.h.

27  {
28 
29  return virt_to_phys ( address );
30 }
uint64_t address
Base address.
Definition: ena.h:24
static __always_inline unsigned long virt_to_phys(volatile const void *addr)
Convert virtual address to a physical address.
Definition: uaccess.h:287

Referenced by bios_mp_exec_boot(), bios_mp_start_all(), efi_mp_exec_boot(), and efi_mp_start_all().