summaryrefslogtreecommitdiffstats
path: root/memtestEDK/Memtest/Cpuid/TestSmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'memtestEDK/Memtest/Cpuid/TestSmp.c')
-rw-r--r--memtestEDK/Memtest/Cpuid/TestSmp.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/memtestEDK/Memtest/Cpuid/TestSmp.c b/memtestEDK/Memtest/Cpuid/TestSmp.c
new file mode 100644
index 0000000..5a44cbd
--- /dev/null
+++ b/memtestEDK/Memtest/Cpuid/TestSmp.c
@@ -0,0 +1,30 @@
+
+#define UEFI
+
+
+#include <Uefi.h>
+#include <Library/UefiLib.h>
+#include <Library/UefiApplicationEntryPoint.h>
+
+#include "cpuid.h"
+#include "smp.h"
+#include "SmpTestFunctions/cpuid_test.h"
+#include "SmpTestFunctions/apic_test.h"
+
+EFI_STATUS
+EFIAPI
+UefiMain (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
+ )
+{
+ Print(L"Test of smp.h\n\n");
+ get_cpuid_Fn0000_0000();
+
+ Print(L"Test of smp.c\n\n");
+ smp_find_cpus_test();
+
+ Print(L"Test finished.\n");
+
+ return EFI_SUCCESS;
+}