mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-18 16:18:12 +02:00
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3223 In the current design, memory protection is not available till CpuDxe is loaded. To resolve this, introduce CpuArchLib to move the CPU Architectural initialization to DxeCore. Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Vitaly Cheptsov <vit9696@protonmail.com> Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
32 lines
665 B
C
32 lines
665 B
C
/** @file
|
|
CPU DXE Module to produce CPU ARCH Protocol.
|
|
Copyright (c) 2008 - 2022, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
**/
|
|
|
|
#ifndef _CPU_ARCH_LIB_H_
|
|
#define _CPU_ARCH_LIB_H_
|
|
|
|
/**
|
|
Initialize the state information for the CPU Architectural Protocol.
|
|
|
|
@retval EFI_SUCCESS Thread can be successfully created
|
|
@retval EFI_OUT_OF_RESOURCES Can not allocate protocol data structure
|
|
@retval EFI_DEVICE_ERROR Can not create the thread
|
|
**/
|
|
EFI_STATUS
|
|
InitializeCpu (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Initialize Multi-processor support.
|
|
|
|
**/
|
|
VOID
|
|
InitializeMpSupport (
|
|
VOID
|
|
);
|
|
|
|
#endif // _CPU_ARCH_LIB_H_
|