iPXE
efi_mp.h
Go to the documentation of this file.
1#ifndef _IPXE_EFI_MP_H
2#define _IPXE_EFI_MP_H
3
4/** @file
5 *
6 * EFI multiprocessor API implementation
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11
12#ifdef MPAPI_EFI
13#define MPAPI_PREFIX_efi
14#else
15#define MPAPI_PREFIX_efi __efi_
16#endif
17
18/**
19 * Calculate address as seen by a multiprocessor function
20 *
21 * @v address Address in boot processor address space
22 * @ret address Address in application processor address space
23 */
24static inline __attribute__ (( always_inline )) mp_addr_t
25MPAPI_INLINE ( efi, mp_address ) ( void *address ) {
26
27 return ( ( mp_addr_t ) address );
28}
29
30#endif /* _IPXE_EFI_MP_H */
static mp_address(void *address)
Calculate address as seen by a multiprocessor function.
Definition bios_mp.h:27
uint64_t address
Base address.
Definition ena.h:13
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define __attribute__(x)
Definition compiler.h:10
#define MPAPI_INLINE(_subsys, _api_func)
Calculate static inline multiprocessor API function name.
Definition mp.h:81
unsigned long mp_addr_t
An address within the address space for a multiprocessor function.
Definition mp.h:24