summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Sec/Sec.h
blob: c1cd10d9093b185ae939d6807a743dd96e779a26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/** @file
  Generic SEC driver for ARM platforms

  Copyright (c) 2011 - 2022, ARM Limited. All rights reserved.

  SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef SEC_H_
#define SEC_H_

#include <PiPei.h>

#include <Library/ArmLib.h>
#include <Library/ArmPlatformLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/CacheMaintenanceLib.h>
#include <Library/DebugAgentLib.h>
#include <Library/DebugLib.h>
#include <Library/PrintLib.h>
#include <Library/SerialPortLib.h>

#include <Ppi/TemporaryRamSupport.h>
#include <Library/ArmTransferListLib.h>

/**
  Helper function to switch to a different stack. Implemented in assembler as
  this cannot be done from C code.
**/
VOID
SecSwitchStack (
  INTN  StackDelta
  );

/**
  Vector Table for the PEI Phase. This is executable code but not a callable
  function. Implemented in assembler.
**/
VOID
PeiVectorTable (
  VOID
  );

/**
  Minimal high level handling of exceptions occurring in PEI.
**/
VOID
PeiCommonExceptionEntry (
  IN UINT32  Entry,
  IN UINTN   LR
  );

#endif