From 2aa62f2bc9a9654687b377d9ca8a8c2c860a3852 Mon Sep 17 00:00:00 2001 From: darylm503 Date: Wed, 27 Apr 2011 21:42:16 +0000 Subject: Standard Libraries for EDK II. This set of three packages: AppPkg, StdLib, StdLibPrivateInternalFiles; contains the implementation of libraries based upon non-UEFI standards such as ISO/IEC-9899, the library portion of the C Language Standard, POSIX, etc. AppPkg contains applications that make use of the standard libraries defined in the StdLib Package. StdLib contains header (include) files and the implementations of the standard libraries. StdLibPrivateInternalFiles contains files for the exclusive use of the library implementations in StdLib. These files should never be directly referenced from applications or other code. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11600 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/Include/Ipf/machine/smp.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 StdLib/Include/Ipf/machine/smp.h (limited to 'StdLib/Include/Ipf/machine/smp.h') diff --git a/StdLib/Include/Ipf/machine/smp.h b/StdLib/Include/Ipf/machine/smp.h new file mode 100644 index 0000000000..d96346b703 --- /dev/null +++ b/StdLib/Include/Ipf/machine/smp.h @@ -0,0 +1,40 @@ +/* + * $FreeBSD: src/sys/ia64/include/smp.h,v 1.10 2005/08/06 20:28:19 marcel Exp $ + */ +#ifndef _MACHINE_SMP_H_ +#define _MACHINE_SMP_H_ + +#ifdef _KERNEL + +/* + * Interprocessor interrupts for SMP. The following values are indices + * into the IPI vector table. The SAL gives us the vector used for AP + * wake-up. We base the other vectors on that. Keep IPI_AP_WAKEUP at + * index 0 and IPI_MCA_RENDEZ at index 1. See sal.c for details. + */ +/* Architecture specific IPIs. */ +#define IPI_AP_WAKEUP 0 +#define IPI_HIGH_FP 1 +#define IPI_MCA_CMCV 2 +#define IPI_MCA_RENDEZ 3 +#define IPI_TEST 4 +/* Machine independent IPIs. */ +#define IPI_AST 5 +#define IPI_RENDEZVOUS 6 +#define IPI_STOP 7 + +#define IPI_COUNT 8 + +#ifndef LOCORE + +extern int ipi_vector[]; + +void ipi_all(int ipi); +void ipi_all_but_self(int ipi); +void ipi_selected(u_int64_t cpus, int ipi); +void ipi_self(int ipi); +void ipi_send(u_int64_t lid, int ipi); + +#endif /* !LOCORE */ +#endif /* _KERNEL */ +#endif /* !_MACHINE_SMP_H */ -- cgit v1.2.3